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
sillykdogg
Beginner


Joined: 20 Dec 2002
Posts: 14
Location: USA

PostPosted: Fri Dec 20, 2002 8:11 pm   

Health Monitoring Trigger
 
I need some help with this trigger ive been working on, i have it set up to where a tick will go every 60 secs, and when the screen reads <Lifeforce (100)its supposed to activate an alias but it doesnt seem to go when this is read. Could someone please help me out a bit?
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Dec 20, 2002 8:46 pm   
 
You left out a lot of details that are needed to provide a meaningful answer. My best guess is that <Lifeforce (100) is part of your prompt, and you didn't change the options from Trigger on Newline to Trigger on Prompt. My second guess is that you didn't precede the special characters in your trigger pattern with ~. The special characters I'm talking about are <, (, and ).

It's entirely possible that there's something else wrong with either the trigger or the alias, but without knowing what they are there's no way to tell. I haven't the slightest idea how any of this relates to the tick or why you would think it does.

LightBulb
Senior Member
Reply with quote
sillykdogg
Beginner


Joined: 20 Dec 2002
Posts: 14
Location: USA

PostPosted: Fri Dec 20, 2002 9:09 pm   
 
I did forget to precede the special characters with ~, thank you, im sorta new at this, and the tick is because there is not an in-game tick, so when the tick goes off the prompt is renewed.(If that makes any sense).
By the way how do i keep a trigger like this one from looping?
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Dec 20, 2002 9:14 pm   
 
How is it looping? A trigger will only cause a loop if it produces output that matches the pattern of the trigger again. If this is the case, then uncheck the Trigger on Trigger option for that trigger.

Kjata
Reply with quote
sillykdogg
Beginner


Joined: 20 Dec 2002
Posts: 14
Location: USA

PostPosted: Fri Dec 20, 2002 9:16 pm   
 
Alright thank you both very much!
Reply with quote
sillykdogg
Beginner


Joined: 20 Dec 2002
Posts: 14
Location: USA

PostPosted: Fri Dec 20, 2002 9:26 pm   
 
Im so sorry, but it still keeps looping. Maybe this will help find an answer.
I have the trigger ~<Lifeforce ~(100~)
when it is triggered it runs an alias named fight(the commands in fight are: wake,d,e,e,e,e,e,n,u,s,w,u,e,kill fighter).
Even though i did uncheck the trigger on trigger box it still loops.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Dec 20, 2002 9:34 pm   
 
I kind of understand what you are trying to do, which you should have explained from the start. What you need to do in this case is first give the trigger an ID or put it in its own class. You then use the #T- command to disable the trigger (works with both: a class name or an ID) when it fires. Just put the commands along with the other commands of the trigger. Then you need to figure out when to use #T+ to enable this trigger again. I'm guessing that it will probably be enabled by another trigger that fires either when you kill the mob or when you flee.

Kjata
Reply with quote
sillykdogg
Beginner


Joined: 20 Dec 2002
Posts: 14
Location: USA

PostPosted: Fri Dec 20, 2002 9:38 pm   
 
Thank you
Reply with quote
sillykdogg
Beginner


Joined: 20 Dec 2002
Posts: 14
Location: USA

PostPosted: Fri Dec 20, 2002 10:00 pm   
 
Hey I found this other trigger on the forums, which seems might work. I modified it to what i need, but it still doesnt seem to work can someone please tell me whats wrong with it?

#CLASS fight {disable}
#ALARM *5 {train}
#TR {combat!} {#T- kill fighter;s;w;d;e;n;d;s;w;w;w;w;w;u;sleep}
#CLASS 0
#ALIAS {dofight} {sleep;#TEMP {~<Lifeforce ~(100~)} {wake;d;e;e;e;e;e;n;u;s;w;u;e;kill fighter;#T+ kill fighter}}

Thank you!
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Fri Dec 20, 2002 10:21 pm   
 
The name of the class or ID you use has to be only one word. (This might not necessarily be true but it avoids lots of problems).

Kjata
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