The SPELL_* and SPELLABILITY_* constants are used in NWScript to identify spells, spell-like abilities, the results of many activated non-combat feats, and basically every other instance of a character actively causing a script to be run, excluding events. For simplicity, all of these will be called "spells" in this article. The values of these constants are the row numbers corresponding to the spells in spells.2da
.
For spells that have subspells (e.g. protection from alignment), there are constants for both the master spell and the subspells. Whenever a script deals with an actual casting of a spell — such as telling a creature to cast a spell or checking the identity of a spell that was just cast — the constants for the master spells are not used. There are a few exceptions (the script x2_s2_gwildshp
supports the shifter forms being used from their various master feats instead of an exact form being specified), but only a few.
Some entries in spells.2da
correspond to secondary results of other abilities, such as when a particular card is drawn from the deck of hazards. (Using the deck is one spell; each card can be its own spell.) These spells will be identified as "a result of" the spell it is secondary to. Unlike subspells, the master spell is cast, and from within the master spell, an instruction is issued to cast the secondary spell. (In contrast, a subspell is cast instead of the master spell.)
An interesting use of spells.2da
are the rows that do not fire a script. BioWare added a few such rows purely for the visual effects they produce, primarily the projectile. These spells are identified as "X visual effect" and can be cast via scripting, even though such a casting will not cause anything to happen in the game other than the visual effect. In a sense, these spells are "fake cast" even when nominally being cast normally.
During the development of the game, changes were made as to what would be included in the final product. At times features were dropped, but time was not spent to remove all traces of dropped features. This is evident among the SPELL_* and SPELLABILITY_* constants, as there are several that have been defined in NWScript even though they now correspond to starred-out rows in spells.2da
. Such constants are listed below for completeness even though they have no use in scripts.
Spells[]
The SPELL_* constants are used for all spells that a player can cast, as well as for some other abilities (that possibly could have been given SPELLABILITY_* constants, but were given SPELL_* constants instead).
Constant | Spell |
---|---|
SPELL_ACID_FOG | acid fog |
SPELL_ACID_SPLASH | acid splash |
SPELL_ACTIVATE_ITEM_PORTAL | manipulate portal stone |
SPELL_ACTIVATE_ITEM_SELF2 | activate item |
SPELL_AID | aid |
SPELL_ALL_SPELLS | any/all spells (not always meaningful) |
SPELL_AMPLIFY | amplify |
SPELL_ANIMATE_DEAD | animate dead |
SPELL_AURA_OF_VITALITY | aura of vitality |
SPELL_AURAOFGLORY | aura of glory |
SPELL_AWAKEN | awaken |
SPELL_BALAGARNSIRONHORN | Balagarn's iron horn |
SPELL_BALL_LIGHTNING | ball lightning |
SPELL_BANE | bane |
SPELL_BANISHMENT | banishment |
SPELL_BARKSKIN | barkskin |
SPELL_BATTLETIDE | battletide |
SPELL_BESTOW_CURSE | bestow curse |
SPELL_BIGBYS_CLENCHED_FIST | Bigby's clenched fist |
SPELL_BIGBYS_CRUSHING_HAND | Bigby's crushing hand |
SPELL_BIGBYS_FORCEFUL_HAND | Bigby's forceful hand |
SPELL_BIGBYS_GRASPING_HAND | Bigby's grasping hand |
SPELL_BIGBYS_INTERPOSING_HAND | Bigby's interposing hand |
SPELL_BLACK_BLADE_OF_DISASTER | black blade of disaster |
SPELL_BLACKSTAFF | blackstaff |
SPELL_BLADE_BARRIER | blade barrier |
SPELL_BLADE_THIRST | blade thirst |
SPELL_BLESS | bless |
SPELL_BLESS_WEAPON | bless weapon |
SPELL_BLINDNESS_AND_DEAFNESS | blindness/deafness |
SPELL_BLOOD_FRENZY | blood frenzy |
SPELL_BOMBARDMENT | bombardment |
SPELL_BULLS_STRENGTH | bull's strength |
SPELL_BURNING_HANDS | burning hands |
SPELL_CALL_LIGHTNING | call lightning |
SPELL_CAMOFLAGE | camouflage |
SPELL_CATS_GRACE | cat's grace |
SPELL_CHAIN_LIGHTNING | chain lightning |
SPELL_CHARGER | intended: magic electrifier: charge actually: deck of hazards (a bug) |
SPELL_CHARM_MONSTER | charm monster |
SPELL_CHARM_PERSON | charm person |
SPELL_CHARM_PERSON_OR_ANIMAL | charm person or animal |
SPELL_CIRCLE_OF_DEATH | circle of death |
SPELL_CIRCLE_OF_DOOM | circle of doom |
SPELL_CLAIRAUDIENCE_AND_CLAIRVOYANCE | clairaudience/clairvoyance |
SPELL_CLARITY | clarity |
SPELL_CLOAK_OF_CHAOS | (dropped spell) |
SPELL_CLOUD_OF_BEWILDERMENT | cloud of bewilderment |
SPELL_CLOUDKILL | cloudkill |
SPELL_COLOR_SPRAY | color spray |
SPELL_COMBUST | combust |
SPELL_CONE_OF_COLD | cone of cold |
SPELL_CONFUSION | confusion |
SPELL_CONTAGION | contagion |
SPELL_CONTINUAL_FLAME | continual flame |
SPELL_CONTROL_UNDEAD | control undead |
SPELL_CRAFT_ADD_ITEM_PROPERTY | add item property |
SPELL_CRAFT_CRAFT_ARMOR_SKILL | craft armor (item property) |
SPELL_CRAFT_CRAFT_WEAPON_SKILL | craft weapon (item property) |
SPELL_CRAFT_DYE_CLOTHCOLOR_1 | dye kit: cloth 1 |
SPELL_CRAFT_DYE_CLOTHCOLOR_2 | dye kit: cloth 2 |
SPELL_CRAFT_DYE_LEATHERCOLOR_1 | dye kit: leather 1 |
SPELL_CRAFT_DYE_LEATHERCOLOR_2 | dye kit: leather 2 |
SPELL_CRAFT_DYE_METALCOLOR_1 | dye kit: metal 1 |
SPELL_CRAFT_DYE_METALCOLOR_1 | dye kit: metal 2 |
SPELL_CRAFT_HARPER_ITEM | craft harper item |
SPELL_CRAFT_POISON_WEAPON_OR_AMMO | poison item |
SPELL_CREATE_GREATER_UNDEAD | create greater undead |
SPELL_CREATE_UNDEAD | create undead |
SPELL_CREEPING_DOOM | creeping doom |
SPELL_CRUMBLE | crumble |
SPELL_CURE_CRITICAL_WOUNDS | cure critical wounds |
SPELL_CURE_LIGHT_WOUNDS | cure light wounds |
SPELL_CURE_MINOR_WOUNDS | cure minor wounds |
SPELL_CURE_MODERATE_WOUNDS | cure moderate wounds |
SPELL_CURE_SERIOUS_WOUNDS | cure serious wounds |
SPELL_DARKFIRE | darkfire |
SPELL_DARKNESS | darkness |
SPELL_DARKVISION | ultravision |
SPELL_DAZE | daze |
SPELL_DEAFENING_CLANG | deafening clang |
SPELL_DEATH_ARMOR | death armor |
SPELL_DEATH_WARD | death ward |
SPELL_DECHARGER | magic electrifier: destroy |
SPELL_DECK_AVATAR | a result of deck of hazards |
SPELL_DECK_BUTTERFLYSPRAY | a result of rod of wonder |
SPELL_DECK_GEMSPRAY | a result of rod of wonder |
SPELL_DECK_OF_MANY_THINGS | deck of hazards |
SPELL_DELAYED_BLAST_FIREBALL | delayed blast fireball |
SPELL_DESTRUCTION | destruction |
SPELL_DIRGE | dirge |
SPELL_DISMISSAL | dismissal |
SPELL_DISPEL_MAGIC | dispel magic |
SPELL_DISPLACEMENT | displacement |
SPELL_DIVINE_FAVOR | divine favor |
SPELL_DIVINE_MIGHT | divine might |
SPELL_DIVINE_POWER | divine power |
SPELL_DIVINE_SHIELD | divine shield |
SPELL_DOMINATE_ANIMAL | dominate animal |
SPELL_DOMINATE_MONSTER | dominate monster |
SPELL_DOMINATE_PERSON | dominate person |
SPELL_DOOM | doom |
SPELL_DROWN | drown |
SPELL_EAGLE_SPLEDOR | eagle's splendor |
SPELL_EARTHQUAKE | earthquake |
SPELL_ELECTRIC_JOLT | electric jolt |
SPELL_ELEMENTAL_SHIELD | elemental shield |
SPELL_ELEMENTAL_SUMMONING_ITEM | bowl of commanding water elementals, brazier of commanding fire elementals, censer of controlling air elementals, stone of controlling earth elementals |
SPELL_ELEMENTAL_SWARM | elemental swarm |
SPELL_ENDURANCE | endurance |
SPELL_ENDURE_ELEMENTS | endure elements |
SPELL_ENERGY_BUFFER | energy buffer |
SPELL_ENERGY_DRAIN | energy drain |
SPELL_ENERVATION | enervation |
SPELL_ENTANGLE | entangle |
SPELL_ENTROPIC_SHIELD | entropic shield |
SPELL_EPIC_DRAGON_KNIGHT | dragon knight |
SPELL_EPIC_HELLBALL | hellball |
SPELL_EPIC_MAGE_ARMOR | epic mage armor |
SPELL_EPIC_MUMMY_DUST | mummy dust |
SPELL_EPIC_RUIN | greater ruin |
SPELL_ETHEREAL_VISAGE | ethereal visage |
SPELL_ETHEREALNESS | greater sanctuary |
SPELL_EVARDS_BLACK_TENTACLES | Evard's black tentacles |
SPELL_EXPEDITIOUS_RETREAT | expeditious retreat |
SPELL_FEAR | fear |
SPELL_FEEBLEMIND | feeblemind |
SPELL_FIND_TRAPS | find traps |
SPELL_FINGER_OF_DEATH | finger of death |
SPELL_FIRE_STORM | fire storm |
SPELL_FIREBALL | fireball |
SPELL_FIREBRAND | firebrand |
SPELL_FLAME_ARROW | flame arrow |
SPELL_FLAME_LASH | flame lash |
SPELL_FLAME_STRIKE | flame strike |
SPELL_FLAME_WEAPON | flame weapon |
SPELL_FLARE | flare |
SPELL_FLESH_TO_STONE | flesh to stone |
SPELL_FLYING_DEBRIS | flying debris visual effect |
SPELL_FOXS_CUNNING | fox's cunning |
SPELL_FREEDOM_OF_MOVEMENT | freedom of movement |
SPELL_GATE | gate |
SPELL_GEDLEES_ELECTRIC_LOOP | Gedlee's electric loop |
SPELL_GHOSTLY_VISAGE | ghostly visage |
SPELL_GHOUL_TOUCH | ghoul touch |
SPELL_GLOBE_OF_INVULNERABILITY | globe of invulnerability |
SPELL_GLYPH_OF_WARDING | glyph of warding |
SPELL_GREASE | grease |
SPELL_GREAT_THUNDERCLAP | great thunderclap |
SPELL_GREATER_BULLS_STRENGTH | greater bull's strength |
SPELL_GREATER_CATS_GRACE | greater cat's grace |
SPELL_GREATER_DISPELLING | greater dispelling |
SPELL_GREATER_EAGLE_SPLENDOR | greater eagle's splendor |
SPELL_GREATER_ENDURANCE | greater endurance |
SPELL_GREATER_FOXS_CUNNING | greater fox's cunning |
SPELL_GREATER_MAGIC_FANG | greater magic fang |
SPELL_GREATER_MAGIC_WEAPON | greater magic weapon |
SPELL_GREATER_OWLS_WISDOM | greater owl's wisdom |
SPELL_GREATER_PLANAR_BINDING | greater planar binding |
SPELL_GREATER_RESTORATION | greater restoration |
SPELL_GREATER_SHADOW_CONJURATION_ACID_ARROW | greater shadow conjuration: Melf's acid arrow |
SPELL_GREATER_SHADOW_CONJURATION_MINOR_GLOBE | greater shadow conjuration: minor globe of invulnerability |
SPELL_GREATER_SHADOW_CONJURATION_MIRROR_IMAGE | greater shadow conjuration: ghostly visage |
SPELL_GREATER_SHADOW_CONJURATION_SUMMON_SHADOW | greater shadow conjuration: summon shadow |
SPELL_GREATER_SHADOW_CONJURATION_WEB | greater shadow conjuration: web |
SPELL_GREATER_SPELL_BREACH | greater spell breach |
SPELL_GREATER_SPELL_MANTLE | greater spell mantle |
SPELL_GREATER_STONESKIN | greater stoneskin |
SPELL_GRENADE_ACID | acid flask |
SPELL_GRENADE_CALTROPS | caltrops |
SPELL_GRENADE_CHICKEN | chickenegg |
SPELL_GRENADE_CHOKING | choking powder |
SPELL_GRENADE_FIRE | alchemist's fire |
SPELL_GRENADE_HOLY | holy water |
SPELL_GRENADE_TANGLE | tanglefoot bag |
SPELL_GRENADE_THUNDERSTONE | thunderstone |
SPELL_GUST_OF_WIND | gust of wind |
SPELL_HAMMER_OF_THE_GODS | hammer of the gods |
SPELL_HARM | harm |
SPELL_HASTE | haste |
SPELL_HEAL | heal |
SPELL_HEALING_CIRCLE | healing circle |
SPELL_HEALING_STING | healing sting |
SPELL_HEALINGKIT | (dropped; became hardcoded) |
SPELL_HOLD_ANIMAL | hold animal |
SPELL_HOLD_MONSTER | hold monster |
SPELL_HOLD_PERSON | hold person |
SPELL_HOLY_AURA | holy aura |
SPELL_HOLY_SWORD | holy sword |
SPELL_HORIZIKAULS_BOOM | Horizikaul's boom |
SPELL_HORRID_WILTING | horrid wilting |
SPELL_HORSE_ASSIGN_MOUNT | horse menu: assign mount |
SPELL_HORSE_DISMOUNT | horse menu: individual dismount |
SPELL_HORSE_MENU | horse menu |
SPELL_HORSE_MOUNT | horse menu: individual mount |
SPELL_HORSE_PARTY_DISMOUNT | horse menu: party dismount |
SPELL_HORSE_PARTY_MOUNT | horse menu: party mount |
SPELL_ICE_DAGGER | ice dagger |
SPELL_ICE_STORM | ice storm |
SPELL_IDENTIFY | identify |
SPELL_IMPLOSION | implosion |
SPELL_IMPROVED_INVISIBILITY | improved invisibility |
SPELL_INCENDIARY_CLOUD | incendiary cloud |
SPELL_INFERNO | inferno |
SPELL_INFESTATION_OF_MAGGOTS | infestation of maggots |
SPELL_INFLICT_CRITICAL_WOUNDS | inflict critical wounds |
SPELL_INFLICT_LIGHT_WOUNDS | inflict light wounds |
SPELL_INFLICT_MINOR_WOUNDS | inflict minor wounds |
SPELL_INFLICT_MODERATE_WOUNDS | inflict moderate wounds |
SPELL_INFLICT_SERIOUS_WOUNDS | inflict serious wounds |
SPELL_INVISIBILITY | invisibility |
SPELL_INVISIBILITY_PURGE | invisibility purge |
SPELL_INVISIBILITY_SPHERE | invisibility sphere |
SPELL_IOUN_STONE_BLUE | blue ioun stone |
SPELL_IOUN_STONE_DEEP_RED | deep red ioun stone |
SPELL_IOUN_STONE_DUSTY_ROSE | dusty rose ioun stone |
SPELL_IOUN_STONE_PALE_BLUE | pale blue ioun stone |
SPELL_IOUN_STONE_PINK | pink ioun stone |
SPELL_IOUN_STONE_PINK_GREEN | pink and green ioun stone |
SPELL_IOUN_STONE_SCARLET_BLUE | scarlet and blue ioun stone |
SPELL_IRONGUTS | ironguts |
SPELL_ISAACS_GREATER_MISSILE_STORM | Isaac's greater missile storm |
SPELL_ISAACS_LESSER_MISSILE_STORM | Isaac's lesser missile storm |
SPELL_KEEN_EDGE | keen edge |
SPELL_KNOCK | knock |
SPELL_KOBOLD_JUMP | jumping kobold visual effect |
SPELL_LEGEND_LORE | legend lore |
SPELL_LESSER_DISPEL | lesser dispel |
SPELL_LESSER_MIND_BLANK | lesser mind blank |
SPELL_LESSER_PLANAR_BINDING | lesser planar binding |
SPELL_LESSER_RESTORATION | lesser restoration |
SPELL_LESSER_SPELL_BREACH | lesser spell breach |
SPELL_LESSER_SPELL_MANTLE | lesser spell mantle |
SPELL_LIGHT | light |
SPELL_LIGHTNING_BOLT | lightning bolt |
SPELL_MAGE_ARMOR | mage armor |
SPELL_MAGIC_CIRCLE_AGAINST_CHAOS | (dropped spell) |
SPELL_MAGIC_CIRCLE_AGAINST_EVIL | magic circle against evil |
SPELL_MAGIC_CIRCLE_AGAINST_GOOD | magic circle against good |
SPELL_MAGIC_CIRCLE_AGAINST_LAW | (dropped spell) |
SPELL_MAGIC_FANG | magic fang |
SPELL_MAGIC_MISSILE | magic missile |
SPELL_MAGIC_VESTMENT | magic vestment |
SPELL_MAGIC_WEAPON | magic weapon |
SPELL_MASS_BLINDNESS_AND_DEAFNESS | mass blindness/deafness |
SPELL_MASS_CAMOFLAGE | mass camouflage |
SPELL_MASS_CHARM | mass charm |
SPELL_MASS_HASTE | mass haste |
SPELL_MASS_HEAL | mass heal |
SPELL_MELFS_ACID_ARROW | Melf's acid arrow |
SPELL_MESTILS_ACID_BREATH | Mestil's acid breath |
SPELL_MESTILS_ACID_SHEATH | Mestil's acid sheath |
SPELL_METEOR_SWARM | meteor swarm |
SPELL_MIND_BLANK | mind blank |
SPELL_MIND_FOG | mind fog |
SPELL_MINOR_GLOBE_OF_INVULNERABILITY | minor globe of invulnerability |
SPELL_MONSTROUS_REGENERATION | monstrous regeneration |
SPELL_MORDENKAINENS_DISJUNCTION | Mordenkainen's disjunction |
SPELL_MORDENKAINENS_SWORD | Mordenkainen's sword |
SPELL_NATURES_BALANCE | nature's balance |
SPELL_NEGATIVE_ENERGY_BURST | negative energy burst |
SPELL_NEGATIVE_ENERGY_PROTECTION | negative energy protection |
SPELL_NEGATIVE_ENERGY_RAY | negative energy ray |
SPELL_NEUTRALIZE_POISON | neutralize poison |
SPELL_ONE_WITH_THE_LAND | one with the land |
SPELL_OWLS_INSIGHT | owl's insight |
SPELL_OWLS_WISDOM | owl's wisdom |
SPELL_PALADIN_SUMMON_MOUNT | summon mount |
SPELL_PHANTASMAL_KILLER | phantasmal killer |
SPELL_PLANAR_ALLY | planar ally |
SPELL_PLANAR_BINDING | planar binding |
SPELL_POISON | poison |
SPELL_POLYMORPH_SELF | polymorph self |
SPELL_POWER_WORD_KILL | power word, kill |
SPELL_POWER_WORD_STUN | power word, stun |
SPELL_POWERSTONE | power stone |
SPELL_PRAYER | prayer |
SPELL_PREMONITION | premonition |
SPELL_PRISMATIC_SPRAY | prismatic spray |
SPELL_PROTECTION__FROM_CHAOS | (dropped spell) |
SPELL_PROTECTION_FROM_ELEMENTS | protection from elements |
SPELL_PROTECTION_FROM_EVIL | protection from evil |
SPELL_PROTECTION_FROM_GOOD | protection from good |
SPELL_PROTECTION_FROM_LAW | (dropped spell) |
SPELL_PROTECTION_FROM_SPELLS | protection from spells |
SPELL_QUILLFIRE | quillfire |
SPELL_RAISE_DEAD | raise dead |
SPELL_RAY_OF_ENFEEBLEMENT | ray of enfeeblement |
SPELL_RAY_OF_FROST | ray of frost |
SPELL_REGENERATE | regenerate |
SPELL_REMOVE_BLINDNESS_AND_DEAFNESS | remove blindness/deafness |
SPELL_REMOVE_CURSE | remove curse |
SPELL_REMOVE_DISEASE | remove disease |
SPELL_REMOVE_FEAR | remove fear |
SPELL_REMOVE_PARALYSIS | remove paralysis |
SPELL_RESIST_ELEMENTS | resist elements |
SPELL_RESISTANCE | resistance |
SPELL_RESTORATION | restoration |
SPELL_RESURRECTION | resurrection |
SPELL_ROD_OF_WONDER | rod of wonder |
SPELL_SANCTUARY | sanctuary |
SPELL_SCARE | scare |
SPELL_SCINTILLATING_SPHERE | scintillating sphere |
SPELL_SEARING_LIGHT | searing light |
SPELL_SEE_INVISIBILITY | see invisibility |
SPELL_SHADES_CONE_OF_COLD | shades: cone of cold |
SPELL_SHADES_FIREBALL | shades: fireball |
SPELL_SHADES_STONESKIN | shades: stoneskin |
SPELL_SHADES_SUMMON_SHADOW | shades: summon shadow |
SPELL_SHADES_WALL_OF_FIRE | shades: wall of fire |
SPELL_SHADOW_CONJURATION_DARKNESS | shadow conjuration: darkness |
SPELL_SHADOW_CONJURATION_INIVSIBILITY | shadow conjuration: invisibility |
SPELL_SHADOW_CONJURATION_MAGE_ARMOR | shadow conjuration: mage armor |
SPELL_SHADOW_CONJURATION_MAGIC_MISSILE | shadow conjuration: magic missile |
SPELL_SHADOW_CONJURATION_SUMMON_SHADOW | shadow conjuration: summon shadow |
SPELL_SHADOW_DAZE | shadow daze |
SPELL_SHADOW_EVADE | shadow evade |
SPELL_SHADOW_SHIELD | shadow shield |
SPELL_SHAPECHANGE | shapechange |
SPELL_SHELGARNS_PERSISTENT_BLADE | Shelgarn's persistent blade |
SPELL_SHIELD | shield |
SPELL_SHIELD_OF_FAITH | shield of faith |
SPELL_SHIELD_OF_LAW | (dropped spell) |
SPELL_SILENCE | silence |
SPELL_SLAY_LIVING | slay living |
SPELL_SLEEP | sleep |
SPELL_SLOW | slow |
SPELL_SOUND_BURST | sound burst |
SPELL_SPELL_MANTLE | spell mantle |
SPELL_SPELL_RESISTANCE | spell resistance |
SPELL_SPELLSTAFF | spellstaff |
SPELL_SPHERE_OF_CHAOS | (dropped spell) |
SPELL_SPIKE_GROWTH | spike growth |
SPELL_STINKING_CLOUD | stinking cloud |
SPELL_STONE_BONES | stone bones |
SPELL_STONE_TO_FLESH | stone to flesh |
SPELL_STONEHOLD | stonehold |
SPELL_STONESKIN | stoneskin |
SPELL_STORM_OF_VENGEANCE | storm of vengeance |
SPELL_SUMMON_CREATURE_I | summon creature I |
SPELL_SUMMON_CREATURE_II | summon creature II |
SPELL_SUMMON_CREATURE_III | summon creature III |
SPELL_SUMMON_CREATURE_IV | summon creature IV |
SPELL_SUMMON_CREATURE_IX | summon creature IX |
SPELL_SUMMON_CREATURE_V | summon creature V |
SPELL_SUMMON_CREATURE_VI | summon creature VI |
SPELL_SUMMON_CREATURE_VII | summon creature VII |
SPELL_SUMMON_CREATURE_VIII | summon creature VIII |
SPELL_SUMMON_SHADOW | summon shadow |
SPELL_SUNBEAM | sunbeam |
SPELL_SUNBURST | sunburst |
SPELL_TASHAS_HIDEOUS_LAUGHTER | Tasha's hideous laughter |
SPELL_TENSERS_TRANSFORMATION | Tenser's transformation |
SPELL_TIME_STOP | time stop |
SPELL_TRAP_ARROW | |
SPELL_TRAP_BOLT | |
SPELL_TRAP_DART | |
SPELL_TRAP_SHURIKEN | |
SPELL_TRUE_SEEING | true seeing |
SPELL_TRUE_STRIKE | true strike |
SPELL_TYMORAS_SMILE | Tymora's smile |
SPELL_UNDEATH_TO_DEATH | undeath to death |
SPELL_UNDEATHS_ETERNAL_FOE | undeath's eternal foe |
SPELL_UNHOLY_AURA | unholy aura |
SPELL_VAMPIRIC_TOUCH | vampiric touch |
SPELL_VINE_MINE | vine mine |
SPELL_VINE_MINE_CAMOUFLAGE | vine mine: camouflage |
SPELL_VINE_MINE_ENTANGLE | vine mine: entangle |
SPELL_VINE_MINE_HAMPER_MOVEMENT | vine mine: hamper movement |
SPELL_VIRTUE | virtue |
SPELL_WAIL_OF_THE_BANSHEE | wail of the banshee |
SPELL_WALL_OF_FIRE | wall of fire |
SPELL_WAR_CRY | war cry |
SPELL_WEB | web |
SPELL_WEIRD | weird |
SPELL_WORD_OF_FAITH | word of faith |
SPELL_WOUNDING_WHISPERS | wounding whispers |
Spell-like abilities[]
The SPELLABILTY_* constants generally cover most of the scripted abilities that are not cast from a spellbook, excluding those that were given SPELL_* constants (for unknown reasons, possibly just oversights).
Constant | Ability |
---|---|
SPELLABILITY_AA_ARROW_OF_DEATH | arrow of death |
SPELLABILITY_AA_HAIL_OF_ARROWS | hail of arrows |
SPELLABILITY_AA_IMBUE_ARROW | imbue arrow |
SPELLABILITY_AA_SEEKER_ARROW_1 | seeker arrow I |
SPELLABILITY_AA_SEEKER_ARROW_2 | seeker arrow II |
SPELLABILITY_ACTIVATE_ITEM | unique power |
SPELLABILITY_AS_DARKNESS | darkness (feat) |
SPELLABILITY_AS_GHOSTLY_VISAGE | ghostly visage (feat) |
SPELLABILITY_AS_IMPROVED_INVISIBLITY | improved invisibility (feat) |
SPELLABILITY_AS_INVISIBILITY | invisibility (feat) (assassin) |
SPELLABILITY_AURA_BLINDING | aura of blinding |
SPELLABILITY_AURA_COLD | aura of cold |
SPELLABILITY_AURA_ELECTRICITY | aura of electricity |
SPELLABILITY_AURA_FEAR | aura of fear |
SPELLABILITY_AURA_FIRE | aura of fire |
SPELLABILITY_AURA_HORRIFICAPPEARANCE | horrific appearance |
SPELLABILITY_AURA_MENACE | aura of menace |
SPELLABILITY_AURA_OF_COURAGE | (became hardcoded) |
SPELLABILITY_AURA_PROTECTION | aura of protection |
SPELLABILITY_AURA_STUN | aura of stunning |
SPELLABILITY_AURA_UNEARTHLY_VISAGE | aura of unearthly visage |
SPELLABILITY_AURA_UNNATURAL | aura of unnatural |
SPELLABILITY_BARBARIAN_RAGE | barbarian rage |
SPELLABILITY_BATTLE_MASTERY | war domain power |
SPELLABILITY_BG_BULLS_STRENGTH | bull's strength (feat) |
SPELLABILITY_BG_CONTAGION | contagion (feat) |
SPELLABILITY_BG_CREATEDEAD | create undead (feat) |
SPELLABILITY_BG_FIENDISH_SERVANT | summon fiend |
SPELLABILITY_BG_INFLICT_CRITICAL_WOUNDS | inflict critical wounds (feat) |
SPELLABILITY_BG_INFLICT_SERIOUS_WOUNDS | inflict serious wounds (feat) |
SPELLABILITY_BOLT_ABILITY_DRAIN_CHARISMA | drain charisma bolt |
SPELLABILITY_BOLT_ABILITY_DRAIN_CONSTITUTION | drain constitution bolt |
SPELLABILITY_BOLT_ABILITY_DRAIN_DEXTERITY | drain dexterity bolt |
SPELLABILITY_BOLT_ABILITY_DRAIN_INTELLIGENCE | drain intelligence bolt |
SPELLABILITY_BOLT_ABILITY_DRAIN_STRENGTH | drain strength bolt |
SPELLABILITY_BOLT_ABILITY_DRAIN_WISDOM | drain wisdom bolt |
SPELLABILITY_BOLT_ACID | acid bolt |
SPELLABILITY_BOLT_CHARM | charm bolt |
SPELLABILITY_BOLT_COLD | cold bolt |
SPELLABILITY_BOLT_CONFUSE | confusion bolt |
SPELLABILITY_BOLT_DAZE | daze bolt |
SPELLABILITY_BOLT_DEATH | death bolt |
SPELLABILITY_BOLT_DISEASE | disease bolt |
SPELLABILITY_BOLT_DOMINATE | domination bolt |
SPELLABILITY_BOLT_FIRE | fire bolt |
SPELLABILITY_BOLT_KNOCKDOWN | knockdown bolt |
SPELLABILITY_BOLT_LEVEL_DRAIN | drain level bolt |
SPELLABILITY_BOLT_LIGHTNING | lightning bolt |
SPELLABILITY_BOLT_PARALYZE | paralysis bolt |
SPELLABILITY_BOLT_POISON | poison bolt |
SPELLABILITY_BOLT_SHARDS | shards bolt |
SPELLABILITY_BOLT_SLOW | slow bolt |
SPELLABILITY_BOLT_STUN | stun bolt |
SPELLABILITY_BOLT_WEB | web bolt |
SPELLABILITY_BREATH_PETRIFY | petrification breath |
SPELLABILITY_CHARMMONSTER | psionic charm monster |
SPELLABILITY_COMMAND_THE_HORDE | (dropped ability) |
SPELLABILITY_CONE_ACID | acid cone |
SPELLABILITY_CONE_COLD | frost cone |
SPELLABILITY_CONE_DISEASE | disease cone |
SPELLABILITY_CONE_FIRE | fire cone |
SPELLABILITY_CONE_LIGHTNING | lightning cone |
SPELLABILITY_CONE_POISON | poison cone |
SPELLABILITY_CONE_SONIC | sonic cone |
SPELLABILITY_DC_DIVINE_WRATH | divine wrath |
SPELLABILITY_DETECT_EVIL | (dropped ability) |
SPELLABILITY_DIVINE_PROTECTION | protection domain power |
SPELLABILITY_DIVINE_STRENGTH | strength domain power |
SPELLABILITY_DIVINE_TRICKERY | trickery domain power |
SPELLABILITY_DRAGON_BREATH_ACID | acid dragon breath |
SPELLABILITY_DRAGON_BREATH_COLD | cold dragon breath |
SPELLABILITY_DRAGON_BREATH_FEAR | fear dragon breath |
SPELLABILITY_DRAGON_BREATH_FIRE | fire dragon breath |
SPELLABILITY_DRAGON_BREATH_GAS | gas dragon breath |
SPELLABILITY_DRAGON_BREATH_LIGHTNING | lightning dragon breath |
SPELLABILITY_DRAGON_BREATH_NEGATIVE | negative energy dragon breath |
SPELLABILITY_DRAGON_BREATH_PARALYZE | paralysis dragon breath |
SPELLABILITY_DRAGON_BREATH_SLEEP | sleep dragon breath |
SPELLABILITY_DRAGON_BREATH_SLOW | slow dragon breath |
SPELLABILITY_DRAGON_BREATH_WEAKEN | weaken dragon breath |
SPELLABILITY_DRAGON_FEAR | aura of dragon fear |
SPELLABILITY_DRAGON_WING_BUFFET | (semi-dropped ability) |
SPELLABILITY_DW_DEFENSIVE_STANCE | defensive stance |
SPELLABILITY_ELEMENTAL_SHAPE | elemental shape |
SPELLABILITY_EMPTY_BODY | empty body |
SPELLABILITY_EPIC_CURSE_SONG | curse song |
SPELLABILITY_EPIC_IMPROVED_WHIRLWIND | improved whirlwind attack |
SPELLABILITY_EPIC_MIGHTY_RAGE | mighty rage |
SPELLABILITY_EPIC_SHAPE_DRAGONKIN | greater wildshape I |
SPELLABILITY_EPIC_SHAPE_DRAGON | blinding speed (bug) |
SPELLABILITY_FEROCITY_1 | ferocity |
SPELLABILITY_FEROCITY_2 | improved ferocity |
SPELLABILITY_FEROCITY_3 | greater ferocity |
SPELLABILITY_GAZE_CHARM | charm gaze |
SPELLABILITY_GAZE_CONFUSION | confusion gaze |
SPELLABILITY_GAZE_DAZE | daze gaze |
SPELLABILITY_GAZE_DEATH | death gaze |
SPELLABILITY_GAZE_DESTROY_CHAOS | destroy chaos gaze |
SPELLABILITY_GAZE_DESTROY_EVIL | destroy evil gaze |
SPELLABILITY_GAZE_DESTROY_GOOD | destroy good gaze |
SPELLABILITY_GAZE_DESTROY_LAW | destroy law gaze |
SPELLABILITY_GAZE_DOMINATE | domination gaze |
SPELLABILITY_GAZE_DOOM | doom gaze |
SPELLABILITY_GAZE_FEAR | fear gaze |
SPELLABILITY_GAZE_PARALYSIS | paralysis gaze |
SPELLABILITY_GAZE_PETRIFY | petrification gaze (monster version) |
SPELLABILITY_GAZE_STUNNED | stun gaze |
SPELLABILITY_GOLEM_BREATH_GAS | iron golem poison gas |
SPELLABILITY_HELL_HOUND_FIREBREATH | hell hound fire breath |
SPELLABILITY_HOWL_CONFUSE | confusion howl |
SPELLABILITY_HOWL_DAZE | daze howl |
SPELLABILITY_HOWL_DEATH | death howl |
SPELLABILITY_HOWL_DOOM | doom howl |
SPELLABILITY_HOWL_FEAR | fear howl |
SPELLABILITY_HOWL_PARALYSIS | paralysis howl |
SPELLABILITY_HOWL_SONIC | sonic howl |
SPELLABILITY_HOWL_STUN | stunning howl |
SPELLABILITY_INTENSITY_1 | intensity |
SPELLABILITY_INTENSITY_2 | improved intensity |
SPELLABILITY_INTENSITY_3 | greater intensity |
SPELLABILITY_KRENSHAR_SCARE | fear gaze, krenshar |
SPELLABILITY_LAY_ON_HANDS | lay on hands |
SPELLABILITY_LESSER_BODY_ADJUSTMENT | lesser body adjustment |
SPELLABILITY_MANTICORE_SPIKES | manticore spikes (monster version) |
SPELLABILITY_MEPHIT_SALT_BREATH | salt mephit breath |
SPELLABILITY_MEPHIT_STEAM_BREATH | steam mephit breath |
SPELLABILITY_MINDBLAST | psionic mind blast |
SPELLABILITY_MUMMY_BOLSTER_UNDEAD | bolster undead |
SPELLABILITY_NEGATIVE_PLANE_AVATAR | death domain power |
SPELLABILITY_PM_ANIMATE_DEAD | animate dead (feat) |
SPELLABILITY_PM_DEATHLESS_MASTER_TOUCH | deathless master touch |
SPELLABILITY_PM_SUMMON_GREATER_UNDEAD | summon greater undead |
SPELLABILITY_PM_SUMMON_UNDEAD | summon undead |
SPELLABILITY_PM_UNDEAD_GRAFT_1 | undead graft (twice per day) |
SPELLABILITY_PM_UNDEAD_GRAFT_2 | undead graft (thrice per day) |
SPELLABILITY_PULSE_ABILITY_DRAIN_CHARISMA | drain charisma pulse |
SPELLABILITY_PULSE_ABILITY_DRAIN_CONSTITUTION | drain constitution pulse |
SPELLABILITY_PULSE_ABILITY_DRAIN_DEXTERITY | drain dexterity pulse |
SPELLABILITY_PULSE_ABILITY_DRAIN_INTELLIGENCE | drain intelligence pulse |
SPELLABILITY_PULSE_ABILITY_DRAIN_STRENGTH | drain strength pulse |
SPELLABILITY_PULSE_ABILITY_DRAIN_WISDOM | drain wisdom pulse |
SPELLABILITY_PULSE_COLD | cold pulse |
SPELLABILITY_PULSE_DEATH | death pulse |
SPELLABILITY_PULSE_DISEASE | disease pulse |
SPELLABILITY_PULSE_DROWN | drown |
SPELLABILITY_PULSE_FIRE | fire pulse |
SPELLABILITY_PULSE_HOLY | holy pulse |
SPELLABILITY_PULSE_LEVEL_DRAIN | drain level pulse |
SPELLABILITY_PULSE_LIGHTNING | lightning pulse |
SPELLABILITY_PULSE_NEGATIVE | negative pulse |
SPELLABILITY_PULSE_POISON | poison pulse |
SPELLABILITY_PULSE_SPORES | vrock spores |
SPELLABILITY_PULSE_WHIRLWIND | whirlwind |
SPELLABILITY_QUIVERING_PALM | (became hardcoded) |
SPELLABILITY_RAGE_3 | monster rage |
SPELLABILITY_RAGE_4 | improved rage |
SPELLABILITY_RAGE_5 | greater rage |
SPELLABILITY_REMOVE_DISEASE | remove disease (feat) |
SPELLABILITY_ROGUES_CUNNING | rogue's cunning |
SPELLABILITY_SEAHAG_EVILEYE | evil eye |
SPELLABILITY_SMITE_EVIL | (became hardcoded) |
SPELLABILITY_SMOKE_CLAW | belker smoke claws (dropped ability) |
SPELLABILITY_SUMMON_ANIMAL_COMPANION | animal companion (feat) |
SPELLABILITY_SUMMON_CELESTIAL | summon celestial |
SPELLABILITY_SUMMON_FAMILIAR | summon familiar |
SPELLABILITY_SUMMON_MEPHIT | summon mephit |
SPELLABILITY_SUMMON_SLAAD | summon slaad |
SPELLABILITY_SUMMON_TANARRI | summon tanarri |
SPELLABILITY_TOUCH_PETRIFY | petrification touch |
SPELLABILITY_TROGLODYTE_STENCH | troglodyte stench |
SPELLABILITY_TRUMPET_BLAST | archon trumpet blast (dropped ability) |
SPELLABILITY_TURN_UNDEAD | turn undead |
SPELLABILITY_TYRANT_FOG_MIST | tyrant fog zombie mist |
SPELLABILITY_WHIRLWIND | whirlwind attack |
SPELLABILITY_WHOLENESS_OF_BODY | wholeness of body |
SPELLABILITY_WILD_SHAPE | wild shape |
Other abilities[]
There are some valid entries in spells.2da
for which no symbolic constant is defined.
Some of these likely were simply overlooked when the constants were defined, while others are spells whose development was halted (but whose scripts — possibly bugged — are still available).
They are all listed here for completeness.
Index | Description |
---|---|
413 | unique power (self only) |
480 | sleep (feat) |
481 | cat's grace (feat) |
482 | eagle's splendor (feat) |
483 | invisibility (feat) (Harper scout) |
553 | fireball from a ballista (2d6 damage, reflex DC 20) |
562 | aura of glory (cursed) |
563 | haste-slow |
564 | create shadowfiend |
565 | tide of battle |
566 | evil blight |
567 | cure critical wounds (others) |
568 | restoration (others) |
615 | flame twin |
616 | lyrics of the lich |
617 | iceberry |
618 | flameberry |
619 | transmogrifying wand |
643 | an abandoned implementation of planar turning (now just calls the turn undead script) |
658 | greater wildshape I: red |
659 | greater wildshape I: blue |
660 | greater wildshape I: black |
661 | greater wildshape I: white |
662 | greater wildshape I: green |
663 | cold wyrmling breath |
664 | acid wyrmling breath |
665 | fire wyrmling breath |
666 | gas wyrmling breath |
667 | lightning wyrmling breath |
668 | teleport projectile |
669 | chaos shield |
670 | greater wildshape III: basilisk |
671 | greater wildshape: beholder (dropped shape) |
672 | greater wildshape II: harpy |
673 | greater wildshape III: drider |
674 | greater wildshape III: manticore |
675 | greater wildshape II |
676 | greater wildshape III |
677 | greater wildshape IV |
678 | greater wildshape II: gargoyle |
679 | greater wildshape IV: medusa |
680 | greater wildshape II: minotaur |
681 | humanoid shape |
682 | humanoid shape: drow warrior |
683 | humanoid shape: lizardfolk whipmaster |
684 | humanoid shape: kobold commando |
685 | undead shape |
686 | captivating song |
687 | petrification gaze |
688 | darkness (shifter) |
689 | blessed bolt |
690 | dragon breath |
691 | greater wildshape IV: mindflayer |
692 | manticore spikes |
693 | Illithid mind blast |
694 | greater wildshape IV: dire tiger |
695 | epic warding |
696 | flaming weapon properties (the on-hit for flame weapon) |
697 | activate item (long range) |
700 | unique power (on hit) |
701 | summon baatezu |
702 | planar rift |
703 | immolate (the on-hit for darkfire) |
704 | undead shape: risen lord |
705 | undead shape: vampire |
706 | undead shape: spectre |
707 | dragon shape: red |
708 | dragon shape: blue |
709 | dragon shape: green |
710 | frost ray |
711 | inflict wounds ray |
712 | flame ray |
713 | psionic mind blast 10m radius |
715 | golem slam |
716 | extract brain |
717 | sequencer (1 spell) |
718 | sequencer (2 spells) |
719 | sequencer (3 spells) |
720 | clear sequencer |
721 | flaming hide |
722 | mimic eat gem (fake spell used in HotU) |
723 | throw gem (fake spell used in HotU) |
724 | etherealness (monster ability) |
725 | dragon shape |
726 | mimic eat enemy (fake spell used in HotU) |
727 | beholder antimagic cone |
729 | mimic steal armor (fake spell used in HotU) |
731 | bebilith web |
732 | outsider shape |
733 | outsider shape: azer chieftain |
734 | outsider shape: rakshasa |
735 | outsider shape: death slaad lord |
736 | beholder special attacks (creature ability) |
737 | construct shape |
738 | construct shape: stone golem |
739 | construct shape:demonflesh golem |
740 | construct shape: iron golem |
741 | psionic inertial barrier |
742 | craft weapon component |
743 | craft armor component |
744 | fire bomb |
745 | acid bomb |
746 | thrown catapult visual effect, male |
747 | thrown catapult visual effect, female |
748 | thrown broken catapult visual effect |
749 | thrown brazier visual effect |
750 | thrown fence visual effect |
751 | thrown boulder visual effect |
752 | thrown tree visual effect |
753 | visual effect for the Knower of Places (HotU campaign) |
754 | visual effect for the Knower of Places (HotU campaign) |
755 | visual effect for the Knower of Places (HotU campaign) |
756 | ruin armor |
757 | shadowblend |
758 | paralyzing touch (demilich) |
759 | harm self (undead monster ability) |
760 | paralyzing touch (dracolich) |
761 | aura of hellfire |
762 | hell inferno |
763 | psionic mass concussion |
764 | glyph of warding secondary spell (cast when an enemy triggers the glyph) |
765 | visual effect for the Knower of Places (HotU campaign) |
766 | visual effect for the Knower of Places (HotU campaign) |
767 | talk to |
768 | intelligent weapon |
769 | shadow attack |
770 | chaos spittle |
771 | prismatic dragon breath |
772 | same effects as fireball, but cast with a spiraling projectile |
773 | hurl rocks, alternate version |
774 | deflecting force |
775 | hurl rocks |
776 | beholder special attacks (death ray) |
777 | beholder special attacks (telekinesis ray) |
778 | beholder special attacks (petrification ray) |
779 | beholder special attacks (charm ray) |
780 | beholder special attacks (slow ray) |
781 | bridge reveal visual effect used in the HotU campaign (chapter 2). |
782 | prisoner drop visual effect used in the HotU campaign (chapter 3). |
783 | beholder special attacks (wounding ray) |
784 | beholder special attacks (fear ray) |
785 | beholder special attacks (unused) |
786 | beholder special attacks (unused) |
787 | beholder special attacks (unused) |
788 | on-hit paralysis (gelatinous cube poison) (DC 10 + caster level; lasts d3+3 rounds) |
789 | illithid mind blast |
790 | the on-hit for deafening clang |
791 | on-hit knockdown (item property) |
792 | on-hit freeze |
793 | demonic grappling hand (as from the HotU campaign) |
794 | ballista bolt (2d6 piercing damage to one target) |
795 | activate item (touch range) |
796 | lightning dragon breath (shifter) |
797 | fire dragon breath (shifter) |
798 | gas dragon breath (shifter) |
799 | vampire invisibility (shifter) |
800 | domination gaze (shifter) |
801 | fire stream |
802 | shadow attack (shifter) |
806 | rallying cry |
807 | heroic shield |
808 | fear (feat) |
809 | oath of wrath |
810 | final stand |
811 | inspire courage |
819 | "nightmare smoke" (was intended to conceal a nightmare, but the script x3_s1_nmsmoke was not included in the last patch)
|
820 | DM tool 1 |
821 | DM tool 2 |
822 | DM tool 3 |
823 | DM tool 4 |
824 | DM tool 5 |
825 | DM tool 6 |
826 | DM tool 7 |
827 | DM tool 8 |
828 | DM tool 9 |
829 | DM tool 10 |
830 | player tool 1 |
831 | player tool 2 |
832 | player tool 3 |
833 | player tool 4 |
834 | player tool 5 |
835 | player tool 6 |
836 | player tool 7 |
837 | player tool 8 |
838 | player tool 9 |
839 | player tool 10 |
See also[]
- Commands:
- ActionCastFakeSpellAtLocation()
- ActionCastFakeSpellAtObject()
- ActionCastSpellAtLocation()
- ActionCastSpellAtObject()
- DecrementRemainingSpellUses()
- EffectSpellImmunity()
- EventSpellCastAt()
- GetEffectSpellId()
- GetHasSpell()
- GetHasSpellEffect()
- GetIdFromTalent()
- GetLastSpell()
- GetNearestCreature()
- GetNearestCreatureToLocation()
- GetSpellId()
- TalentSpell()