Manual:Zone Manual/Appendices/Spell definitions in values.h

From DikuMUD Wiki
< Manual:Zone Manual‎ | Appendices
Revision as of 06:24, 15 November 2026 by Agent-mud (talk | contribs) (checked against the current code (wiki review 2026-11-15))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Spell definitions in values.h

Spells are numbered by the SPL_ constants. A zone uses them for the spells in potions, scrolls, wands and staffs (POTION_DEF, SCROLL_DEF, WAND_DEF, STAFF_DEF), in SPELL_TRANSFER, and for an NPC's spell skills. The spell numbers are defined in vme/include/values.h; each spell's name, sphere, cost and the rest are in vme/etc/spells.def. The tables below were made from these files in November 2026; when in doubt, look there.

Spell groups

The numbers below 12 are not spells but the spell groups (spheres), defined in vme/include/vme.h. An NPC's spell skills are set per group, e.g. spell[SPL_HEAT] 30 or with MSET_SPELL. SPL_NONE (-1) marks an unused spell slot in a potion, scroll, wand or staff; don't use 0, which is SPL_ALL.

Constant Value Name in spells.def Comment in the header
SPL_NONE -1 For wand, scrolls, etc.
SPL_ALL 0 theory
SPL_DIVINE 1 divine sphere
SPL_PROTECTION 2 protection sphere
SPL_DETECTION 3 detection sphere
SPL_SUMMONING 4 summoning sphere
SPL_CREATION 5 creation sphere
SPL_MIND 6 mind sphere
SPL_HEAT 7 fire sphere Fire
SPL_COLD 8 frost sphere Frost
SPL_CELL 9 electricity sphere Electricity
SPL_INTERNAL 10 poison sphere Poison
SPL_EXTERNAL 11 acid sphere Acid
Spells
Constant Value Name in spells.def Comment in the header
SPL_CALL_LIGHTNING 12 call lightning Cell Group
SPL_BLESS 13 bless D I V I N E
SPL_CURSE 14 curse
SPL_REMOVE_CURSE 15 remove curse
SPL_CURE_WOUNDS_1 16 cure light wounds
SPL_CURE_WOUNDS_2 17 cure serious wounds
SPL_CURE_WOUNDS_3 18 heal
SPL_CAUSE_WOUNDS_1 19 cause light wounds
SPL_CAUSE_WOUNDS_2 20 cause serious wounds
SPL_CAUSE_WOUNDS_3 21 harm
SPL_DISPEL_EVIL 22 dispel evil
SPL_REPEL_UNDEAD_1 23 repel lesser undead
SPL_REPEL_UNDEAD_2 24 repel greater undead
SPL_BLIND 25 blind
SPL_CURE_BLIND 26 cure blind
SPL_LOCATE_OBJECT 27 locate object
SPL_LOCATE_CHAR 28 locate person
SPL_RAISE_MAG 29 raise magic P R O T E C T I O N
SPL_RAISE_DIV 30 raise divine
SPL_RAISE_STR 31 strength
SPL_RAISE_DEX 32 dexterity
SPL_RAISE_CON 33 constitution
SPL_RAISE_CHA 34 charisma
SPL_RAISE_BRA 35 brain
SPL_SUN_RAY 36 sun ray
SPL_DIVINE_RESIST 37 divine resistance
SPL_QUICKEN 38 quicken
SPL_HASTE 39 haste
SPL_RAISE_SUMMONING 40 summoning resistance
SPL_AWAKEN 41 awaken
SPL_MIND_SHIELD 42 mind shield
SPL_HEAT_RESI 43 heat resistance
SPL_COLD_RESI 44 cold resistance
SPL_ELECTRICITY_RESI 45 electricity resistance
SPL_POISON_RESI 46 poison resistance
SPL_ACID_RESI 47 acid resistance
SPL_PRO_EVIL 48 protection from evil
SPL_SANCTUARY 49 sanctuary
SPL_DISPEL_MAGIC 50 dispel magic
SPL_SUSTAIN 51 sustain
SPL_LOCK 52 lock
SPL_UNLOCK 53 unlock
SPL_DROWSE 54 drowse
SPL_SLOW 55 slow
SPL_DUST_DEVIL 56 dust devil
SPL_DET_ALIGN 57 detect alignment D E T E C T I O N
SPL_DET_INVISIBLE 58 detect invisible
SPL_DET_MAGIC 59 detect magic
SPL_DET_POISON 60 detect poison
SPL_DET_UNDEAD 61 detect undead
SPL_DET_CURSE 62 detect curse
SPL_SENSE_LIFE 63 sense life
SPL_IDENTIFY_1 64 identify
SPL_IDENTIFY_2 65 improved identify
SPL_RANDOM_TELEPORT 66 random teleport S U M M O N I N G
SPL_CLEAR_SKIES 67 clear skies
SPL_STORM_CALL 68 storm call
SPL_WORD_OF_RECALL 69 word of recall
SPL_CONTROL_TELEPORT 70 controlled teleport
SPL_MINOR_GATE 71 minor gate
SPL_GATE 72 gate
SPL_CREATE_FOOD 73 create food C R E A T I O N
SPL_CREATE_WATER 74 create water
SPL_LIGHT_1 75 light
SPL_LIGHT_2 76 continual light
SPL_DARKNESS_1 77 darkness
SPL_DARKNESS_2 78 continual darkness
SPL_STUN 79 stun
SPL_HOLD 80 hold
SPL_ANIMATE_DEAD 81 animate dead
SPL_LEATHER_SKIN 82 leather skin
SPL_BARK_SKIN 83 bark skin
SPL_CONTROL_UNDEAD 84 control undead
SPL_BONE_SKIN 85 bone skin
SPL_STONE_SKIN 86 stone skin
SPL_AID 87 aid
SPL_COLOURSPRAY_1 88 flash M I N D
SPL_COLOURSPRAY_2 89 colourbeam
SPL_COLOURSPRAY_3 90 colourspray
SPL_INVISIBILITY 91 invisibility
SPL_WIZARD_EYE 92 wizard eye
SPL_FEAR 93 fear
SPL_CONFUSION 94 confusion
SPL_SLEEP 95 sleep
SPL_XRAY_VISION 96 xray vision
SPL_CALM 97 calm
SPL_SUMMER_RAIN 98 summer rain
SPL_COMMAND 99 command
SPL_LEAVING 100 leaving
SPL_FIREBALL_1 101 burn H E A T
SPL_FIREBALL_2 102 fireball
SPL_FIREBALL_3 103 firestorm
SPL_FROSTBALL_1 104 snowball C O L D
SPL_FROSTBALL_2 105 frostball
SPL_FROSTBALL_3 106 iceball
SPL_LIGHTNING_1 107 electrical shock C E L L
SPL_LIGHTNING_2 108 jolt
SPL_LIGHTNING_3 109 lightning bolt
SPL_STINKING_CLOUD_1 110 fart I N T E R N A L
SPL_STINKING_CLOUD_2 111 bad breath
SPL_STINKING_CLOUD_3 112 stinking cloud
SPL_POISON 113 toxicate
SPL_REMOVE_POISON 114 remove poison
SPL_ENERGY_DRAIN 115 energy drain
SPL_DISEASE_1 116 madness
SPL_DISEASE_2 117 plague
SPL_REM_DISEASE 118 remove disease
SPL_ACIDBALL_1 119 acid drop E X T E R N A L
SPL_ACIDBALL_2 120 spray of acid
SPL_ACIDBALL_3 121 acid ball
SPL_LEAF_SHIELD 122 leaf shield
SPL_FIND_PATH 123 find path Divine
SPL_DISPEL_GOOD 124 dispel good
SPL_PRO_GOOD 125 protection from good
SPL_TRANSPORT 126 transport
SPL_FIRE_BREATH 127 fire breath
SPL_FROST_BREATH 128 frost breath
SPL_LIGHTNING_BREATH 129 lightning breath
SPL_ACID_BREATH 130 acid breath
SPL_GAS_BREATH 131 gas breath
SPL_LIGHT_BREATH 132 light breath
SPL_HOLD_MONSTER 133 hold monster
SPL_HOLD_UNDEAD 134 hold undead
SPL_RAISE_DEAD 135 raise dead
SPL_RESURRECTION 136 resurrection
SPL_TOTAL_RECALL 137 total recall
SPL_UNDEAD_DOOR 138 undead door
SPL_LIFE_PROTECTION 139 life protection
SPL_ENERGY_BOLT 140 energy bolt
SPL_CLENCHED_FIST 141 clenched fist
SPL_METEOR_SHOWER 142 meteor shower
SPL_SUN_BEAM 143 sun beam
SPL_SOLAR_FLARE 144 solar flare
SPL_SUMMON_DEVIL 145 summon devil
SPL_SUMMON_DEMON 146 summon demon
SPL_SUMMON_FIRE 147 summon fire
SPL_SUMMON_WATER 148 summon water
SPL_SUMMON_AIR 149 summon air
SPL_SUMMON_EARTH 150 summon earth
SPL_CHARGE_WAND 151 charge wand
SPL_CHARGE_STAFF 152 charge staff
SPL_MENDING 153 mending
SPL_REPAIR 154 repair
SPL_RECONSTRUCT 155 reconstruct
SPL_SENDING 156 sending
SPL_REFIT 157 refit
SPL_FIND_WANTED 158 find wanted
SPL_LOCATE_WANTED 159 locate wanted
SPL_STORM_GATE 160 storm gate
SPL_SUN_GLOBE 161 sun globe
SPL_MAGIC_CANDLE 162 magic candle
SPL_SONIC_BREATH 163 sonic breath
SPL_SHARD_BREATH 164 shard breath
SPL_CONE_SHARD 165 cone of shards
SPL_SACRED 166 sacred
SPL_CAUSE_INSTABILITY 167 cause instability
SPL_CAUSE_FLIGHT 168 cause cowardly flight
SPL_SLOW_ROT 169 slow rot
SPL_HAMMER_HAND 170 hammer hand
SPL_CAUSE_PANIC 171 cause panic
SPL_BANISH 172 banish
SPL_HOLD_FLIGHT 173 hold flight
SPL_BLINDING_FLASH 174 blinding flash
SPL_BLIZZARD 175 blizzard
SPL_SUMMON_ANIMAL 176 summon animal
SPL_HEAL_ANIMAL 177 heal animal
SPL_HOLD_ANIMAL 178 hold animal
SPL_CHARM_ANIMAL 179 charm animal
SPL_LOCATE_ANIMAL 180 locate animal
SPL_ENTANGLE 181 entangle
SPL_REFRESH 182 refresh
SPL_TIGER_CLAW 183 tiger claw
SPL_EAGLE_CRY 184 eagle cry
SPL_GROUP_TELEPORT 185 group teleport
SPL_RAISE_HPP 186 raise hitpoints
SPL_SOUL_SHIFT 187 soul shift
SPL_AID_UNDEAD 188 aid undead
SPL_HOLY_WORD 189 holy word
SPL_UNHOLY_WORD 190 unholy word
SPL_FINAL_REST 191 final rest
SPL_RAISE_SKELETON 192 raise skeleton
SPL_RAISE_CHAMPION 193 raise skeletal champion
SPL_RAISE_HORDE 194 raise horde
SPL_PORTAL 195 portal
SPL_TRAVEL 196 travel
SPL_GLOW_FUNGUS 197 glowing fungus
SPL_SEN_INVISIBLE 198 sense invisible
SPL_MANA_BOOST 199 mana boost Creation
SPL_TSUNAMI 200 tsunami
SPL_QUICKSAND 201 quicksand
SPL_HEDGE_WALL 202 hedge wall
SPL_POISON_IVY 203 poison ivy
SPL_THORN_STRIKE 204 thorn strike
SPL_WIND_SLASH 205 wind slash
SPL_PETRIFY 206 petrify
SPL_MUD_PUDDLE 207 mud puddle
SPL_EARTH_QUAKE 208 earthquake
SPL_BRAMBLES 209 brambles
SPL_POLARITY 210 polarity
SPL_SUMMON_LIGHT 211 summon lightning
SPL_ICE_THORN 212 ice thorn
SPL_WIZARD_MARK 213 wizard mark
SPL_FOCUS 214 focus
SPL_FIREBALL_4 215 fire blast H E A T
SPL_FROSTBALL_4 216 icestorm C O L D
SPL_LIGHTNING_4 217 lightning storm C E L L
SPL_ACIDBALL_4 218 acid swirl E X T E R N A L
SPL_COLOURSPRAY_4 219 flashing grip M I N D
SPL_STINKING_CLOUD_4 220 stinking breath I N T E R N A L
SPL_CAUSE_WOUNDS_4 221 deathly grasp DIVINE
SPL_HOLY_WORD_2 222 holy touch
SPL_HOLY_WORD_3 223 holy grasp
SPL_HOLY_WORD_4 224 holy shout
SPL_UNHOLY_WORD_2 225 unholy touch
SPL_UNHOLY_WORD_3 226 unholy grasp
SPL_UNHOLY_WORD_4 227 unholy shout
SPL_CONDEMN 228 condemn
SPL_DISPLACE_MAGIC 229 displace magic
SPL_LAVA_1 230 lava flow
SPL_LAVA_2 231 hellfire
SPL_LAVA_3 232 brimstone
SPL_LAVA_4 233 soulfire
SPL_MIRE 234 mire
SPL_NIGHT_GLOBE 235 night globe
SPL_UBLESS 236 unholy blessing
Previous: Skill definitions in values.h
End of Manual: Table of Contents