Unlock Door Spells
When the party encounters a door locked by a spell, the engine must determine if the party has a spell memorized which will open the door.
The Wall Editor provides a place to specify a Spell Name for each wall slot. The designer can put one of two things here:
- The name of a spell. If anyone in the party has this spell memorized, then the door will open if the player chooses “Use Spell”.
- The name of a 'Hook'. This is the name of a script attached to one or more Special Abilities. When a 'Spelled Door' is encounterd, the engine will examine all the spells which the party has memorized. The engine will serach each spell for a Special Ability with a script by the given name. It will run such scripts, one-at-a-time, and if any one returns a value starting with 'Y' then the search will cease and the door will open if the player chooses “Use Spell”.
Search for Script
All of the party's memorized spells.
Return Value
If the script returns a result starting with 'Y', then the door will open if the player selects “Use Spell”.
Parameters
Parameter [5] = the location of the party and the direction it is facing. The format is:
level/x/y/dir
Context
$SpellContext()