Need Help with trigger that issues orders

MorbazanRhot

New Member
Reaction score
7
Alright, my question is pretty simple, I just don't understand what the problem is with my trigger. The idea is that every 20 seconds this boss blinks away, launches shockwaves at everyone in the party, and then blinks back, etc. I've been testing it with two people and he always does everything right, except that he only shoots one shockwave every time. I can't figure out where the problem is at, I have tried a 0 cooldown and a .01 cooldown (currently on 0), there's no mana involved, the range of the spell is fine, so is the unit's sight and los, the only thing I can think of is that the trigger isn't working correctly. However, it always casts the first wave, and that part of the trigger is the same as the rest, so I'm making a plea to see if anyone can help me. Here's my trigger, the shockwave part is in the beginning, and +rep to anyone who helps.

P.S. One more thing, I've tested where player one dies during the fight, and then he'll still launch a shockwave at player 2 (although one time he didn't shoot one).

PHP:
Shockwaves 1
    Events
        Time - Every 20.00 seconds of game time
    Conditions
    Actions
        Unit - Add Shockwave first boss to Kuom
        Unit - Order Kuom to Night Elf Warden - Blink (Center of FirstBossTP1 <gen>)
        Wait 0.50 seconds
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 1 (Red) slot status) Equal to Is playing
                (TheWiz is alive) Equal to True
            Then - Actions
                Unit - Order Kuom to Orc Tauren Chieftain - Shockwave (Position of TheWiz)
                Wait 0.50 seconds
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 2 (Blue) slot status) Equal to Is playing
                (TheNecro is alive) Equal to True
            Then - Actions
                Unit - Order Kuom to Orc Tauren Chieftain - Shockwave (Position of TheNecro)
                Wait 0.50 seconds
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 3 (Teal) slot status) Equal to Is playing
                (TheCleric is alive) Equal to True
            Then - Actions
                Unit - Order Kuom to Orc Tauren Chieftain - Shockwave (Position of TheCleric)
                Wait 0.50 seconds
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 4 (Purple) slot status) Equal to Is playing
                (TheWar is alive) Equal to True
            Then - Actions
                Unit - Order Kuom to Orc Tauren Chieftain - Shockwave (Position of TheWar)
                Wait 0.50 seconds
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 5 (Yellow) slot status) Equal to Is playing
                (TheRogue is alive) Equal to True
            Then - Actions
                Unit - Order Kuom to Orc Tauren Chieftain - Shockwave (Position of TheRogue)
                Wait 0.50 seconds
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 6 (Orange) slot status) Equal to Is playing
                (TheSwordsman is alive) Equal to True
            Then - Actions
                Unit - Order Kuom to Orc Tauren Chieftain - Shockwave (Position of TheSwordsman)
                Wait 0.50 seconds
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 7 (Green) slot status) Equal to Is playing
                (TheNaturalist is alive) Equal to True
            Then - Actions
                Unit - Order Kuom to Orc Tauren Chieftain - Shockwave (Position of TheNaturalist)
                Wait 0.50 seconds
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 8 (Pink) slot status) Equal to Is playing
                (TheChanneler is alive) Equal to True
            Then - Actions
                Unit - Order Kuom to Orc Tauren Chieftain - Shockwave (Position of TheChanneler)
                Wait 0.50 seconds
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Player 1 (Red) slot status) Equal to Is playing
                (TheWiz is alive) Equal to True
            Then - Actions
                Set spawningpoint = (Position of TheWiz)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        Or - Any (Conditions) are true
                            Conditions
                                (Player 1 (Red) slot status) Equal to Is unused
                                (Player 1 (Red) slot status) Equal to Has left the game
                                (TheWiz is dead) Equal to True
                (Player 2 (Blue) slot status) Equal to Is playing
                (TheNecro is alive) Equal to True
            Then - Actions
                Set spawningpoint = (Position of TheNecro)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        And - All (Conditions) are true
                            Conditions
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 1 (Red) slot status) Equal to Is unused
                                        (Player 1 (Red) slot status) Equal to Has left the game
                                        (TheWiz is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 2 (Blue) slot status) Equal to Is unused
                                        (Player 2 (Blue) slot status) Equal to Has left the game
                                        (TheNecro is dead) Equal to True
                (Player 3 (Teal) slot status) Equal to Is playing
                (TheCleric is alive) Equal to True
            Then - Actions
                Set spawningpoint = (Position of TheCleric)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        And - All (Conditions) are true
                            Conditions
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 1 (Red) slot status) Equal to Is unused
                                        (Player 1 (Red) slot status) Equal to Has left the game
                                        (TheWiz is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 2 (Blue) slot status) Equal to Is unused
                                        (Player 2 (Blue) slot status) Equal to Has left the game
                                        (TheNecro is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 3 (Teal) slot status) Equal to Is unused
                                        (Player 3 (Teal) slot status) Equal to Has left the game
                                        (TheCleric is dead) Equal to True
                (Player 4 (Purple) slot status) Equal to Is playing
                (TheWar is alive) Equal to True
            Then - Actions
                Set spawningpoint = (Position of TheWar)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        And - All (Conditions) are true
                            Conditions
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 1 (Red) slot status) Equal to Is unused
                                        (Player 1 (Red) slot status) Equal to Has left the game
                                        (TheWiz is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 2 (Blue) slot status) Equal to Is unused
                                        (Player 2 (Blue) slot status) Equal to Has left the game
                                        (TheNecro is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 3 (Teal) slot status) Equal to Is unused
                                        (Player 3 (Teal) slot status) Equal to Has left the game
                                        (TheCleric is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 4 (Purple) slot status) Equal to Is unused
                                        (Player 4 (Purple) slot status) Equal to Has left the game
                                        (TheWar is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 5 (Yellow) slot status) Equal to Is unused
                                        (Player 5 (Yellow) slot status) Equal to Has left the game
                                        (TheRogue is dead) Equal to True
                (Player 6 (Orange) slot status) Equal to Is playing
                (TheSwordsman is alive) Equal to True
            Then - Actions
                Set spawningpoint = (Position of TheSwordsman)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        And - All (Conditions) are true
                            Conditions
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 1 (Red) slot status) Equal to Is unused
                                        (Player 1 (Red) slot status) Equal to Has left the game
                                        (TheWiz is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 2 (Blue) slot status) Equal to Is unused
                                        (Player 2 (Blue) slot status) Equal to Has left the game
                                        (TheNecro is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 3 (Teal) slot status) Equal to Is unused
                                        (Player 3 (Teal) slot status) Equal to Has left the game
                                        (TheCleric is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 4 (Purple) slot status) Equal to Is unused
                                        (Player 4 (Purple) slot status) Equal to Has left the game
                                        (TheWar is dead) Equal to True
                (Player 5 (Yellow) slot status) Equal to Is playing
                (TheRogue is alive) Equal to True
            Then - Actions
                Set spawningpoint = (Position of TheRogue)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        And - All (Conditions) are true
                            Conditions
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 1 (Red) slot status) Equal to Is unused
                                        (Player 1 (Red) slot status) Equal to Has left the game
                                        (TheWiz is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 2 (Blue) slot status) Equal to Is unused
                                        (Player 2 (Blue) slot status) Equal to Has left the game
                                        (TheNecro is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 3 (Teal) slot status) Equal to Is unused
                                        (Player 3 (Teal) slot status) Equal to Has left the game
                                        (TheCleric is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 4 (Purple) slot status) Equal to Is unused
                                        (Player 4 (Purple) slot status) Equal to Has left the game
                                        (TheWar is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 5 (Yellow) slot status) Equal to Is unused
                                        (Player 5 (Yellow) slot status) Equal to Has left the game
                                        (TheRogue is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 6 (Orange) slot status) Equal to Is unused
                                        (Player 6 (Orange) slot status) Equal to Has left the game
                                        (TheSwordsman is dead) Equal to True
                (Player 7 (Green) slot status) Equal to Is playing
                (TheNaturalist is alive) Equal to True
            Then - Actions
                Set spawningpoint = (Position of TheNaturalist)
            Else - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                And - All (Conditions) are true
                    Conditions
                        And - All (Conditions) are true
                            Conditions
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 1 (Red) slot status) Equal to Is unused
                                        (Player 1 (Red) slot status) Equal to Has left the game
                                        (TheWiz is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 2 (Blue) slot status) Equal to Is unused
                                        (Player 2 (Blue) slot status) Equal to Has left the game
                                        (TheNecro is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 3 (Teal) slot status) Equal to Is unused
                                        (Player 3 (Teal) slot status) Equal to Has left the game
                                        (TheCleric is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 4 (Purple) slot status) Equal to Is unused
                                        (Player 4 (Purple) slot status) Equal to Has left the game
                                        (TheWar is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 5 (Yellow) slot status) Equal to Is unused
                                        (Player 5 (Yellow) slot status) Equal to Has left the game
                                        (TheRogue is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 6 (Orange) slot status) Equal to Is unused
                                        (Player 6 (Orange) slot status) Equal to Has left the game
                                        (TheSwordsman is dead) Equal to True
                                Or - Any (Conditions) are true
                                    Conditions
                                        (Player 7 (Green) slot status) Equal to Is unused
                                        (Player 7 (Green) slot status) Equal to Has left the game
                                        (TheNaturalist is dead) Equal to True
                (Player 8 (Pink) slot status) Equal to Is playing
                (TheChanneler is alive) Equal to True
            Then - Actions
                Set spawningpoint = (Position of TheChanneler)
            Else - Actions
        Unit - Order Kuom to Night Elf Warden - Blink spawningpoint
        Wait 0.50 seconds
        Unit - Order Kuom to Orc Tauren Chieftain - War Stomp
        Unit - Remove Shockwave first boss from Kuom
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
I have to disagree with the simple part. :D Anyway, the only thing I can suggest would be adding the order to stop after every shockwave. It might help clear the unit before being given a new order.
 

