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
Feramors
Newbie


Joined: 19 Sep 2002
Posts: 8
Location: St. Louis

PostPosted: Wed Aug 06, 2003 5:31 pm   

Help with Trigger which shows gains.
 
In the MUD that I play, called Greystone, this message is shown once you attain enough EXP to raise in leve:

You raise a level!! Your gain is: 17/15634 hp, 20/13958 m, 10/24145 mv 7/15 prac.

What I'd like to do is have a messaeg displayed to my group of what my gains were when I leveled up. I have absolutely NO idea how to do anything with Zmud using Variables and the such. Any help would be appreciated. Thanks.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Wed Aug 06, 2003 5:36 pm   
 
#TRIGGER {^You raise a level!! You gain is:} {gtell %trigger}

A simple way is to match the line that has the gain information and then you 'gtell' it.
Reply with quote
Feramors
Newbie


Joined: 19 Sep 2002
Posts: 8
Location: St. Louis

PostPosted: Wed Aug 06, 2003 6:06 pm   
 
Oh, ok! How on earth do I do that? Sorry, I am a COMPLETE novice when it comes to this stuff. I browsed through the Zmud help files a bit, but couldn't find anything helpful. Any idea where some good examples are? Thanks again.
Reply with quote
Troubadour
GURU


Joined: 14 Oct 2000
Posts: 556
Location: USA

PostPosted: Wed Aug 06, 2003 6:13 pm   
 
TonDiening gave you the actual trigger you need in the first line of his post. Just paste it to the command line and you're set. (%trigger is a predefined variable which returns the line which set off the trigger.)
Reply with quote
Feramors
Newbie


Joined: 19 Sep 2002
Posts: 8
Location: St. Louis

PostPosted: Wed Aug 06, 2003 6:41 pm   
 
Heh, oh, ok. Thanks again. It's greatly appreciated.
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