darksun84
Sir Spamalot
Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35
|
RE: Custom triggers
Code:
08-10-2006, Furio
- Modified: TRIGGER command. It now supports calling a trigger with arguments, the syntax is:
TRIGGER $trigger_name[,$trigger_arg_type,...] where $trigger_arg_type can be:
- TAT_AS_ARGN (1): uses arguments as ARGN. Example: TRIGGER @MyTest,<def.TAT_AS_ARGN>,1,2,3
will call @MyTest with ARGN1=1 ARGN2=2 ARGN3=3.
- TAT_AS_ARGS (2): uses arguments as ARGS. Example: TRIGGER @MyTest,<def.TAT_AS_ARGS>,hi you 2,yo !
will call @MyTest with ARGS=hi you 2,yo !.
- TAT_AS_ARGO (3): uses arguments as ARGN. Example: TRIGGER @MyTest,<def.TAT_AS_ARGO>,01
will call @MyTest with ARGO.UID=01 (only if object with such uid exist).
- Updated: sphere_defs.scp (with new definitions for the TRIGGER command).
and more recently
Code:
Added FullTrigger function working like 'call' to call triggers with full support with old args and locals making possible to override default triggers with your parameters.
FullTrigger must be write only to avoid some problems so I added the return value in local.return, which can be readed after the trigger call.
Usage: FullTrigger @DClick
|
|
08-21-2014 05:18 AM |
|
|