GetAdjMaxMovement
This script is called when we need to determine how far a character can move in combat. For example, the Special Ability "Sleeping" might have a script called GetAdjMaxMovement which returns the number "0".
These scripts return a result in Min/Max Format.
Initially we set the minimum to -1 and the maximum to 2147483647. Then the scripts are called. If a script modifies one of these values then the resulting maximum is used as the character's movement ability. Otherwise, the character's usual value for movement is used (parameter[5]).
Parameters
Parameter [5] = movement as determined by the unscripted code; for PCs this includes such things as 'encumbrance'.
Context
Character - the character that is to move.