Before asking you my question I want to explain to you my map so you can understand how it works. At the start of the game you spawn to select your hero. There are six heroes you may choose, each hero may only be chosen once.
That's an example trigger to show you what I mean. When you choose a hero the hero's ownership is changed from passive to you. That specific hero is then moved to a location and the game begins. Please note that the heroes are already in existence when the game begins, they aren't spawned by trigger.
Now, on to the question. I need a leader/multiboard that can show every players health whether it be by text or some other means. I need the health to update often. Basically so the healer doesn't let people die in the game But the problem I am having is displaying their health points and updating them. NOW! The question!
How do you set a integer variable to a units health points?
Thanks for your assistance :]
*edit=typo
Trigger:
- Red S
- Events
- Unit - A unit enters Warrior <gen>
- Conditions
- (Owner of (Triggering unit)) Equal to Player 1 (Red)
- Actions
- Unit - Change ownership of Cyrex 0006 <gen> to Player 1 (Red) and Change color
- Unit - Remove (Triggering unit) from the game
- Unit - Remove Circle of Power 0036 <gen> from the game
- Trigger - Turn on Red1 <gen>
- Unit - Move Cyrex 0006 <gen> instantly to (Center of Spawn Hero <gen>), facing 90.00 degrees
- Events
That's an example trigger to show you what I mean. When you choose a hero the hero's ownership is changed from passive to you. That specific hero is then moved to a location and the game begins. Please note that the heroes are already in existence when the game begins, they aren't spawned by trigger.
Now, on to the question. I need a leader/multiboard that can show every players health whether it be by text or some other means. I need the health to update often. Basically so the healer doesn't let people die in the game But the problem I am having is displaying their health points and updating them. NOW! The question!
How do you set a integer variable to a units health points?
Trigger:
- Events
- Set RedHP = ________.
Thanks for your assistance :]
*edit=typo