FED2 ADVANCED WORKBENCH
SCRIPT REFERENCE

CHECKPLAYER

Checks the value of one or more of the player's four stats and calls a different event depending on the outcome of the check.

Parameters:
Stamina - The value the player's stamina needs to be to pass the check
Strength - The value the player's strength needs to be to pass the check
Dexterity - The value the player's dexterity needs to be to pass the check
Intelligence - The value the player's intelligence needs to be to pass the check
Pass - The event to call if the player's stats are higher or equal to all of the specified values
Fail - The event to call if one or more of the player's stats are lower than the specified values

If you do not want an event to be called for one of the possibilities, leave the parameter blank.

Examples:
checkplayer script: intelligence 35: pass gadget.use.2: fail gadget.use.3
checkplayer script: stamina 30: strength 35: pass cliff.climb.2: fail cliff.climb.3

More scripts