• Tutorials

  • Home
  • CanMemorizeSpells

    We call hook scripts named 'CanMemorizeSpells' in the following order:

    1. Scripts associated with the global special ability named 'Global_Memorize'.
    2. Scripts associated with the Class of the character
    3. Scripts associated with the particular character.

    Each script can return a string as its result. We start with a result of “YY” and each script can override the result by specifying a 'Y' or 'N' in either or both of the characters.

    For example:
    We start with “YY”. The first script returns “” so the result is unchanged. The second script returns “N” so the first character of the result is changed to “N” and the value becomes “NY”. The third script returns “xN” so the result becomes “NN”. A fourth script returns “Yabce” so the result becomes “YN”. And, of course, a 'Y' means 'Yes' and 'N' means 'No'. So this particular result means that we should display “MEMORIZE” but the character should not actually memorize the spells when resting.

    This is a 'Special Abilities Hook' which is called under two different circumstances:

    1. We are displaying the 'MAGIC' menu for a character and we want to know if we should display the “MEMORIZE” option. We examine the first character of the hook result,
    2. The party is resting and we want to determine if a character should be memorizing any selected spells. We examine the second character of the hook result.

    Parameters

    None

    Context

    Character
    Class