• 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.

Trigger to have the boss monologue before he dies

Status
Not open for further replies.
Level 12
Joined
Sep 28, 2012
Messages
277
I'm working on a map where you're a warlock who has to enslave demons in order to be able to summon them. For example, there's a Fel Boar, an Imp, a Succubus, etc., and if you're channeling an ability called Soul Shackle when they die, they become an ability for you to summon.

One of the abilities is a Dreadlord, who is a civilized demon. He attacks you like usual, but I want to make it so that if you're soul shackling him when he dies, he surrenders himself rather than dying, refuses to be your pet, and instead decides that if he's bound to Azeroth he may as well make a profit out of it and set up a shop instead.

My question is this: How do you make it so that he doesn't actually die? I need to make it so that basically when he gets to 1 hit point he surrenders. This would be useful advice in a boss battle as well if you wanted to make him monologue before he died or something.

Anyway, how should this be done?
 
Level 21
Joined
Mar 27, 2012
Messages
3,232
I'm working on a map where you're a warlock who has to enslave demons in order to be able to summon them. For example, there's a Fel Boar, an Imp, a Succubus, etc., and if you're channeling an ability called Soul Shackle when they die, they become an ability for you to summon.

One of the abilities is a Dreadlord, who is a civilized demon. He attacks you like usual, but I want to make it so that if you're soul shackling him when he dies, he surrenders himself rather than dying, refuses to be your pet, and instead decides that if he's bound to Azeroth he may as well make a profit out of it and set up a shop instead.

My question is this: How do you make it so that he doesn't actually die? I need to make it so that basically when he gets to 1 hit point he surrenders. This would be useful advice in a boss battle as well if you wanted to make him monologue before he died or something.

Anyway, how should this be done?

Firstly detect damage(specific unit). When it gets a hit that would kill it(damage taken >= life remaining) then heal it to full instantly.
This is only possible because "Unit takes damage" happens before the unit actually takes damage.
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 003 Copy
    • Events
      • Unit - Paladin 0000 <gen> Takes damage
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Damage taken) - (Life of (Triggering unit))) Greater than or equal to 0.41
        • Then - Actions
          • Unit - Set life of (Triggering unit) to 0.41
          • Unit - Make (Triggering unit) Invulnerable
        • Else - Actions
 
Level 12
Joined
Sep 28, 2012
Messages
277
Thanks a lot, I'll try this. But... why set the life to 0.41?

EDIT: Okay, what's the deal with this? "Specific Unit" Event only works for actual world units! It can't do variables! This is stupid. I need to make this available to try on any Dreadlord. Any ways to work around this unfortunate problem?
 
Last edited:
Level 12
Joined
Sep 28, 2012
Messages
277
This still doesn't work. The enemy just dies, and it's like the trigger doesn't fire at all. Are you sure that the damage taken - life thing is sound? I have no idea where to look in the trigger for the problem.
 
Status
Not open for further replies.
Top