This powerful trigger is used to override a mobile's prompt. It has far reaching possibilities such as the ability to create sequential means of retrieving input from a user. For this reason it best use is in conjunction with the custom_command_act trigger.
@actor - Contains a pointer to the mobile that is viewing the contents of the room.
@prompt - Contains the current prompt template for the given @actor. This is provided in case you just want to modify it (perhaps block out seom set of stats temporarily).
To override the prompt the script need only return new text to be used in place of the usual prompt template.
Example:
if( %getEntityVar( @actor, "inputStatus" ) == "itemName" ) { return "Please input a name for your pet: " } endif |