• 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!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Boss Reset Trigger

Status
Not open for further replies.
Level 18
Joined
Aug 23, 2008
Messages
2,319
You create the triggers. There are just actions you need. If you mean that when you do something (like leaving an area) and you want the boss to gain full life and mana again, use the command 'Unit - Set units property'
  • Actions
    • Unit - Set Boss1's life to max life of Boss1
    • Unit - Set Boss1's mana to max mana of Boss1
 
Level 9
Joined
May 30, 2008
Messages
430
first of all you must be more specific becouse i will give you trigger but i am not sure is that for what u looking for so here you go
  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Owner of (Dying unit)) Equal to Neutral Hostile
      • (Unit-type of (Dying unit)) Equal to Your Boss
    • Actions
      • Wait 180.00 seconds
      • Unit - Create 1 Your Boss for Neutral Hostile at (Center of (Your region)) facing Default building facing degrees
 
Level 7
Joined
Aug 31, 2008
Messages
85
first of all you must be more specific becouse i will give you trigger but i am not sure is that for what u looking for so here you go
  • Untitled Trigger 001
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Owner of (Dying unit)) Equal to Neutral Hostile
      • (Unit-type of (Dying unit)) Equal to Your Boss
    • Actions
      • Wait 180.00 seconds
      • Unit - Create 1 Your Boss for Neutral Hostile at (Center of (Your region)) facing Default building facing degrees

the trigger ive made is this and every time a character leaves the region the boss gains 100% hp. i need a trigger for when a group of players.. say 7-10 all die and the boss resets. thats when i need it to go back to 100% mana and life. this is what i have

Event: a unit leaves boss aggro range(region)

condition: Kreal the Cruel [Elite] 0015 <gen> Not equal to (Dying unit)


Action: Unit - Set life of Kreal the Cruel [Elite] 0015 <gen> to 100.00%
 
Level 18
Joined
Aug 23, 2008
Messages
2,319
Make an Integer variable with an array for each player's hero. Make a trigger that sets the variable to 1 when it's revived, and make a trigger that sets it to 0 when it's dead.

So if LivingHero[3] = 1, then that means that hero of player 3 is alive.

Then make a trigger with Event 'A unit dies', and Conditions 'LivingHero[1] is equal to 0', 'Livinghero[2] is equal to 0', etc. for all LivingHero arrays. Then you make the Replace <CURRENT BOSS> with <SAME BOSS>, using max life and mana.

Good luck :wink:
 
Level 7
Joined
Aug 31, 2008
Messages
85
Make an Integer variable with an array for each player's hero. Make a trigger that sets the variable to 1 when it's revived, and make a trigger that sets it to 0 when it's dead.

So if LivingHero[3] = 1, then that means that hero of player 3 is alive.

Then make a trigger with Event 'A unit dies', and Conditions 'LivingHero[1] is equal to 0', 'Livinghero[2] is equal to 0', etc. for all LivingHero arrays. Then you make the Replace <CURRENT BOSS> with <SAME BOSS>, using max life and mana.

Good luck :wink:

it doesnt work, every time a 1 hero dies he goes back to 100% hp

Uhh, I wouldn't use integer variables for checking if the heros are alive, I would use the same set up but with Boolean.

can you give me a pic of the trigger?
 
Last edited by a moderator:
Level 12
Joined
Jun 28, 2008
Messages
688
  • BossReset
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Boss
      • (All units of HerosGroup are dead) Equal to True
    • Actions
      • Set BossPos = (Position of (Triggering unit))
      • Unit - Create 1 Boss for (Owner of (Triggering unit)) at BossPos facing Default building facing (270.0) degrees
You have to use the point variable "BossPos" so that it doesn't leak a location.
You need to set the variable "HerosGroup" before this trigger can be activated, so you should probably do it at map initialization.

The condition "(All units of HerosGroup are dead) Equal to True" can be found in [Boolean Comparison > Unit Group > (All units of [Group] are dead) Equal to True)].
 
Level 7
Joined
Aug 31, 2008
Messages
85
  • BossReset
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Boss
      • (All units of HerosGroup are dead) Equal to True
    • Actions
      • Set BossPos = (Position of (Triggering unit))
      • Unit - Create 1 Boss for (Owner of (Triggering unit)) at BossPos facing Default building facing (270.0) degrees
You have to use the point variable "BossPos" so that it doesn't leak a location.
You need to set the variable "HerosGroup" before this trigger can be activated, so you should probably do it at map initialization.

