|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Tue Aug 19, 2003 11:55 pm
Is this trigger possible? |
For this mud of mine, I seem to be failing my flees alot... And I was wondering.. is there a way to make a trigger that auto-type in flee when I failed my flee? This is the output when I failed a flee...
You panic, and attempt to flee.
PANIC! You couldn't escape!
And for a successful flee.. I won't get that PANIC! You couldn't escape! On the second line, instead I would get a room title or something else... I want it so that it will type the right amount of flees when I failed, but not over do it.. making me flee and flee again to another room.
Not being good with programming triggers, could someone help me out? |
|
|
|
Malaphus Novice
Joined: 11 Aug 2003 Posts: 34 Location: USA
|
Posted: Wed Aug 20, 2003 12:22 am |
You would do this:
#TRIGGER { ^PANIC! You couldn't escape! } { flee }
That will automatically send "flee" to the mud whenever it detects the PANIC! line...
EDIT: BTW, the carrot symbol (^) in front of PANIC! causes the trigger to only fire when PANIC! begins on a new line. This prevents people from exploiting your trigger.
Malaphus
Questionable Sanity
qs.smwa.net 4000 |
|
|
|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Wed Aug 20, 2003 1:38 am |
Thanks, that work... sorta..
The problem is that I would spam flee from the trigger so fast.. that when I do manage to get out of the room.. the commands -flee- are still being inputed.. resulting me to flee again.. sometime back to the aggresive NPC that I was trying to flee from.
Is there a way that I will type -flee- when I have..
You panic, and attempt to flee.
PANIC! You couldn't escape!
But when I have just...
You panic, and attempt to flee.
Texts here(might have period, might not)
I will type -stop-? |
|
|
|
user0101 Apprentice
Joined: 01 Aug 2003 Posts: 100 Location: USA
|
Posted: Wed Aug 20, 2003 4:41 am |
Just don't spam flee, do it once and let the trigger handle the rest.
|
|
|
|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Wed Aug 20, 2003 5:29 am |
Sorry, I wasn't being clear.. the trigger is spamming flee so fast.. not me...
|
|
|
|
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Wed Aug 20, 2003 1:43 pm |
Malaphus' trigger will send exactly ONE command for each time you attempt to flee and don't succeed. That's exactly what you keep saying you want. What's the problem?
I can think of two possible problems
1. You used the "You panic" line for your pattern, instead of the "PANIC!" line which Malaphus used
2. You have a wimpy which is issuing additional flee commands
The fix should be obvious in either case. |
|
|
|
PHLN Adept
Joined: 30 Dec 2001 Posts: 220 Location: Canada
|
Posted: Wed Aug 20, 2003 7:33 pm |
Yea.. you are right... the max wimpy was messing up the flee trigger... Thanks for all your help...
|
|
|
|
|
|