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
DustyShouri
Novice


Joined: 29 Oct 2004
Posts: 34

PostPosted: Mon Nov 08, 2004 2:47 pm   

temporary triggers
 
Do temporary triggers support wildcards? If so, I can't get mines to work. Any ideas?

Code:
#TRIGGER {A beam of prismatic light suddenly shoots into the room.} {
panic
#echo %ansi( blink)**eep eep, a prism!**
x
#TEMP {You see exits leading (%w)} {%1}
}


Whenever I do that, it will return something like this:
Quote:
A beam of prismatic light suddenly shoots into the room.
panic
**eep eep, a prism!**
x
3975h, 3300m ex-
You run around madly, flapping your arms in a blind panic.
3975h, 3300m ex-
You see exits leading north, northeast, east, southeast, south, southwest, west,and northwest.
3975h, 3300m ex-3975
Clarification is in order.



X returns the possible exits, but for some reason, the wildcard in the temporary trigger returns my current health. Any idea how to get this to work?
Reply with quote
Theragil
Apprentice


Joined: 13 Feb 2004
Posts: 157
Location: USA

PostPosted: Mon Nov 08, 2004 5:26 pm   
 
Try making that %1 instead %%1 so it won't be interpreted during trigger creation, but only at trigger execution.
Reply with quote
misterbalrog
Apprentice


Joined: 26 Oct 2004
Posts: 108

PostPosted: Mon Nov 08, 2004 6:51 pm   
 
Though logically, %1 should never in any instance of that trigger being run be having the hp in value. Seems to me as a weird bug.

I hope zugg has read this post =)
Reply with quote
Theragil
Apprentice


Joined: 13 Feb 2004
Posts: 157
Location: USA

PostPosted: Mon Nov 08, 2004 7:09 pm   
 
I was wondering about that too. Since there's no patterns in the original trigger {A beam of prismatic light suddenly shoots into the room.} zMUD probably is just passing into %1 some random thing, maybe whatever was in %1 the last time something assigned something to it (like some other unrelated trigger, in this case probably the one on his prompt that drives his auto-sipper). But I'm not motivated enough to actually duplicate it experimentally.
Reply with quote
DustyShouri
Novice


Joined: 29 Oct 2004
Posts: 34

PostPosted: Tue Nov 09, 2004 12:36 am   
 
Theragil wrote:
Try making that %1 instead %%1 so it won't be interpreted during trigger creation, but only at trigger execution.


That worked! Thanks much.
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