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


Joined: 08 Jan 2022
Posts: 4

PostPosted: Wed Feb 28, 2024 1:10 am   

Status Bar Help
 
Well you guys helped me with my kill count tracker so was hoping to try for another one that I'm struggling to figure out.

So as the subject says Status Bar help.. So on the mud I play my character is in the Dragon guild and I have access to different breath attacks which I can check with the command breaths and the output looks like this

Heat ##################################################
Fire ##################################################
Acid ##################################################
Ice ##################################################
Shards ##################################################
Gas ##################################################
Sound ##################################################
Lightning ##################################################
Weakness --------------------------------------------------
Force ##################################################
e | | | | | | | | | f

I was trying to figure out and I don't want them all but a way to easily see if I'm able to use Fire / Lightning / Sound / Force in the status bar and I'm not so worried about showing % or if I'm full, but like change the color of the text.

So for example using lightning and weakness above - Lightning show Green - Weakness show black (not usable)

I would like to be able to change the text color based on message inputs from the game, but one thing at a time :)

Thanks in advance.
Skrull
Reply with quote
chaossdragon
Apprentice


Joined: 09 Apr 2008
Posts: 167

PostPosted: Thu Feb 29, 2024 12:38 am   
 
I would use a string list of the breaths you wish to compare to .. <$desiredBreaths = "Fire|Lightning|Sound|Force>"

then a Regex for .. ^>\s(\w)\s[#]\{,50}
#IF (%ismember(%1,$desiredBreaths)) {#CW <Color_of_Choice>}


**just to get started as a potential sample**
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