FED2 ADVANCED WORKBENCH
SCRIPT REFERENCE

CHECKMAP

Checks whether the player is in a specific location, or anywhere on the specified map, and calls a different event depending on the outcome of the check.

Parameters:
Map Name - the name of the map - defaults to "home", otherwise you will need to use the full pathway ie newstar/bodville.
Location Number - the location number; if you do not want to check for a specific location, just that the player is somewhere on the map, leave this parameter blank.
Pass - the event number to call if the player is on the map or in the location.
Fail - the event number to call if the player is not on the map or in the location.

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

Examples:
checkmap script: map newstar/bodville: pass objects.keycard.7: fail objects.keycard.6
checkmap script: map home: location 851: pass objects.sargeur.8: fail objects.sargeur.6

More scripts