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


Joined: 25 Jun 2009
Posts: 2

PostPosted: Thu Jun 25, 2009 7:42 pm   

Simple trigger help
 
Hello. I'm new to zmud and don't really know how to set up complicated triggers.

I would like to create a trigger that would let me cast resurrection on players who are dying. The problem is that i don't know how to get my trigger to read the name of the player in trouble and and reproduce it.


For example,
I receive:
Your deathdar tells you someone is in danger: Playername

I want my trigger to input:
cast 'resurrection' Playername



Thank you for your time
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Thu Jun 25, 2009 10:01 pm   
 
#TRIGGER {Your deathdar tells you someone is in danger: (%w)} {cast 'resurrection' %1}

If names can have non-alphabetic characters, check out the Pattern Matching helpfile for more wildcards you can use.
_________________
EDIT: I didn't like my old signature
Reply with quote
Novistador
Newbie


Joined: 25 Jun 2009
Posts: 2

PostPosted: Sat Jun 27, 2009 3:34 am   
 
Wow, Thanks a lot!!!
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