• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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