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


Joined: 27 Apr 2007
Posts: 16

PostPosted: Tue Jan 12, 2010 8:44 pm   

Need some Variable Using Help
 
I know its probably really simple but cant figure it out:)

Pattern:
turns to focus * attack on (%w)!

Command:
#if (@friends) {#var rescuetarget {friends};rescue @rescuetarget}

I have filled my Variable @friends with names to be recognized by the %w. I am trying to figure out how to pull 1 name from it.
If I put the command as rescue @friends it gives me the whole list in the excution of the trigger. And the command I have listed
above is not working correctly either.

FYI: This is being done on Zmud 4.62 so if you can help dont get too complicated:)

Moved (MattLofton): question posts about ZMud belong in the ZMud General Discussion forum
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Jan 12, 2010 10:02 pm   
 
#trigger {turns to focus * attack on ({@friends})!} {rescue %1}
_________________
EDIT: I didn't like my old signature
Reply with quote
Lokke11
Beginner


Joined: 27 Apr 2007
Posts: 16

PostPosted: Wed Jan 13, 2010 12:08 am   
 
Bingo!

Thanks.

How about an easy way to add names to that variable? or remove?
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