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
Andymedae
Beginner


Joined: 19 Jul 2004
Posts: 12
Location: Atlanta Georgia

PostPosted: Sat Jul 24, 2004 11:13 am   

trigger mystery
 
I am having a problem with a trigger that seems to defy logic.

Here is the code:

#COND {({You stuff your|That's not going to work.|You need a free hand})} {
#show "trigger on " %1
#if (%1 = "You need a free hand") {
sheath
get rope
bundle
} {
stand
sheath
#state "bundTmp" 3
}
}

==================
Here is the relevant porion of the output buffer:

kneel
skin
bundle
>
You kneel down upon the ground.
>
You skin a blood wolf fairly well, getting a decent quality wolf pelt only slightly tainted with gore and fluids from the carcass.
>
You stuff your pelt into the bundle.
>
trigger on You stuff your
sheath
get rope
bundle
You sheathe the carving knife in your leather sheath.
========================

Clearly the trigger did fire and captured "You stuff your" into %1.

Just as clearly (to me at least) the #if condition should fail and the alternative code block (stand;sheath ...) executed.

Yet it is behaving as the condition were true. Am I missing something.

Any insights would be appreciated.

Pat
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Jul 24, 2004 3:05 pm   
 
Minor change should fix it.
#if ("%1" = "You need a free hand")
_________________
The only good questions are the ones we have never answered before.
Search the Forums
Reply with quote
Andymedae
Beginner


Joined: 19 Jul 2004
Posts: 12
Location: Atlanta Georgia

PostPosted: Sat Jul 24, 2004 5:02 pm   
 
That fixed it. Much appreciated.
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