• 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] Problem with cast spell trigger

Status
Not open for further replies.
Level 6
Joined
Jan 2, 2015
Messages
171
i am making map where bosses with 3 spell use spell when they are at certain hp but it seems whenever these 3 spell are having are not cooldown, it will cause conflict and the boss will stuck and never cast spell because its confuse which spell should be cast first..

my question is: how to make this boss cast this spell without making that 3 spell i mentioned above conflicting? should i make phase when facing boss? I basicly want to make trigger that looks like AI for boss

heres my trigger so u guys can understand whats the problem i have

Yeti Spell
Events
Unit - Icehowl 0305 <gen> Is attacked
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Life of Icehowl 0305 <gen>) Less than or equal to 60000.00
Then - Actions
Unit - Order Icehowl 0305 <gen> to Undead Lich - Frost Nova (Attacking unit)
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Life of Icehowl 0305 <gen>) Less than or equal to 40000.00
Then - Actions
Unit - Order Icehowl 0305 <gen> to Human Mountain King - Thunder Clap
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Life of Icehowl 0305 <gen>) Less than or equal to 25000.00
Then - Actions
Unit - Order Icehowl 0305 <gen> to Night Elf Druid Of The Claw - Roar
Wait 2.00 seconds
Unit - Order Icehowl 0305 <gen> to Orc Shaman - Bloodlust Icehowl 0305 <gen>
Else - Actions
 
Level 6
Joined
Jan 2, 2015
Messages
171
Thanks for the reply

is it possible to make the boss still casting frost nova without interrupt other spells? coz it always tried to cast frost nova and other spell at the same time...it cause the boss to stuck and not moving
 
Level 6
Joined
Jan 2, 2015
Messages
171
  • Yeti Phase
    • Events
      • Unit - Icehowl 0305 <gen> Is attacked
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of Icehowl 0305 <gen>) Less than or equal to 60000.00
        • Then - Actions
          • Unit - Order Icehowl 0305 <gen> to Undead Lich - Frost Nova (Picked unit)
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of Icehowl 0305 <gen>) Less than or equal to 40000.00
        • Then - Actions
          • Unit - Order Icehowl 0305 <gen> to Human Mountain King - Thunder Clap
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of Icehowl 0305 <gen>) Less than or equal to 25000.00
        • Then - Actions
          • Unit - Order Icehowl 0305 <gen> to Night Elf Druid Of The Claw - Roar
          • Wait 2.00 seconds
          • Unit - Order Icehowl 0305 <gen> to Orc Shaman - Bloodlust Icehowl 0305 <gen>
        • Else - Actions
 
Level 24
Joined
Aug 1, 2013
Messages
4,658
Ok.

1. Revert order.
Set the one with the lowest amount at the top and the one with the highest amount at the bottom.

2. Set all stuff (after the first one) inside else blocks or put "Skip remaining actions" after each order.

Also (Picked unit) is not doing shit.
Picked unit is when you "pick every unit in unit group".
You want (Attacking unit)

Also Do not use "Wait (...) seconds"
If you want to do it simply then at least use "Wait (...) seconds of game time"

  • Yeti phase
    • Events
      • Unit - Icehowl 0305 <gen> Is attacked
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of (Triggering unit)) Less than or equal to 25000.00
        • Then - Actions
          • Unit - Order (Triggering unit) to Undead Lich - Frost Nova (Attacking unit)
          • Skip remaining actions
        • Else - Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Life of (Triggering unit)) Less than or equal to 40000.00
        • Then - Actions
          • Unit - Order (Triggering unit) to Human Mountain King - Thunder Clap
          • Skip remaining actions
        • Else - Actions
EDIT:
But then the roar and bloodlust on the 25k and the frost nova at the bottom with 60k.
 
Status
Not open for further replies.
Top