Warcraft III resources & community, 2003–2006 · archived

Variables

3 posts
#1

Variables

So, I'm making a map, and I want to create a leaderboard that desplays the health of a building. I am completely stumped. I think I need to create a variable with the value of the buildings health, but I'm not sure, and I don't know how to do that (I looked).

Thanks in advance.
#2
Well, since variables dont auto-update it would be pointless to use them in this case

Every 1 second or so, just set the correct value on the leaderboard to (Convert Real to String) (Life of (yourunit))
#3
Thanks a lot! This is my first map ever, btw. So I'm still learning a lot. :D