Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: 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?
Reply with quote
Malaphus
Novice


Joined: 11 Aug 2003
Posts: 34
Location: USA

PostPosted: 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
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: 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-?
Reply with quote
user0101
Apprentice


Joined: 01 Aug 2003
Posts: 100
Location: USA

PostPosted: Wed Aug 20, 2003 4:41 am   
 
Just don't spam flee, do it once and let the trigger handle the rest.
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: Wed Aug 20, 2003 5:29 am   
 
Sorry, I wasn't being clear.. the trigger is spamming flee so fast.. not me...
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: 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.
Reply with quote
PHLN
Adept


Joined: 30 Dec 2001
Posts: 220
Location: Canada

PostPosted: 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...
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
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

© 2009 Zugg Software. Hosted by Wolfpaw.net