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
dazed-n-confused
Novice


Joined: 14 Jan 2004
Posts: 31

PostPosted: Fri Feb 06, 2004 4:57 am   

getting different results from the same pattern
 
I have 3 pipes(pipe1,pipe2,pipe3), each with a different herb(herb1,herb2,herb3).
When the pipe is empty I want them to automatically refill.
This is what Im trying to do.
#tr {smoke pipe1} {#cw green}; #co {You take a puff of the pipe, but find it is empty of leaf.} {fill pipe with herb1}
If i want pipe2 to contain herb2, which gets the same empty message the trigger seems to only want to fill pipe1 with herb1 when I try to smoke an empty pipe2.[:(!] Somebody tell me there is a way around this.
Reply with quote
fireangel37
Beginner


Joined: 09 Jan 2004
Posts: 17

PostPosted: Fri Feb 06, 2004 6:08 am   
 
A simple solution might be to use an alias. The following alias should work for your needs:

#alias smk {smoke %1;#temp "pipeout" {You take a puff of the pipe, but find it is empty of leaf.} {fill pipe with %2}

Thus, you would type "smk pipe1 herb1" and it'd work. You could also do smk1, smk2, and smk3 where you'd only have to type smk1 (etc) and replace the %1 and %2 with the names of the pipes and herbs. You could also set it to look up the name of an herb from the name of a pipe, but it's too late at night for me to give that example ;)
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Feb 06, 2004 7:53 pm   
 
#COlor is both an action command when used with a single parameter (the color attribute string) and a trigger-creation command when used with two parameters (the pattern and the color attribute string). Since you used the second type, with two parameters, you created a new trigger instead of just coloring the line.

I think something like this is what you're looking for:
#TR {smoke pipe(%d)} {#CO green;#VA pipenum %1}
#TR {You take a puff of the pipe, but find it is empty of leaf.} {fill pipe@pipenum with herb@pipenum}
Reply with quote
dazed-n-confused
Novice


Joined: 14 Jan 2004
Posts: 31

PostPosted: Fri Feb 06, 2004 11:37 pm   
 
I didnt realize #co was for color.[:I] I was trying to get a second trigger to fire when "smoke pipe1234" shows and the next couple of lines show "You take a puff of the pipe, but find it is empty of leaf.". I already have pipe1234 defined as herb1pipe. I just want to "fill herb1pipe with herb1". I dont really even care so much about the colors, I just wasnt sure if you could leave the first trigger value blank. So if "smoke pipe5678" shows an empty message it should "fill herb2pipe with herb2" and so on.
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