|
mj_cole Wanderer
Joined: 19 Apr 2001 Posts: 59 Location: USA
|
Posted: Thu Jul 31, 2003 11:08 pm
Alias creating trigger (with %1 in it) |
I have an alias that needs to set a trigger, easy.
Problem is that I want the trigger to do something on %1:
Code: |
#TRIGGER {^(*)*~(in*~)$} {#gag;#if (%pos( @tmp2, %1)) {#additem tmp "%1"}}
|
Of course my alias sends it's %1 value to make the trigger, so the trigger never fires correctly, there should be an easy way to fix this, but I haven't figured it out.
Regards
Marts |
|
|
|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: Thu Jul 31, 2003 11:19 pm |
Perhaps it would help if you gave some sample mud output and also explained what tmp2 and tmp contain/should contain.
Larkin |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Fri Aug 01, 2003 3:24 am |
From the help page Predefined Variables, and referenced in a few other places...%%1. The additional % causes expansion to be delayed. This may be done repeatedly for example: %%%%1, would have one % stripped each time tthe reference was used in creating a setting, until down to a single % at which it would then be replaced when referenced within that setting.
|
|
|
|
mj_cole Wanderer
Joined: 19 Apr 2001 Posts: 59 Location: USA
|
Posted: Fri Aug 01, 2003 3:32 pm |
Thats the trick, thanks
Marts |
|
|
|
|
|