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!
I am trying to make my boss disappear when he is half way dead and have units spawn. Then once i kill the units the boss will come back still half way dead
you could always save the bosses hitpoints using a intiger variable, then when all the units are dead respawn the same unit type as the boss and set its hitpoints back to what the variable stored. (you should also save his mana if he uses magic)
or you could just move the unit to a hidden spot and move him back. (but his hitpoints would still regenerate.)
Trigger 1 NOTE: I used knight and just typed out half his normal hp (400/800) Just use half your bosses hp.
Bosstest
Events
Unit - Knight 0001 <gen>'s life becomes Equal to 400.00
Conditions
Actions
Unit - Move (Attacked unit) instantly to (Center of MoveTo <gen>)
Unit - Create 3 Footman for Player 1 (Red) at (Random point in BossFight <gen>) facing Default building facing degrees
Trigger - Turn on MinionsDefeat <gen>
Trigger - Turn off (This trigger)
Trigger two this will move him back after the units are killed. This trigger is initially off
MinionsDefeat
Events
Unit - A unit owned by Player 1 (Red) Dies
Conditions
(Unit-type of (Dying unit)) Equal to Footman
Actions
If ((Number of units in (Units in BossFight <gen> owned by Player 1 (Red))) Equal to 0) then do (Unit - Move Knight 0001 <gen> instantly to (Random point in BossFight <gen>)) else do (Do nothing)
If the unit is preplaced, you can use the even "unit's life becomes less than X". Use "hide unit" action. You should save the boss into a variable. Something like this:
Untitled Trigger 022
Events
Unit - Footman 0001 <gen>'s life becomes Less than 50.00
Conditions
Actions
Trigger - Turn off (This trigger)
Unit - Hide Boss_Unit
Set Temp_Loc_1 = (Center of Some Region <gen>)
Unit - Create 1 Footman for Player 1 (Red) at Temp_Loc_1 facing Default building facing degrees
Unit Group - Add (Last created unit) to Temp_Group_1
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.