TAMEScript Module Blocks
TAMEScript Module Blocks

TAMEScript Module Blocks

Quick Reference

Command Name Parameters Description
Init None Called at module context initialization on each element.
Start None Called after all elements initialize.
OnAction ACTION Called when an action needs to be processed on a specific element. Action type decides the element entry point.
OnActionWith ACTION, OBJECT Called when a [di]transitive action needs to be processed with a specific object.
OnActionWithAncestor ACTION, OBJECT Called when a [di]transitive action needs to be processed with a matched ancestor object (if OnActionWith is unhandled).
OnActionWithOther ACTION Called when a [di]transitive action needs to be processed with a valid object, but the object is not handled by OnActionWith or OnActionWithAncestor.
OnModalAction ACTION, STRING Called when a modal action needs to be processed with a specific mode.
OnElementBrowse OBJECT-CONTAINER Called when Browse() is called while this object is owned by a specific element (or parent element). Most specific chosen first.
OnWorldBrowse None Called when Browse() is called while this object is owned by a world.
OnRoomBrowse None Called when Browse() is called while this object is owned by a room.
OnPlayerBrowse None Called when Browse() is called while this object is owned by a player.
OnContainerBrowse None Called when Browse() is called while this object is owned by a container.
OnUnhandledAction ACTION [optional] Called when an action is not handled by the elements that should have handled it.
OnUnknownCommand None Called if an action is not interpreted.
OnAmbiguousCommand ACTION [optional] Called if an interpreted action can have more than one possible object target based on the input.
OnIncompleteCommand ACTION [optional] Called if an interpreted action is missing a element that is expected, but not parsed.
OnMalformedCommand ACTION [optional] Called if an interpreted action has a part that isn't found, or if a strict command has more parsed than needed.
AfterSuccessfulCommand None Called after a processed action due to a correctly-parsed input.
AfterFailedCommand None Called after a processed action due to an incorrectly-parsed input.
AfterEveryCommand None Called after every processed action and after when AfterSuccessfulCommand or AfterFailedCommand is called.
×

Modal Header