Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
mj_cole
Wanderer


Joined: 19 Apr 2001
Posts: 59
Location: USA

PostPosted: 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
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: 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
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: 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.
Reply with quote
mj_cole
Wanderer


Joined: 19 Apr 2001
Posts: 59
Location: USA

PostPosted: Fri Aug 01, 2003 3:32 pm   
 
Thats the trick, thanks

Marts
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net