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


Joined: 04 May 2005
Posts: 4

PostPosted: Sun Jul 03, 2005 6:14 pm   

Help with status bar.
 
Let's say I have a trigger for each spell, so when I lose the effect from the spell, it adds the name from the spell to a var which I call "spellefects"... Let's say in the list I've got:

Variable: spellefects Bless|Vorpal Plating

and in my status bar I've got:

#Status {Missing Spells: @spellefects}

So it does show in the format
"Missing Spells: Bless|Vorpal Plating"
But... I would like to put it in a syntax like

Missing Spells: (Bless), (Vorpal Plating)
or
Missing Spells: Bless, Vorpal Plating

But I'm a zero in zmud scripting so... Anybody could help me?

Thanx in advance :)
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun Jul 03, 2005 6:40 pm   
 
First Example (harder and untested), #STATUS {Missing Spells: ~(%replace(@spellefects,"|","), (")~)}

Second Example, #STATUS {Missing Spells: %expandlist(@spellefects,", ")}
_________________
Zmud Support Library
Zmud Knowledge Base
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