Gil Amarth
Journeyman
Posts: 189
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: May 2012
Reputation: 0
|
@Statgain?
I have searching about a @Statgain trigger, but it seem it isn´t in sphere.
I have scripted a custom @Skillgain, but then I don´t have any statgain from it. There is a trigger: @StatChange, which is very useful, but if I try triggering manually like:
TRIGGER @STATCHANGE
Then I haven´t any of his arguments, like ARGN1 (the stat which changes), and ARGN2 (the value which will take).
There is any form of passing arguments to a trigger? I have considering to make a function to replicate @STATCHANGE, and putting into @SkillGain, but if there is any better way, much better.
Thanks in advance.
|
|
06-07-2012 07:33 PM |
|
|
jeem
Apprentice
Posts: 33
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2012
Reputation: 3
|
RE: @Statgain?
In any case, it is possible to add args to a custom trigger.
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).
|
|
06-08-2012 02:51 PM |
|
|