|
Davos Adept
Joined: 30 Jan 2003 Posts: 228 Location: USA
|
Posted: Thu Jan 30, 2003 4:41 pm
Matching a trigger - Kinda |
Heres the example:
You have just slain an adult wildcat.
(then 3 to 5 seconds later)
You have just regained balance in your limbs.
I want zmud to enter the commands:
Get wildcat;put wildcat into backpack
but only after i regain control of limbs because if it does it sooner the MUD regects the command. But the time it takes varies by a few seconds each time so I want to trigger off of the 2nd line but i want it to know automaticly what I killed to pick it up, any suggestions?
The Seaworthy |
|
|
|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Thu Jan 30, 2003 4:47 pm |
#tr (You have just slain an adult (*).} {#var slain_animal {%1}}
#tr {You have just regained balance in your limbs.} {take @slain_animal;put @slain_animal into pack}
You could also use a multi-state trigger just as easily
If you get the second message at other times, you may want to build in something to prevent it from trying to take the dead animal when you didn't kill anything. For this situation, it would be best as a multi-state trigger. But here is a possible method you can use without multi-states
#tr (You have just slain an adult (*).} {#var slain_animal {%1}}
#tr {You have just regained balance in your limbs.} {#if (@slain_animal not = "") {take @slain_animal;put @slain_animal into pack;#var slain_animal ""}}
Talahaski
Processor PIII 1000
Memory 265MB
Video NVIDIA 64MB
Windows XP
Zmud Version 6.50
Zmapper Version 1.14 |
|
|
|
|
|