|
sillykdogg Beginner
Joined: 20 Dec 2002 Posts: 14 Location: USA
|
Posted: Fri Dec 20, 2002 10:56 pm
Cant figure it out :P |
I am trying to make a trigger, but so far everything ive tried has not worked, maybe someone can assist me again.
Here is the information needed in the trigger:
1.I need it to monitor my health while sleeping,(the Mud is set on a tick, so the prompt refreshes itself, the prompt reads:<Lifeforce (100) when fully healed.
2.when my character is fully healed i need it to wake, and travel to a certain location. The Directions are:wake;d;e;e;e;e;e;n;u;s;w;u;e;n
3.When it gets to this location i want it to continuously fight until it flees. (The setup on the mud is that the fighters reappear immediately after being destroyed)(when the character flees the screen states:"You flee head over heels from combat!")
4.after my character flees i want it to go back to the starting point, and wait till my lifeforce reads (100) again then repeat the process above.(starting point directions are:s;w;d;e;n;d;s;w;d;s;e;e;e;e;e;u;sleep.
Any help would be greatly appreciated, Thank you sooo much! |
|
|
|
sillykdogg Beginner
Joined: 20 Dec 2002 Posts: 14 Location: USA
|
Posted: Fri Dec 20, 2002 10:58 pm |
also the commmand to fight in the mud is kill fighter
|
|
|
|
IceChild Magician
Joined: 11 Oct 2000 Posts: 419 Location: Post Falls, ID, USA
|
Posted: Fri Dec 20, 2002 11:09 pm |
Assuming you can simply type "prompt" to disable your prompt, you could do something like the following:
#TRIGGER {^~<Lifeforce ~(100~)} {prompt;wake;d;#5 e;n;u;s;w;u;e;n;kill fighter}
#TRIGGER {^The fighter is DEAD!!!} {kill fighter}
#TRIGGER {^You flee head over heels from combat~!$} {s;w;d;e;n;d;s;w;d;s;#5 e;u;sleep;prompt}
It's a very basic way of doing it, but it should work. You'll need to replace the "The fighter is DEAD!!!" part with whatever it says on your mud.
Icechild
Coder of Arthanox |
|
|
|
IceChild Magician
Joined: 11 Oct 2000 Posts: 419 Location: Post Falls, ID, USA
|
Posted: Fri Dec 20, 2002 11:19 pm |
Or another way (without turning off your prompt) would be:
#TRIGGER {^~<Lifeforce ~(100~)} {#T- monitorhealth;wake;d;#5 e;n;u;s;w;u;e;n;kill fighter} monitorhealth
#TRIGGER {^The fighter is DEAD!!!} {kill fighter}
#TRIGGER {^You flee head over heels from combat~!$} {s;w;d;e;n;d;s;w;d;s;#5 e;u;sleep;#T+ monitorhealth}
Icechild
Coder of Arthanox |
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Fri Dec 20, 2002 11:42 pm |
Why did you start a new topic for the same question? Continuity usually helps.
Anyway, just wanted to add that the first trigger probably needs the nocr and prompt options.
#TRIGGER {^~<Lifeforce ~(100~)} {prompt;wake;d;#5 e;n;u;s;w;u;e;n;kill fighter} {} {nocr|prompt}
for Icechild's first post or
#TRIGGER {^~<Lifeforce ~(100~)} {#T- monitorhealth;wake;d;#5 e;n;u;s;w;u;e;n;kill fighter} monitorhealth {nocr|prompt}
for the second one.
LightBulb
Senior Member |
|
|
|
sillykdogg Beginner
Joined: 20 Dec 2002 Posts: 14 Location: USA
|
Posted: Fri Dec 20, 2002 11:42 pm |
It WORKS!
Thanks so much! |
|
|
|
|
|