|
DustyShouri Novice
Joined: 29 Oct 2004 Posts: 34
|
Posted: 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? |
|
|
|
Theragil Apprentice
Joined: 13 Feb 2004 Posts: 157 Location: USA
|
Posted: 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.
|
|
|
|
misterbalrog Apprentice
Joined: 26 Oct 2004 Posts: 108
|
Posted: 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 =) |
|
|
|
Theragil Apprentice
Joined: 13 Feb 2004 Posts: 157 Location: USA
|
Posted: 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.
|
|
|
|
DustyShouri Novice
Joined: 29 Oct 2004 Posts: 34
|
Posted: 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. |
|
|
|
|
|
|
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
|
|