|
Andymedae Beginner
Joined: 19 Jul 2004 Posts: 12 Location: Atlanta Georgia
|
Posted: 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 |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: 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 |
|
|
|
Andymedae Beginner
Joined: 19 Jul 2004 Posts: 12 Location: Atlanta Georgia
|
Posted: Sat Jul 24, 2004 5:02 pm |
That fixed it. Much appreciated.
|
|
|
|
|
|