The condition "(All units of HerosGroup are dead) Equal to True" can be found in [Boolean Comparison > Unit Group > (All units of [Group] are dead) Equal to True)].

any of the variables need to be array?
what type is herosgroup?
 
Level 7
Joined
Aug 31, 2008
Messages
85
tell exaclty what trigger u need and i will do it for you becouse i am tired no one can help me with my trigger based on slide and i will try to search some one at warcraft who is good at map making

stated it a few posts up, i want a trigger that when the group of heroes all die/wipe on a boss he resets to 100% hp and mana.
 
Level 9
Joined
Oct 7, 2007
Messages
599
Well, the thing is with what you want to do, there's going to be more than one way a boss resets:

Either when the whole party dies, or when they run out of range of the boss. So, your events will have to account for this (or you'll have to make 2 triggers). And in either situation, the boss will probably say a catchphrase and then heal to max and reset in position.
 
Level 9
Joined
May 30, 2008
Messages
430
you must make alot of cheking triggers or try this my idea. Make trigger that detect when your boss is attacked and every time your boss take damage to reset a timer but if the timer run out to activate trigger that set life of the boss to 100%, i think i can do it but i am lazy and i think it's simple so try to do it by yourself
 
Level 7
Joined
Aug 31, 2008
Messages
85
you must make alot of cheking triggers or try this my idea. Make trigger that detect when your boss is attacked and every time your boss take damage to reset a timer but if the timer run out to activate trigger that set life of the boss to 100%, i think i can do it but i am lazy and i think it's simple so try to do it by yourself

there we go! thanks :)


heres the boss reset trigger it works

Unit - Anoxius The Corrupter[Elite] 0028 <gen> Is attacked


(All units of Herosgroup are in Region 012 <gen>) Equal to True


Countdown Timer - Start Boss_Reset as a One-shot timer that will expire in 60.00 seconds

Wait until ((All units of Herosgroup are dead) Equal to True), checking every 1.00 seconds

Unit - Set life of Anoxius The Corrupter[Elite] 0028 <gen> to 100.00%
 
Level 5
Joined
Nov 14, 2007
Messages
161
heres the boss reset trigger it works
Unit - Anoxius The Corrupter[Elite] 0028 <gen> Is attacked
(All units of Herosgroup are in Region 012 <gen>) Equal to True
Countdown Timer - Start Boss_Reset as a One-shot timer that will expire in 60.00 seconds
Wait until ((All units of Herosgroup are dead) Equal to True), checking every 1.00 seconds
Unit - Set life of Anoxius The Corrupter[Elite] 0028 <gen> to 100.00%

wow that looks buggy...
-so if 1 person doesnt enter the region it never starts and the boss will never regain life if they die?
-u start a timer that seems to do absolutely nothing at all...
-what if one of the hero's resses before the last dies? then the wait until will never happen.


i'd say StaberFire got it the best except he makes a new unit instead of heals the boss.

Slight editing:
  • BossReset
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Boss
      • (All units of HerosGroup are dead) Equal to True
    • Actions
      • Unit - Set (Triggering unit) life to max life of (triggering unit)
You need to set the variable "HerosGroup" before this trigger can be activated, so you should probably do it at map initialization.

The condition "(All units of HerosGroup are dead) Equal to True" can be found in [Boolean Comparison > Unit Group > (All units of [Group] are dead) Equal to True)].

the 1 leek every now and then wont kill you, but you might wanna look up the leeks how-to-remove tutorial
 
Level 9
Joined
May 30, 2008
Messages
430
This is exactly what you need, and what i say
  • Start timer
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Unit-type of (Attacked unit)) Equal to Your boss
    • Actions
      • Countdown Timer - Start Bosstimer as a One-shot timer that will expire in 60.00 seconds
This will make if boss isn't attacked 60 seconds to be with full hp after timer expire
  • Reset Boss
    • Events
      • Time - Bosstimer expires
    • Conditions
    • Actions
      • Unit - Set life of Your boss to 100.00%
if your boss respawn use this

  • Reset Boss1
    • Events
      • Time - Bosstimer expires
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units of type Your boss) and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Picked unit) to 100.00%
I am not sure about timer creating it may cause leaks but if cause leaks ask some one how to destroy timer leaks gl hf
 
Level 3
Joined
Feb 13, 2008
Messages
65
Is the boss in an enclosed area? If so, there is a very simple way to check how many units are left alive.
 
Status
Not open for further replies.
Top