- Introduction
- Getting Started
- Create Character
- Add Character
- Load Saved Game
- Exit From Game
- Playing the Game
- Movement
- 3-D View Menu
- Combat Menu
- Adventuring Guide
- Shops
- Taverns
- Temples
- Training Halls
ComputeSpellDamage
Just prior to applying the changes to the 'Affected Character Attributes' (as specified in the
spelleditor's 'Spell Properties' dialog', we search for a hook named 'ComputeSpellDamage'. We search three places for this hook (in this order):
- The Spell itself
- The Monster-Type of the combatant being affected. (if it is a monster)
- The Combatant being affected.
Each script that returns a valid numeric value for the adjustment will override any previous value.
Parameters
Parameter [5] = contains the damage as computed by the engine.
Parameter [6] = contains the name of the attribute being adjusted.
Example:”$CHAR_HITPOINTS”
Context
Target Character - $TargetContext()
Spell - $SpellContext()