FED2 ADVANCED WORKBENCH
SCRIPT REFERENCE

CHECKINVENTORY

Checks the player's inventory to see if the specified object is in it, and calls a different event depending on the outcome of the check.

Parameters:
Map Name - the map name of the object you want to check for. Defaults to "home", otherwise you will need to use the full pathway ie newstar/bodville.
ID/Name - the ID or the name of the object.
Found - the event to call if the object is present.
Not Found - the event to call if the object is not present.

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

Example:
checkinventory script: map home: id-name bassoon: found objects.bassoon.2: not-found objects.basoon.3

More scripts