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


Joined: 25 Mar 2018
Posts: 1

PostPosted: Sun Mar 25, 2018 11:42 am   

Status bar showing up affects
 
I'm trying to figure out how to make a script that would show a number of affects on status bar with either green or red depending whether a said affect is on or off. To clarify :
-I have "sanctuary" on status bar.
- "You are surrounded by a white aura." would toggle the affect on, making my status bar "sanctuary" green
- "The white aura around you fades away" would toggle the afgect off, making status bar "sanctuary" red

Then I'd have other similarly working affects on status bar aswell like, "shueld", "aura", etc.

I basically know what I am suppossed to do, but I just can't manage to put this down into line of code. Any help would be greatly appreciated.
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4690
Location: Pensacola, FL, USA

PostPosted: Mon Mar 26, 2018 7:09 am   
 
This feature would be best used with buttons.
I do something similar myself.

#CALL %btncolor(ButtonID,,backgroundcolor)

In the status bar you would be better off using MXP to color the text in a variable, and then display thatvariable.

#VAR sactuary {<color red>sanctuary</color>}
_________________
Discord: Shalimarwildcat
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