HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Unit Max HP

09-21-2004, 09:55 AM#1
PatruX
Well I have a little issue,
You see, I made a RPG which supports 4 players.

However, if there's 3,2 or 1 player(s) playing I want to set the MAX health of the enemies to 75%, 50% or 25%.
I can't just set their health to XX%, because then they will regenerate it, or some creeps can even heal.

So I tried this:

Code:
Unit Group - Pick every unit in (Units in (Playable map area) owned by Neutral Hostile) and do (Unit - Set life of (Picked unit) to (((Max life of (Triggering unit)) / 4.00) x 3.00)%)

But for some reason they get killed / or their normal health and not MAX health is set to 75%.

All help is accepted, and will be rewarded.
09-21-2004, 11:46 AM#2
AFB-DieHard
I have the same problem. You could use some kind of tome of health with negative data but you could only substract a fixed value.
09-21-2004, 02:38 PM#3
th15
Find the trigger that sets player handicap. Use that.
09-21-2004, 04:46 PM#4
PatruX
Quote:
Originally Posted by th15
Find the trigger that sets player handicap. Use that.


Woah, You got a good point there =)