• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[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 24
Joined
Aug 1, 2013
Messages
4,657
I cannot properly read the trigger of you... should have put them between [ TRIGGER ] [/ TRIGGER ] tags.

You should use other spells in an else block or do "Skip remaining actions" after you have ordered it to cast a spell.
 
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,657
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