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


Joined: 15 Dec 2001
Posts: 19
Location: USA

PostPosted: Wed Jan 02, 2002 2:10 pm   

Assist trigger help...
 
I want to create a trigger to auto assist someone. Right now I created a trigger with the pattern, Gandalf IMPALES and then for the command I put assist Bilbo. but everytime Gandalkf impales the mob I assist. How do I assist just once when i'm fighting?
Reply with quote
Tolkienfan
Wanderer


Joined: 07 Apr 2001
Posts: 51
Location: Denmark

PostPosted: Wed Jan 02, 2002 2:22 pm   
 
I would prolly put the Assist trigger in a calss called assist and then in that class create triggers:
#TR (Gandalf IMPALES) {assist bilbo;#t- assist}
And then a trigger for when the mob dies(you will prolly wanna change the state for this one depending on ur mud output when a mob snuffs it:
#TR (%w is dead RIP.) {#t+ assist}
Reply with quote
andrul
Beginner


Joined: 09 May 2001
Posts: 25
Location: USA

PostPosted: Wed Jan 02, 2002 2:30 pm   
 
Are you wanting to assist only when Gandalf impales Bilbo? If so then you need to include the word Bilbo in your string. What's the exact format of the string sent to your terminal from the mud? If you only want to assist once period and not again, put the trigger in its own folder and append #T- name to turn itself off.
'#TRIGGER {gandalf impales bilbo} {assist bilbo;#T- assist} {assist}' will create the trigger and put it in the class 'assist'. You can then create an alias or toggle button to turn the class on or off as you desire. Hope that helps

Andrul

Paranoia is a survival trait
Reply with quote
LazyPitbull
Beginner


Joined: 15 Dec 2001
Posts: 19
Location: USA

PostPosted: Wed Jan 02, 2002 2:34 pm   
 
Here is what it looks like. Gandalf IMPALES a Lost Fighter!! andurl, can you give me step by step instructions what to do exactly? Still new to triggers
Reply with quote
LazyPitbull
Beginner


Joined: 15 Dec 2001
Posts: 19
Location: USA

PostPosted: Wed Jan 02, 2002 3:58 pm   
 
I tried it and it only seems to work once and then it won't work :( can someone show me the exact lines and steps please?
Reply with quote
Tolkienfan
Wanderer


Joined: 07 Apr 2001
Posts: 51
Location: Denmark

PostPosted: Wed Jan 02, 2002 4:21 pm   
 
Ok i can trySmile
Now i dont know how it looks when whoever u are fighting dies in this mud but in the one o play it says : Mobname is dead. RIP! So where it says that just put whatever it says in ur mud..And replace the name of the mob with a (*) (this will make it work on all mobs...)

#class Assist
#tr {Gandalf IMPALES} {#t- assist;assist bilbo} {assist}
#tr {(*) is dead. RIP!} {#- assist}

Tolkienfan
Reply with quote
LazyPitbull
Beginner


Joined: 15 Dec 2001
Posts: 19
Location: USA

PostPosted: Wed Jan 02, 2002 5:12 pm   
 
It only works once and then stops. Here is the exact text my client and mud are.
Bilbo IMPALES the Black Rook!!
The Black Rook is dead! R.I.P.

I then typed in your lines which were

#class Assist
#tr {Bilbo IMPALES} {#t- assist;assist bilbo} {assist}
#tr {(*) is dead. RIP!} {#t+ assist}

But it works only once and then stops..what is wrong with these lines?
Reply with quote
Crymson4
Novice


Joined: 20 Nov 2001
Posts: 35
Location: USA

PostPosted: Wed Jan 02, 2002 5:18 pm   
 
Your pattern isn't matching up.

You said the text from your MUD upon mob death is The <mob> is dead. R.I.P.

But your t+ trigger is using a different pattern, so the trigger isn't firing ever (which is why it's only working once.)

Change your t+ trigger to the following:

#tr {(*) is dead! R.I.P.} {#t+ assist}

Keep in mind that since you are matching up the entire line, you need to double check spaces. Is there one space or two after the "!"? Once the text is matched 100%, your trigger should work fine :)

-=Crymson

Someone once said "Don't try to be a great man, just be a man; and let history draw it's own conclusions.".
Reply with quote
LazyPitbull
Beginner


Joined: 15 Dec 2001
Posts: 19
Location: USA

PostPosted: Wed Jan 02, 2002 5:36 pm   
 
that was a typo on my part. it still doesn't work. this is getting fustrating..
Reply with quote
LazyPitbull
Beginner


Joined: 15 Dec 2001
Posts: 19
Location: USA

PostPosted: Wed Jan 02, 2002 6:15 pm   
 
It is disabling but not enabling for some reason..
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Wed Jan 02, 2002 6:16 pm   
 
Your current trigger (if you typed what you said) is in the Assist|assist class. I'd suggest deleting the Assist class, including all its settings, and starting over. Here's the script (note that it doesn't use the #CLASS command):

#tr {Bilbo IMPALES} {assist bilbo;#t- assist} {assist}
#tr {is dead. RIP!} {#t+ assist}


LightBulb
Reply with quote
LazyPitbull
Beginner


Joined: 15 Dec 2001
Posts: 19
Location: USA

PostPosted: Wed Jan 02, 2002 7:11 pm   
 
thanks Lightbulb!
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