Advertisement
Guest User

Cardshifter effects and types in JS code

a guest
May 6th, 2015
33
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 KB | None | 0 0
  1. UPPERCASE indicates a type
  2.  
  3. ## whilePresent
  4.  
  5. Only works on creatures.
  6.  
  7. Array of MODIFIER
  8.  
  9. Example:
  10.  
  11. modifier: [
  12. { // Give all your Bio creatures +10 attack
  13. res: ATTACK,
  14. priority: 1,
  15. change: 10,
  16. filter: { creatureType: "Bio", owner: "owner" }
  17. }
  18. ]
  19.  
  20. ## onEndOfTurn
  21.  
  22. Only works on creatures.
  23.  
  24. EFFECT, or array of EFFECT
  25.  
  26. ## afterPlay
  27.  
  28. Works on any card.
  29.  
  30. EFFECT, or array of EFFECT
  31.  
  32. # MODIFIER
  33.  
  34. - res: ATTACK
  35. - priority: 1
  36. - change: 1
  37. - filter: { FILTER }
  38.  
  39. # FILTER
  40.  
  41. owner
  42. - owner, opponent, next, none, active, inactive
  43.  
  44. zone
  45. - ZONE NAME
  46.  
  47. creature
  48. - true
  49.  
  50. creatureType
  51. - name of creatureType (String)
  52.  
  53. # EFFECT
  54.  
  55. print
  56.  
  57. damage:
  58. - value: VALUE
  59. - target: TARGET
  60.  
  61. heal: Same as damage, but heals instead
  62.  
  63. summon:
  64. - count: VALUE
  65. - card: CARD NAME
  66. - who: ENTITY
  67. - where: ZONE NAME
  68.  
  69. # INTEGER
  70.  
  71. An integer value. Nothing else
  72.  
  73. # VALUE
  74.  
  75. Can be either an Integer, or an object such as `{ min: 3, max: 5 }`, or an object containing:
  76. {
  77. description: "Text describing the value",
  78. func: function (source, target) {
  79. return 42;
  80. }
  81. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement