• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Help with multi/leaderboard

Status
Not open for further replies.
Level 3
Joined
Mar 25, 2006
Messages
43
can you please help me with a leader/multiboard. i want it to show it to the (triggering player) and show in bars how much hp he has. i seen it in games before but expressing guns/bullets and hp/mp and i would like to know how to do it. Ex. it would show like 10 bars across when ur hp goes down it goes from a red bar to a grey bar or somthing along tho lines. or the bar just dispears in general. so when u have 0 hp u will have 0 bars. i would need one for mp as well. thx if you could help me with that i will be so happy :D
 
I'm not too god in doing this but, if you'll check only one specific unit (not variable or functions), you can do:

Events-
(unit) takes damage
Conditions-
Actions-
Set (LifeBar) = <Empty String>
For each (Integer A) from 1 to ((Integer(Percentage Life of (Unit)) / 10)) do (actions):
Set (LifeBar) = (LifeBar + l)
Set text in (Multiboard) of Colum X, Row Y to (LifeBar)

for sure it can be simpler (or more simple, I don't know) , but I don't care for this. Until I don't use.
 
Status
Not open for further replies.
Top