Prev: 6D24 Up: Map Next: 6FBC
6DFC: Spells list
See the Spells reference section for spell information.
Details of the active/selected spell are copied into a working buffer at EBC5.
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 EBC9)
6 Value representing action to take when FIRE pressed with a servant/cursor icon spell active (checked at D820 and E9ED).
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 97C3 (icon graphics from A17E)
8 Graphics number - address pointer offset (for graphic addresses at 97C3) 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 9813 pointing to servant graphics at A0DC)
For all other 'aiming cursor' spells (e.g. UNLOCK, MISSILE, OPEN, FIND, ICEBOLT) spell offset is 43 (graphics pointer 9817 pointing to blinking eye cursor graphics at A105)
See the table of character byte values for a translation of letters-to-numbers.
6DFC DEFB $10,$01,$01,$FF,$00,$00,$32,$00
6E04 DEFM $0C,$0E,$15,$04,$1A,$1A,$1A,$1A MOVE____
6E0C DEFB $00,$08,$02,$FF,$00,$05,$31,$29
6E14 DEFM $12,$04,$11,$15,$00,$0D,$13,$1A SERVANT_
6E1C DEFB $00,$01,$04,$00,$00,$00,$2D,$00
6E24 DEFM $12,$07,$08,$04,$0B,$03,$1A,$1A SHIELD__
6E2C DEFB $00,$04,$02,$00,$00,$04,$2D,$2B
6E34 DEFM $14,$0D,$0B,$0E,$02,$0A,$1A,$1A UNLOCK__
6E3C DEFB $00,$02,$02,$00,$00,$84,$2D,$2B
6E44 DEFM $0C,$08,$12,$12,$08,$0B,$04,$1A MISSILE_
6E4C DEFB $00,$C0,$05,$00,$00,$00,$2D,$00
6E54 DEFM $04,$0D,$04,$11,$06,$08,$19,$04 ENERGIZE
6E5C DEFB $00,$08,$02,$00,$00,$82,$2D,$2B
6E64 DEFM $05,$08,$11,$04,$01,$0E,$0B,$13 FIREBOLT
6E6C DEFB $00,$03,$02,$00,$00,$10,$2D,$2B
6E74 DEFM $11,$04,$15,$04,$00,$0B,$1A,$1A REVEAL__
6E7C DEFB $00,$01,$05,$00,$00,$00,$2D,$00
6E84 DEFM $07,$00,$08,$0B,$1A,$1A,$1A,$1A HAIL____
6E8C DEFB $00,$01,$04,$00,$00,$00,$2D,$00
6E94 DEFM $14,$0D,$12,$04,$04,$0D,$1A,$1A UNSEEN__
6E9C DEFB $00,$01,$02,$00,$00,$0A,$2D,$2B
6EA4 DEFM $0E,$0F,$04,$0D,$1A,$1A,$1A,$1A OPEN____
6EAC DEFB $00,$01,$04,$00,$00,$00,$2D,$00
6EB4 DEFM $0F,$11,$0E,$13,$04,$02,$13,$1A PROTECT_
6EBC DEFB $00,$04,$05,$00,$00,$00,$33,$00
6EC4 DEFM $16,$00,$18,$12,$13,$0E,$0D,$04 WAYSTONE
6ECC DEFB $00,$02,$02,$00,$00,$83,$2D,$2B
6ED4 DEFM $08,$02,$04,$01,$0E,$0B,$13,$1A ICEBOLT_
6EDC DEFB $00,$01,$04,$FF,$00,$00,$2F,$00
6EE4 DEFM $00,$0C,$14,$0B,$04,$13,$1A,$1A AMULET__
6EEC DEFB $00,$02,$02,$00,$00,$85,$2D,$2B
6EF4 DEFM $05,$08,$11,$04,$01,$00,$0B,$0B FIREBALL
6EFC DEFB $00,$04,$05,$00,$00,$00,$2D,$00
6F04 DEFM $05,$11,$04,$04,$19,$04,$1A,$1A FREEZE__
6F0C DEFB $00,$04,$05,$00,$00,$00,$33,$00
6F14 DEFM $12,$14,$0C,$0C,$0E,$0D,$1A,$1A SUMMON__
6F1C DEFB $00,$01,$04,$00,$00,$00,$33,$00
6F24 DEFM $03,$04,$05,$04,$0D,$02,$04,$1A DEFENCE_
6F2C DEFB $00,$08,$05,$00,$00,$00,$2D,$00
6F34 DEFM $0F,$0E,$11,$13,$00,$0B,$1A,$1A PORTAL__
6F3C DEFB $00,$04,$04,$FF,$00,$00,$33,$00
6F44 DEFM $16,$1A,$01,$00,$0D,$04,$1A,$1A W_BANE__
6F4C DEFB $00,$04,$02,$00,$00,$02,$2D,$2B
6F54 DEFM $03,$08,$12,$0F,$04,$0B,$1A,$1A DISPEL__
6F5C DEFB $00,$02,$03,$00,$00,$86,$33,$2B
6F64 DEFM $04,$0B,$04,$02,$13,$11,$08,$02 ELECTRIC
6F6C DEFB $00,$06,$02,$00,$00,$87,$2D,$2B
6F74 DEFM $15,$00,$0F,$0E,$11,$08,$19,$04 VAPORIZE
6F7C DEFB $00,$02,$03,$00,$00,$88,$2D,$2B
6F84 DEFM $05,$0B,$00,$0C,$04,$1A,$1A,$1A FLAME___
6F8C DEFB $00,$04,$02,$00,$00,$08,$2D,$2B
6F94 DEFM $05,$08,$0D,$03,$1A,$1A,$1A,$1A FIND____
6F9C DEFB $00,$FB,$04,$FF,$00,$00,$30,$00
6FA4 DEFM $02,$07,$00,$0B,$08,$02,$04,$1A CHALICE_
6FAC DEFB $00,$00,$05,$FF,$00,$00,$2D,$00
6FB4 DEFM $0C,$04,$12,$12,$00,$06,$04,$1A MESSAGE_
Prev: 6D24 Up: Map Next: 6FBC