Spell Format
Main format
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 |
|
Animation format
TODO
Spell level base format
Json object with data common for all levels can be put here. These configuration parameters will be default for all levels. All mandatory level fields become optional if they equal "base" configuration.
Example
This will make spell affect single target on all levels except expert, where it is massive spell.
Spell level format
TODO
Configurable battle effects
If spell have at least one special effect it become configurable spell and spell configuration processed different way
Configurable spell
Configurable spells ignore offensive flag, effects and cumulativeEffects. For backward compatibility offensive flag define Damage effect, effects and cumulativeEffects define Timed effect.
Special effect common format
TODO
Catapult
TODO
Clone
TODO
Configurable version of Clone spell.
Damage effect
TODO
If effect is automatic, spell behave like offensive spell (uses power, levelPower etc)
Dispel
TODO
Heal
TODO
Obstacle
TODO
Remove obstacle
TODO
Sacrifice
TODO
Summon
TODO
Teleport
TODO
Timed
TODO
If effect is automatic, spell behave like [de]buff spell (effect and cumulativeEffects ignored)
Additional documentation
Targets, ranges, modifiers
TODO
- CREATURE target (only battle spells)
- range 0: smart assumed single creature target
- range "X" + smart modifier = enchanter casting, expert massive spells
- range "X" + no smart modifier = armageddon, death ripple, destroy undead
- any other range (including chain effect)
- smart modifier: smth like cloud of confusion in H4 (if I remember correctly :) )
-
no smart modifier: like inferno, fireball etc. but target only creature
-
NO_TARGET
-
no target selection,(abilities, most adventure spells)
-
LOCATION
- any tile on map/battlefield (inferno, fireball etc.), DD also here but with special handling
- clearTarget - destination hex must be clear (unused so far)
-
clearAfffected - all affected hexes must be clear (forceField, fireWall)
-
OBSTACLE target
- range 0: any single obstacle
- range X: all obstacles