This trigger will fire for a container when someone attempts to "put" something "into" it. The script should return 0 to prevent the item from being put into the container, or 1 to allow the item to be put into the container. If a 0 is returned then it is the script's responsibility to output something to the actor indicating why the item could not be put into the container. If 1 is returned then the standard put messages will be output.
@n - The mobile that is "putting" the object. @actor
@o - The object that the mobile is "putting". @item
@container - The container into which the item is being placed.
@x - The type of "put into" being performed. @criteria
The values for @criteria are listed below. As this trigger matures new types may be added:
put
The item is being placed via the 'put' command.
Example:
if( !%itemIsTypeMoney( @item ) ) { echoto char @actor You notice a big sign saying MONEY ONLY! return 0 } endif
return 1 |