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
Show whitespace changes
Inline Side-by-side
javascript.md
View page @ 2d70db62
...@@ -40,12 +40,40 @@ console.log(dotSyntax('$variable.variable2')) ...@@ -40,12 +40,40 @@ console.log(dotSyntax('$variable.variable2'))
## Global Variables ## Global Variables
>
> thisMatch
## Helper Functions ## Helper Functions
> runEffect(*thisMatch*, *options*, *callback*)
*thisMatch* parameter
Specify the match. Should always be "thisMatch".
*options* parameter
| key | description | type |
| ------ | ------ | ------ |
| ciid | The ciid of the card you're executing. | int |
| effectIndex | The index of the effect you're executing on the target card. | int |
*callback* parameter
Optional.
> getIndexFromEffectName(*effectName*)
> effectAfterAction() > effectAfterAction()
Proceed to the effect completion.
> assignTargetVariable(*target*) > assignTargetVariable(*target*)
***target* parameter** This assigns to the target to the line like the assign variable action. The target may be any number, string, object, function or array of ciids.
> stringVariableReplacement(*string*)
With a string, replace any variables within. Example: stringVariableReplacement("This card is called $title. It has an attack power of $atk and a health of $health.")
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