SPELLS
SUPPORT
(SP)
RECEIVER
The SP Receiver lets you change parameters of spells.
!!SP:XXXX;
Spells support
OPTIONSA$
Set abbreviation name.
$ - string.
See comments below.
C#/$
Set/check/get mana Cost.
# - level (0..3, referring to Magic School skill)
$ - mana cost
D#/$
Set/check/get description.
# - level (0..3, referring to Magic School skill)
$ - string.
See comments below.
E#/$
Set/check/get effect number.
# - level (0..3, referring to Magic School skill)
$ - effect.
For different spells it means different things.
F$
Set/check/get Flags.
$ - flags.
0x00000001 - Battlefield spell
0x00000002 - MAP spell
0x00000004 - Has a time scale
0x00000008 - Creature Spell
0x00000010 - target - single stack
0x00000020 - target - single shooting stack
0x00000040 - has mass version at expert level
0x00000080 - target - any location
0x00000100 - target - obstacle
0x00000200 - damage spell
0x00000400 - Mind spell
0x00000800 - friendly and has mass version
0x00001000 - cannot be cast on SIEGE_WEAPON
0x00002000 - Spell from Artifact
0x00004000 - protection spell
0x00008000 - AI
(Meteor Shower, Magic Arrow, Ice Bolt, Lightning Bolt,
Implosion, Frost Ring, Fireball, Meteor Shower,
Titan's Bolt, not Chain Lightning, not Inferno)
0x00010000 - AI area effect
0x00020000 - AI
(Armageddon, Destroy Undead, Death Ripple)
0x00040000 - AI
(Bless, Curse, Bloodlust, Precision, Weakness, Stone Skin,
Disrupting Ray, Prayer, Mirth, Sorrow, Fortune, Misfortune,
Haste, Slow, Slayer, Frenzy, Clone, Blind, Teleport,
Counterstrike, Berserk, Shield, Air Shield, Fire Shield,
Protection from Air, Protection from Fire, Prot. from Water,
Prot. from Earth, Anti-Magic, Dispel, Magic Mirror, Cure)
0x00080000 - AI number/ownership of stacks may be changed
0x00100000 - AI
(Summon Boat, Fly, Water Walk, Dimension Door, Town Portal, Earthquake, Titan's Lightning Bolt)
H#/$
Set/check/get chances of appearing in towns.
# - town type (see format T)
$ - chance of appearing.
I#/$
Set/check/get AI value
# - level (0..3, referring to Magic School skill)
$ - AI value.
L$
Set/check/get spell level.
N$
Set/check/get spell name.
$ - string.
See comments below.
O$
Set/check/get target type.
$ - type
1 = target is friendly stack
-1 = target is enemy stack
0 = any hex
P$
Set/check/get spell power.
For different spells it means different things.
S$
Set/check/get spell's magic schools bits.
$ - dword of flags.
Only first 4 bits are used.
1 = Air Magic School
2 = Fire Magic School
4 = Water Magic School
8 = Earth Magic School
W$
Set/check/get wave sound file.
$ - file name
See comments below.
X$
Set/check/get DEF animation (index).
$ - index.
Default indexes are stored here.
Comments for strings in A,N,D,W commands:
You may not get the default file name now but you can set it (and check later) through z vars.
You may use a standard Z vars [1...1000] or a static Z vars from ERT file [>1000].
If you set the name and then check it, you will receive an index of Z var you set the name.
If you did not set the name, you will get 0.