SphereCommunity
Custom triggers - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Custom triggers (/Thread-Custom-triggers)



Custom triggers - kn4tseb - 08-21-2014 05:11 AM

Hey people, i have a question, i remember sometime when looking some files or wiki and i found information about making SKF / Custom triggers, but i cannot find that info anymore.. ive checked my files and wiki and just can't get it.. does anyone know where or how?

Thank you.!


RE: Custom triggers - darksun84 - 08-21-2014 05:18 AM

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



RE: Custom triggers - kn4tseb - 08-21-2014 05:22 AM

thanks, gonna try it Big Grin