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


Joined: 18 Oct 2002
Posts: 24
Location: Canada

PostPosted: Wed Nov 06, 2002 10:40 pm   

Help with another trigger.
 
I'd like a trigger to heal another person instead of myself--ie: tank auto heal.
Here's the line:

< 366hp 0m 97mv TN: THUNDERBUNS TC: 727 EN: a lumbering treant EC: nasty wounds >

The tank being Thunderbuns. I changed his name to protect the innocent! :o)

Please include a line that will temp disconnect the trigger so it doesn't spam the screen--3 to 4 seconds should do.

Thanks!
Atuk the incapable of programming!

PS- how can I have Zmud make a sound if someone "tells" me something? Sound trigger?
Reply with quote
Sirius
Newbie


Joined: 09 Oct 2002
Posts: 9
Location: USA

PostPosted: Wed Nov 06, 2002 11:56 pm   
 
The sound trigger:
#TR {tells you} {#beep}
Reply with quote
MadBomber
Beginner


Joined: 17 Oct 2002
Posts: 26
Location: USA

PostPosted: Thu Nov 07, 2002 12:37 am   
 
Hmm, I'm not use to that type of prompt. Where is the tanks health? I assume that yours is the 366hp at the beggining, but what signifies tha tank?

MadBomber

--------------------
Currently Using zMUD 6.37aBeta
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Thu Nov 07, 2002 1:51 am   
 
#VAR cast 1 1
#TR {~< (%d)hp (%d)m (%d)mv TN: (%w) TC: (%d) EN: (*) EC: (*) >} {#IF ((%5 < 500) AND (@cast = 1) AND (%2 > 50)) {#VAR cast 0;heal %4} {} {nocr|prompt}
#TR {You completed your healing spell} {#VAR cast 1}

@cast is a variable used to indicate when it's okay to cast another spell. I picked some numbers out of a hat since you didn't provide any, change them to what you use as the time to heal the tank and the amount of mana needed. Also change the phrase on the second trigger to whatever's needed.

I put parentheses around everything so it's easier to add more commands later.

LightBulb
Senior Member
Reply with quote
atuk
Beginner


Joined: 18 Oct 2002
Posts: 24
Location: Canada

PostPosted: Thu Nov 07, 2002 9:49 pm   
 
For the sound and heal triggers above, what do I put into the pattern box?

-Atuk.
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Thu Nov 07, 2002 10:03 pm   
 
What Sirius and LightBulb provided is meant to be entered in the command line. Just copy and paste it and then hit enter.

If you want to create the triggers using the Settings Editor, you do it by following this syntax:
#TR {pattern} {commands} {className} {options}

pattern goes in the Pattern box. commands goes in the Value box of the trigger. className is the class folder in which the trigger will be created. If blank, it means that it goes in the root class folder. options specify the value of the various options in the Advanced tab of the trigger. In the case of one of the triggers, nocr means to uncheck the Trigger on Newline option and prompt meand to check the Trigger on Promp option. If no options are specified, they are left with their default values.

Kjata
Reply with quote
atuk
Beginner


Joined: 18 Oct 2002
Posts: 24
Location: Canada

PostPosted: Fri Nov 08, 2002 12:02 am   
 
If I'm using the trigger editor, how do I enter the below trigger?

#TEMP {(%w) tells you} {tell %1 hi there}

Pattern:
tells you hello
Value:
#TEMP tell %1 hi there

I tried the above, but the trigger editor kept crying syntax error with an arrow after Temp.

-Atuk
Reply with quote
LightBulb
MASTER


Joined: 28 Nov 2000
Posts: 4817
Location: USA

PostPosted: Fri Nov 08, 2002 12:16 am   
 
The easy way is to FIRST enter it at the command line, THEN go to the trigger editor, find the trigger, and see what got put in which box.
#TEMP {(%w) tells you} {tell %1 hi there}

Pattern:
(%w) tells you
Value:
tell %1 hi there
Other options:
Temporary

Very few people make temporary (one-time) triggers with the editor. They are mostly done from other triggers or from aliases, which means doing them command-line style.

LightBulb
Senior Member
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Fri Nov 08, 2002 1:03 am   
 
quote:

If I'm using the trigger editor, how do I enter the below trigger?

#TEMP {(%w) tells you} {tell %1 hi there}

Pattern:
tells you hello
Value:
#TEMP tell %1 hi there

I tried the above, but the trigger editor kept crying syntax error with an arrow after Temp.

-Atuk



You have two options for this in the Editor:

1)insert that entire command into an existing/newly-created trigger

2)use the Options tab in the Editor window

If you create triggers via #2, all of the different syntaxes and options are handled graphically, by a checkbox, a dropdown list, etc.

li'l shmoe of Dragon's Gate MUD
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