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
Edwub
Wanderer


Joined: 21 Nov 2002
Posts: 85
Location: USA

PostPosted: Mon Jan 06, 2003 8:36 am   

how to make multiline var
 
Hi again!

Want to make a small set so i can rescue some friends during fighting!

Wondering if its possible to type something such as:
rescuelist john,jane,tom

and have them set in a var of @rescuelist

then typing
'res' will work like:
rescue john
rescue jane
rescue tom

This way i'd be able to have groups and add everyone to the rescuelist, and have zmud go through the list.



Edwub the Mage
Reply with quote
Kjata
GURU


Joined: 10 Oct 2000
Posts: 4379
Location: USA

PostPosted: Mon Jan 06, 2003 12:08 pm   
 
#ALIAS rescuelist {#VAR rescuelist {%replace("%1", ",", "|")}}
#ALIAS res {#FORALL @rescuelist {rescue %i}}

Kjata
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