MorbazanRhot

New Member
Reaction score
7
Bah, you've helped me so many times you're on to my tricks, I want to make it LOOK simple so people will help 0.o As soon as I'm done typing this I'm actually going to test out the vials with 3 abilities instead of 1 that I just got from my email from you. Guess I'll try your suggestion of the stops while I'm at it, but should I have a wait before the stop or can I have it directly after the shockwave order?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
>should I have a wait before the stop or can I have it directly after the shockwave order?

Should make no difference since the casting time on that ability is 0.
 

MorbazanRhot

New Member
Reaction score
7
Yeah, it happened as I suspected, the stop right after the shockwave canceled the shockwave before he could cast it. The problem is that while the casting time is 0, he has to target the unit and actually go through the motion of using the spell, which takes longer than he gets before the stop order. I'm going to try the stop with a wait before it, but any other suggestion are also still welcomed.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
Maybe that's your problem. Maybe the time it takes to cast that spell is longer than your .50 second wait, so it messes up the trigger. You could try changing the wait to a conditional wait that waits for the unit's current order to become "none".
 

MorbazanRhot

New Member
Reaction score
7
Yeah, I just got done testing again and that's the same conclusion I think I'm at. (On a side note, the vials work perfectly now with 3 seperate abilities, thanks a ton for that!) When I tested sometimes he would shoot 2 waves, sometimes 1, and sometimes none, so I think the problem is his turning time, that sometimes he can line up the target within the wait time and sometimes he can't. The conditional wait seems like a great idea, but I can't find "none," so do I just do something like this?:
Wait until ((Current order of Kuom) Equal to (Order(none))), checking every 0.20 seconds -- which is typing in my own string that I don't know if exists or not
or would this be fine?:
Wait until (((Current order of Kuom) Equal to Attack) or ((Current order of Kuom) Equal to Stop)), checking every 0.20 seconds -- because attack or stop should be the 2 thing he could possibly decide to do while sitting there, I could add move as well for good measure

Or would you suggest doing it a different way all together?
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
Stop is never registered as a "Current Order". Yes, type in none manually like you have it in the first one and it should work. You could also add in an action to make him face the correct way, but it might be a little complicated, and probably not needed.
 

MorbazanRhot

New Member
Reaction score
7
Alright, I'm gonna give that a try. A simpler version of making an action that made him face the correct way would just be setting his turn rate to 1.00 and then he should have no problem launching all of them in under .5 seconds each if the turning is the problem. However that looks cheesy when he's actually fighting, so here's to hoping this works.
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
889
You're welcome, but don't double post. ;)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top