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

[General] Immortal Enemy

Status
Not open for further replies.
Level 37
Joined
Aug 14, 2006
Messages
7,602
Hey.

I'm asking from you how to create one pretty simple system.

Player fights normally against a boss enemy and it will take damage. However, the boss cannot be actually killed. It can be lowered to 1 hit points but cannot be killed.

How I do that? Map is attached where you could add your system.

Rep and credits for the helpers.
 

Attachments

  • Unkillable Monster.w3m
    16 KB · Views: 31
Level 33
Joined
Mar 27, 2008
Messages
8,035
You can use this trigger for simplicity (it worked)

  • Immortal
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Blood Mage
    • Actions
      • Set DyingLoc = (Position of (Triggering unit))
      • Hero - Instantly revive (Triggering unit) at DyingLoc, Hide revival graphics
      • Unit - Set life of (Triggering unit) to 1.00
      • Custom script: call RemoveLocation(udg_DyingLoc)
But make sure to make that unit as "Hero Unit", otherwise it won't work (you have to either use Replace Unit or Create Unit Action)
 

Attachments

  • Unkillable Monster.w3x
    16.9 KB · Views: 37
Level 37
Joined
Mar 6, 2006
Messages
9,243
If this is only for one unit, you can do this:

  • PreventDeath Copy
    • Events
      • Unit - Footman 0003 <gen> Takes damage
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Life of (Triggering unit)) - (Damage taken)) Less than 0.41
        • Then - Actions
          • Unit - Set life of (Triggering unit) to ((Damage taken) + 0.41)
        • Else - Actions
 
Last edited:
Level 5
Joined
Feb 6, 2011
Messages
177
my suggestions . hope it works

  • PreventDeath
    • Events
      • Unit - A unit is Attacked
    • Conditions
      • (Triggering unit) Equal to (your unit)
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Life of (Triggering unit)) is less or equal to 3%
        • Then - Actions
          • Unit - Set life of (Triggering unit) to 1
          • Else - Actions
 
If this is only for one unit, you can do this:

  • PreventDeath Copy
    • Events
      • Unit - Footman 0003 <gen> Takes damage
    • Conditions
      • (Triggering unit) Equal to Footman 0003 <gen>
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Life of (Triggering unit)) - (Damage taken)) Less than 0.41
        • Then - Actions
          • Unit - Set life of (Triggering unit) to ((Damage taken) + 0.41)
        • Else - Actions
Best solution here, although I don't get your Event/Condition - both do actually the same :S
Remove the condition please ;P
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
UnHolyDarKness, that will cause the unit to die, since the unit's life will be reduced by the damage after you set the life to 1.

Spinnaker, yeah. I made it first Weep's damage detection so it worked for all units. Then I simplified it for only one unit, and somehow got blind to the condition :)
 
Last edited:
It can be lowered to 1 hit points but cannot be killed.

  • event
    • unit is attacked
  • condition
    • triggering unit equals to BOSS_UNIT
  • actions
    • set life of triggering unit to 100%
EDIT:
another method without using triggers...

edit the boss stats in object editor, change the armour to divine then change the regeneration
to 1000...
 
Last edited:
Level 37
Joined
Aug 14, 2006
Messages
7,602
Hey everyone. Thanks for helping me out here.

I love Maker's trigger. It does the job and it's really simple.

Thanks again, this will be really useful trigger.

If this is only for one unit, you can do this:

  • PreventDeath Copy
    • Events
      • Unit - Footman 0003 <gen> Takes damage
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Life of (Triggering unit)) - (Damage taken)) Less than 0.41
        • Then - Actions
          • Unit - Set life of (Triggering unit) to ((Damage taken) + 0.41)
        • Else - Actions
 
Status
Not open for further replies.
Top