Data |
Prev: 60353 | Up: Map | Next: 60374 |
|
||||
16 bytes of spell data for the current selected spell. Copied from 28156 in routine at 59138 and copied back at routine at 60044.
The first set of 8 bytes contains the spell data:
|
||||
60357 | DEFB 0 | Set to 16 if this spell has been acquired, 0 if not yet acquired | ||
60358 | DEFB 0 | Energy cost of casting spell 'Effect' spells (e.g. SHIELD, UNSEEN) - energy drain amount Healing spells (e.g. ENERGIZE, CHALICE) - energy restoration amount (essentially a 'negative drain') |
||
60359 | DEFB 0 | Spell type: 1 = MOVE spell 2 = Spell that generates a controllable graphic/icon, e.g. SERVANT, MISSILE, OPEN 3 = Assigned to the ELECTRIC and FLAME spells 4 = Ongoing effect spell (e.g. SHIELD, WRAITHBANE), spell name appears in bottom right mini-scroll 5 = Instant effect spell e.g. ENERGIZE, FREEZE, PORTAL |
||
60360 | DEFB 0 | Number of 'charges' left for casting the spell (255 = infinite uses) | ||
60361 | DEFB 0 | Character number within the current spell message text (at 28604) When a spell is activated, the message isn't printed all at once, but letter by letter Also used for level name texts |
||
60362 | DEFB 0 | Relates to the servant/eye cursor spells and the event/action to take place when the spell is active. Values:
Room items are affected by moving these active cursors over particular objects/areas (e.g. OPEN/UNLOCK vs certain doors) |
||
60363 | DEFB 0 | Graphic number - in the graphics pointer table (at 38851) - for the spell's icon to use on the scroll (e.g. 41342) | ||
60364 | DEFB 0 | Graphic number - for the graphics pointer table (at 38851) for the spell's controllable graphic/aiming cursor (or 0 if a spell doesn't need one). For the SERVANT spell, offset is 41 (graphics pointer 38931 pointing to servant graphics at 41180) For all other 'aiming cursor' spells (e.g. UNLOCK, MISSILE, OPEN, FIND, ICEBOLT) spell offset is 43 (graphics pointer 38935 pointing to blinking eye cursor graphics at 41221) |
||
The second set of 8 bytes contains the spell name
|
||||
60365 | DEFB 0,0,0,0,0,0,0,0 | |||
Finally the energy cost/effect of the spell:
|
||||
60373 | DEFB 0 | Energy drain/heal amount for constant effects spells, e.g. SHIELD (drain) or CHALICE (heal) - actioned in routine at 54859 This is stored in byte 2 of the spell data (60358) which is copied here at 59364 when spell is activated Also, casting cost for instant effect spells - spells such as WAYSTONE, FLAME take energy to cast |
Prev: 60353 | Up: Map | Next: 60374 |