Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • 1 18996468-Dulst-Community-TEST
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Kaoru Aoi
  • 18996468-Dulst-Community-TEST
  • Wiki
  • javascript

javascript · Changes

Page history
Update javascript authored Apr 08, 2020 by Administrator's avatar Administrator
Hide whitespace changes
Inline Side-by-side
javascript.md
View page @ 1a9077c5
......@@ -42,6 +42,8 @@ console.log(dotSyntax('$variable.variable2'))
> **effectIndex**
> **effectIndex**
> **effectIndex**
## Global Variables
......@@ -51,10 +53,39 @@ console.log(dotSyntax('$variable.variable2'))
## Helper Functions
> clientUpdateCard(*thisMatch*, *ciid*)
*ciid* parameter
A number that is a ciid.
> **otherPlayer(*playerNumber*)**
In games with 2 players, get the playerNumber of the other player. Returns either string `"player1"` or `"player2"`
> getIndexFromEffectName(*effectName*, *context*)
Returns index as number.
*effectName* parameter
A string that is the name of the effect. Typically saved by assign variable. Should be in either `_effectTriggers` or `_effectNames`.
*context* parameter
Optional. Default thisCard.
> runEffectFromAnotherAction(*effect*, *callback*)
*effect* parameter
A string that evaluates to an effectIndex or an array of effectIndexes.
*callback* parameter
Optional.
> **runEffect(*thisMatch*, *options*, *callback*)**
*thisMatch* parameter
......@@ -90,7 +121,7 @@ Optional. Create an additional property on thisCard in the form of `effect-${eff
Checks to see if there's math that can be done. If there is, do the math and return a number. Otherwise return the string.
> dotSyntax(**string**)
> dotSyntax(*string*)
Like parseVariable but works with dot syntax.
......
Clone repository
  • AI Config
  • Achievements
  • Advanced Effect Building
  • Animal Kingdom
  • Animated Cards
  • Card Rarity
  • Copying Cards and Effects
  • Custom Action
  • Custom Actions
  • Dedicated Servers
  • Editing Cards
  • Effect Building
    • Basic Effect Building
    • Effect Triggers
  • Game Development Service
  • Game Making
    • Beginning Game Customization
View All Pages