• Register so you can experience the greatest RPG server ever! Use the keyword "Herocraft" when registering!Register! Enjoy the server @ play.hc.to !
  • Guest, Make sure to use our LAUNCHER! Read more here!

Easy mana bar tutorial

DailyDoseOfVitMe

Guide
Wiki Team
Herald
Tier 4
Joined
Nov 8, 2013
Likes
41
#1
So if you're a new player and you want to know how to add a mana bar on your screen I made this easy tutorial vid on how to do it.
You'll also need this (I adjusted it so it changes colors as you get lower on mana):
IFMATCHES(%CHATCLEAN%,"^Mana: (.+?) - (.+?)%",&mana,2);
SET(@#mana,%&mana%);
SETLABEL(ManaLabel, "Mana: %@#mana%%");
SETPROPERTY(ManaBar,colour,#FF00FFC0);
IF(@#mana<51);
SETPROPERTY(ManaBar,colour,#FFFFFF00);
ENDIF;
IF(@#mana<26);
SETPROPERTY(ManaBar,colour,#FFFF0000);
ENDIF;
FILTER;
ENDIF;
IFMATCHES(%CHATCLEAN%,"^MANA (.+?)%",&mana,1);
SET(@#mana,%&mana%);
SETLABEL(ManaLabel, "Mana: %@#mana%%");
SETPROPERTY(ManaBar,colour,#FF00FFC0);
IF(@#mana<51);
SETPROPERTY(ManaBar,colour,#FFFFFF00);
ENDIF;
IF(@#mana<26);
SETPROPERTY(ManaBar,colour,#FFFF0000);
ENDIF;
FILTER;
ENDIF;
SETLABEL(ManaLabel, "Mana: %@#mana%%");
SETPROPERTY(ManaBar,colour,#FF00FFC0);
IF(@#mana<51);
SETPROPERTY(ManaBar,colour,#FFFFFF00);
ENDIF;
IF(@#mana<26);
SETPROPERTY(ManaBar,colour,#FFFF0000);
ENDIF;
If anything does not work or you have further questions feel free to leave a reply.
 
Top