Help

BEHAVIOR-STOPIF

For immortals Also: B-STOPIF

Generic Room, Mobile, and Object Behavior.

This behavior will not foward the specified event if the character in question meets any of the specific criteria.

 Arguments: <trigger> [.]
Next Lines: [<response message>]

This behavior can basically be viewed as a conditional forwarder.

The following will 'Stop: dir s If: clan equals grunts' -- people in clan grunts may not go south.

rb room stopif (dir s js "actor.clan == 'grunts'") .
<actor>Clan Grunts may not pass!

This will stop anyone who is not a mage under level 10 from going north:

rb room stopif (dir n js "!actor.hasClass( 'ma' ) || actor.maxLevel() >= 10") .
<actor>Only newbie mages may pass north...

Last edited by Engada in May 2006.