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.
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top