• Tutorials

  • Home
  • FixCharacter

    This script is called when the party is Encamped and the 'FIX' menu option is selected or when 'FIX is selected in a Temple Event. The engine selects a 'FIX' spells at random and a target for the spell at random. It then calls this script to see if that particular party member should be the object of the spell. If the script returns an empty string or a string containing the single digit '0' (zero) then the spell is not cast and a different, random, spell/target combination is attempted.

    You might use this hook to prevent casting 'Slow Poison' spells on a PC that is not poisoned.

    The default action if no script exists is to cast the spell if the target's hit-point value is less than the target's maximum hit-point value..

    Parameters

    Parameter [5] = "Temple" or "Encamp" depending on the situation.

    Context

    Character - the target of the spell
    Spell - the 'FIX' spell being cast