Prev: 27940 Up: Map Next: 28604
28156: Spells list
See the Spells reference section for spell information.
Details of the active/selected spell are copied into a working buffer at 60357.
The 8 bytes preceding the spell name text are as follows:
Byte Value
1 Set to 16 if this spell has been acquired
2 Energy cost of casting (certain) spells
'Effect' spells (e.g. SHIELD, UNSEEN) - energy drain amount
Healing spells (e.g. ENERGIZE, CHALICE) - energy restoration amount. Negative numbers (bit 7 set) = 'negative drain'
3 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
4 Number of uses (255 indicates infinite use - MOVE/AMULET/W BANE/CHALICE)
5 Used to store the character number within the string of the current spell message text (stored in the spell data buffer at 60361)
6 Value representing action to take when FIRE pressed with a servant/cursor icon spell active (checked at 55328 and 59885).
Also represents the event value for spells that have an effect when the cursor is moved onto room objects, e.g. SERVANT = 5, UNLOCK = 4, DISPEL = 2
Bit 7 is set for missile-type spells
7 Graphics number - address pointer offset for the icon graphic to use for this spell, in the graphic address table at 38851 (icon graphics from 41342)
8 Graphics number - address pointer offset (for graphic addresses 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)
See the table of character byte values for a translation of letters-to-numbers.
28156 DEFB 16,1,1,255,0,0,50,0
28164 DEFM 12,14,21,4,26,26,26,26 MOVE____
28172 DEFB 0,8,2,255,0,5,49,41
28180 DEFM 18,4,17,21,0,13,19,26 SERVANT_
28188 DEFB 0,1,4,0,0,0,45,0
28196 DEFM 18,7,8,4,11,3,26,26 SHIELD__
28204 DEFB 0,4,2,0,0,4,45,43
28212 DEFM 20,13,11,14,2,10,26,26 UNLOCK__
28220 DEFB 0,2,2,0,0,132,45,43
28228 DEFM 12,8,18,18,8,11,4,26 MISSILE_
28236 DEFB 0,192,5,0,0,0,45,0
28244 DEFM 4,13,4,17,6,8,25,4 ENERGIZE
28252 DEFB 0,8,2,0,0,130,45,43
28260 DEFM 5,8,17,4,1,14,11,19 FIREBOLT
28268 DEFB 0,3,2,0,0,16,45,43
28276 DEFM 17,4,21,4,0,11,26,26 REVEAL__
28284 DEFB 0,1,5,0,0,0,45,0
28292 DEFM 7,0,8,11,26,26,26,26 HAIL____
28300 DEFB 0,1,4,0,0,0,45,0
28308 DEFM 20,13,18,4,4,13,26,26 UNSEEN__
28316 DEFB 0,1,2,0,0,10,45,43
28324 DEFM 14,15,4,13,26,26,26,26 OPEN____
28332 DEFB 0,1,4,0,0,0,45,0
28340 DEFM 15,17,14,19,4,2,19,26 PROTECT_
28348 DEFB 0,4,5,0,0,0,51,0
28356 DEFM 22,0,24,18,19,14,13,4 WAYSTONE
28364 DEFB 0,2,2,0,0,131,45,43
28372 DEFM 8,2,4,1,14,11,19,26 ICEBOLT_
28380 DEFB 0,1,4,255,0,0,47,0
28388 DEFM 0,12,20,11,4,19,26,26 AMULET__
28396 DEFB 0,2,2,0,0,133,45,43
28404 DEFM 5,8,17,4,1,0,11,11 FIREBALL
28412 DEFB 0,4,5,0,0,0,45,0
28420 DEFM 5,17,4,4,25,4,26,26 FREEZE__
28428 DEFB 0,4,5,0,0,0,51,0
28436 DEFM 18,20,12,12,14,13,26,26 SUMMON__
28444 DEFB 0,1,4,0,0,0,51,0
28452 DEFM 3,4,5,4,13,2,4,26 DEFENCE_
28460 DEFB 0,8,5,0,0,0,45,0
28468 DEFM 15,14,17,19,0,11,26,26 PORTAL__
28476 DEFB 0,4,4,255,0,0,51,0
28484 DEFM 22,26,1,0,13,4,26,26 W_BANE__
28492 DEFB 0,4,2,0,0,2,45,43
28500 DEFM 3,8,18,15,4,11,26,26 DISPEL__
28508 DEFB 0,2,3,0,0,134,51,43
28516 DEFM 4,11,4,2,19,17,8,2 ELECTRIC
28524 DEFB 0,6,2,0,0,135,45,43
28532 DEFM 21,0,15,14,17,8,25,4 VAPORIZE
28540 DEFB 0,2,3,0,0,136,45,43
28548 DEFM 5,11,0,12,4,26,26,26 FLAME___
28556 DEFB 0,4,2,0,0,8,45,43
28564 DEFM 5,8,13,3,26,26,26,26 FIND____
28572 DEFB 0,251,4,255,0,0,48,0
28580 DEFM 2,7,0,11,8,2,4,26 CHALICE_
28588 DEFB 0,0,5,255,0,0,45,0
28596 DEFM 12,4,18,18,0,6,4,26 MESSAGE_
Prev: 27940 Up: Map Next: 28604