• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

[Trigger] Unit type question

Status
Not open for further replies.

pistolwhip116

P

pistolwhip116

I am trying to make a trigger that spawns a boss unit with multiple phases based on HP but i don't know how to make the trigger replace the unit with my phase 2 unit, the event only selects existing units.
I also stumbled upon a preset button and i was wondering what it does.

Thank you!


*edit* I spelled "Thank you!" wrong..../fail
 
I believe this should help...

  • Spawn Boss
    • Events
      • Something - Whatever causes the boss to spawn
    • Conditions
    • Actions
      • Unit - Create 1 Boss1 for Neutral Hostile at (Centre of(Boss Spawn)) facing Default building facing degrees
      • Set BossCharacter = (Last created unit)
  • Change Boss
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • (Attacked unit) Equal to BossCharacter
      • (Integer((Percentage life of BossCharacter))) Less than or equal to 50
    • Actions
      • Unit - Replace BossCharacter with a Boss2 using The old unit's relative life and mana
      • Set BossCharacter = (Last replaced unit)
 
Status
Not open for further replies.
Back
Top