Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
PhelinxSnoopy
Newbie


Joined: 28 Mar 2013
Posts: 7

PostPosted: Tue May 07, 2013 4:17 pm   

rescue trigger and variables
 
Ok so i am trying to create a trigger that will rescue people getting hit.

#trigger {hits @rescue very hard.} {rescue @rescue} works great when only one person is in @rescue

so when a player follows me i do a #additem rescue %1 which then makes @rescue look like Player1|Player2

But when when get hit it try to rescue @rescue but it liike like rescue Player1|Player2 I want to rescue either player1 if he is getting hit or player2 not one big string of names player1|player2|player3

I just want it to check if they should be rescue and recue the one player getting hit?
Reply with quote
Daern
Sorcerer


Joined: 15 Apr 2011
Posts: 809

PostPosted: Tue May 07, 2013 4:36 pm   
 
Code:
#trigger {hits ({@rescue}) very hard.} {rescue %1}

Reply with quote
PhelinxSnoopy
Newbie


Joined: 28 Mar 2013
Posts: 7

PostPosted: Tue May 07, 2013 5:05 pm   
 
I will give that a try
Reply with quote
PhelinxSnoopy
Newbie


Joined: 28 Mar 2013
Posts: 7

PostPosted: Wed May 15, 2013 3:18 pm   
 
this worked great thanks
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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