Lair of Boss

azaew

Member
Reaction score
0
How can i make it so if all heroes die in the Bosses dungeon the Bosses health instantly goes up to 100% so they cant just run back taking off little bits at a time?

Thank you :confused:
 

maldruzard

Member
Reaction score
2
Assign a variable to each of the heroes present in the 'dungeon' in a trigger, and have another trigger that changes a boolean to true when a hero dies (make it a boolean array, with one number for each hero). Then have a periodic trigger which checks if all of the booleans are equal to true, and if they are all true, pick up all units in the dungeon and change their health back to full.

Can make an example trigger if necessary, but it shouldn't be too hard :)
 

dracolich

TH.net Regular
Reaction score
15
create area "lair", then create trigger which will register any unit death
if unit dead is hero, and unit in rectangle 'lair', then
set Boss's life to 100%
endif
of course, Boss should be already binded to variable
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top