MinMaxFormat



Some 'Special Ability Hooks' utilize this format to specify a value to be used for things like character movement during combat. This format allows several scripts to interact with one another easily. One script might specify a minimum value and another might specify a particular value that should be forced to lie withing the previously specified minimum and maximum values.



Before the first script is called, the minimum and maximum are set according as described in the documentation for the hook. Then the scripts are called, one at a time, and the results of each script are used to change the minimum and maximum values. After all the scripts have been called, the minimum and maximum values are used as decribed in the documentation for the hook.



Each script returns a string with zero or more specifications, all concatenated. Each specification takes one of three possible formats:



  1. The character '=' followed by an integer: for example “=24”. This integer is first subjected to the current minimum and maximum values and then the minimum is raised to this value and the maximum is lowered to this value.

  2. The character '>' followed by an integer: for example “>3”. This causes the minimum value to be set to the integer value but not greater than the current maximum.

  3. The character '<' followed by an integer: for example “<45”. This causes the maximum value top be set to the integer value but not less than the current minimum.



Examples:

“>2<45” Set minimum to 2 and maximum to 45.

“=24”

“>0=0” Force minimum to zero and set maximum to 0.