|
Skrull Newbie
Joined: 08 Jan 2022 Posts: 4
|
Posted: 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 |
|
|
|
chaossdragon Apprentice
Joined: 09 Apr 2008 Posts: 168
|
Posted: 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** |
|
|
|
|
|