PVP Event [Trigger Help]

Malli

New Member
Reaction score
5
Hi there,

I have been trying to make this Trigger work for quite some time now, but it always ends up choosing a building or choosing 200 of the enemy creeps instead of 1 hero for each side of the arena. I dont even think I have got the pause units right :confused:. I would greatly appreciate any help.

The Trigger I have:

Code:
PVP Event 1
    Events
        Map initialization
    Conditions
    Actions
        Wait 320.00 game-time seconds
        Unit - Pause all units
        Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across PVP Visibility <gen>
        Visibility - Create an initially Enabled visibility modifier for Player 2 (Blue) emitting Visibility across PVP Visibility <gen>
        Visibility - Create an initially Enabled visibility modifier for Player 3 (Teal) emitting Visibility across PVP Visibility <gen>
        Visibility - Create an initially Enabled visibility modifier for Player 4 (Purple) emitting Visibility across PVP Visibility <gen>
        Visibility - Create an initially Enabled visibility modifier for Player 5 (Yellow) emitting Visibility across PVP Visibility <gen>
        Visibility - Create an initially Enabled visibility modifier for Player 6 (Orange) emitting Visibility across PVP Visibility <gen>
        Visibility - Create an initially Enabled visibility modifier for Player 7 (Green) emitting Visibility across PVP Visibility <gen>
        Visibility - Create an initially Enabled visibility modifier for Player 8 (Pink) emitting Visibility across PVP Visibility <gen>
        Visibility - Create an initially Enabled visibility modifier for Player 9 (Gray) emitting Visibility across PVP Visibility <gen>
        Visibility - Create an initially Enabled visibility modifier for Player 10 (Light Blue) emitting Visibility across PVP Visibility <gen>
        Camera - Pan camera for Player 1 (Red) to (Center of PVP Visibility <gen>) over 0.00 seconds
        Camera - Pan camera for Player 2 (Blue) to (Center of PVP Visibility <gen>) over 0.00 seconds
        Camera - Pan camera for Player 3 (Teal) to (Center of PVP Visibility <gen>) over 0.00 seconds
        Camera - Pan camera for Player 4 (Purple) to (Center of PVP Visibility <gen>) over 0.00 seconds
        Camera - Pan camera for Player 5 (Yellow) to (Center of PVP Visibility <gen>) over 0.00 seconds
        Camera - Pan camera for Player 6 (Orange) to (Center of PVP Visibility <gen>) over 0.00 seconds
        Camera - Pan camera for Player 7 (Green) to (Center of PVP Visibility <gen>) over 0.00 seconds
        Camera - Pan camera for Player 8 (Pink) to (Center of PVP Visibility <gen>) over 0.00 seconds
        Camera - Pan camera for Player 9 (Gray) to (Center of PVP Visibility <gen>) over 0.00 seconds
        Camera - Pan camera for Player 10 (Light Blue) to (Center of PVP Visibility <gen>) over 0.00 seconds
        Game - Display to (All players) for 16.50 seconds the text: In 60 Seconds an it...
        Wait 1.50 game-time seconds
        Game - Display to (All players) for 15.00 seconds the text: The winner of this ...
        Wait 1.00 game-time seconds
        Set PlayerGroup = (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing)))
        Player Group - Pick every player in PlayerGroup and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked player) is an ally of Player 11 (Dark Green)) Equal to True
                        ((Triggering unit) is A Hero) Equal to True
                        ((Triggering unit) is A structure) Not equal to True
                        ((Triggering unit) is Summoned) Not equal to True
                    Then - Actions
                        Unit - Move (Random unit from (Units owned by (Random player from (All allies of Player 11 (Dark Green))))) instantly to (Center of West PVP player <gen>)
                    Else - Actions
                        Unit - Unpause (Picked unit)
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked player) is an ally of Player 12 (Brown)) Equal to True
                        ((Triggering unit) is A Hero) Equal to True
                        ((Triggering unit) is A structure) Not equal to True
                        ((Triggering unit) is Summoned) Not equal to True
                    Then - Actions
                        Unit - Move (Random unit from (Units owned by (Random player from (All allies of Player 12 (Brown))))) instantly to (Center of East PVP player <gen>)
                    Else - Actions
                        Unit - Unpause (Picked unit)
        Custom script:   call DestroyForce(udg_PlayerGroup)
        Wait 60.00 game-time seconds
        Item - Create Circlet of Nobility at (Center of Item Spawn <gen>)
I have a good feeling all of this is wrong, but im just starting to learn the ways of GUI.
Thank you and Respect,

(*$malli$*)
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Instead of Map Initialization, why not do:
Code:
Events
    Elapsed game time is 320.00 seconds
?

Also, there's multiple leaks throughout that trigger.
 

Malli

New Member
Reaction score
5
Ah yes (duh).

I have this trigger disabled because I know it has plenty of leaks, but before I fix the leaks I was just wanting the Trigger to actually work first.

Thanks WolfieNoCT anyway, I never would have thought to put the elapsed time there.
Respect,

(*$malli$*)
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Code:
                        ((Triggering unit) is A Hero) Equal to True
                        ((Triggering unit) is A structure) Not equal to True
                        ((Triggering unit) is Summoned) Not equal to True
Why is the first one of the Conditions (Picked unit) then those are all trig unit?
Code:
Unit - Move (Random unit from (Units owned by (Random player from (All allies of Player 12 (Brown))))) instantly to (Center of East PVP player <gen>)
Why Random unit?

Also, use loops for the visibility and camera;
A lot neater and more efficient.
 

Malli

New Member
Reaction score
5
Thank you,

You see that's why I couldn't stop the buildings being chosen, because it was in "Triggered Unit" when it should have been "picked"!

What do I use instead of "Random Unit" because I want it to pick 1 random hero from each team and I thought that's how you do it?

*Edit* Oh and please could you give an example of the loop for the visibility etc if you can, sorry about the hassle :s.
Respect,

(*$malli$*)
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Random unit should be fine then.
Here's the loop:
Code:
Actions
     For each (Integer A) from 1 to (Number of players), do (Actions)
        Loop - Actions
            Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility across (Playable map area)
     For each (Integer A) from 1 to (Number of players), do (Actions)
        Loop - Actions
            Camera - Pan camera for (Player((Integer A))) to (Center of (Playable map area)) over 0.00 seconds
(Number of players) can be changed to 10.
Also, (Playable map area) and (Center of (Playable map area)) need to be changed to the regions you want.
 

Malli

New Member
Reaction score
5
Ok thank you very much +Rep :)

Even though I have now got it allot tidier nothing appears in the arena, here is the Trigger i have got now:

Code:
PVP Event 1
    Events
        Time - Elapsed game time is 20.00 seconds
    Conditions
    Actions
        Unit - Pause all units
        For each (Integer A) from 1 to (Number of players), do (Actions)
            Loop - Actions
                Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility across PVP Visibility <gen>
        For each (Integer A) from 1 to (Number of players), do (Actions)
            Loop - Actions
                Camera - Pan camera for (Player((Integer A))) to (Center of PVP Visibility <gen>) over 0.00 seconds
        Game - Display to (All players) for 16.50 seconds the text: In 60 Seconds an it...
        Wait 1.50 game-time seconds
        Game - Display to (All players) for 15.00 seconds the text: The winner of this ...
        Wait 1.00 game-time seconds
        Set PlayerGroup = (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing)))
        Player Group - Pick every player in PlayerGroup and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (((Picked player) is an ally of Player 11 (Dark Green)) Equal to True) and ((((Picked unit) is A Hero) Equal to True) and ((((Picked unit) is A structure) Not equal to True) and (((Picked unit) is Summoned) Not equal to True)))
                    Then - Actions
                        Unit - Move (Random unit from (Units owned by (Random player from (All allies of Player 11 (Dark Green))))) instantly to (Center of West PVP player <gen>)
                    Else - Actions
                        Unit - Unpause (Picked unit)
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        (((Picked player) is an ally of Player 12 (Brown)) Equal to True) and ((((Picked unit) is A Hero) Equal to True) and ((((Picked unit) is A structure) Not equal to True) and (((Picked unit) is Summoned) Not equal to True)))
                    Then - Actions
                        Unit - Move (Random unit from (Units owned by (Random player from (All allies of Player 12 (Brown))))) instantly to (Center of East PVP player <gen>)
                    Else - Actions
                        Unit - Unpause (Picked unit)
        Custom script:   call DestroyForce(udg_PlayerGroup)
        Wait 60.00 game-time seconds
        Item - Create Circlet of Nobility at (Center of Item Spawn <gen>)

I just dont know why nothing happens (appart from the pan of camera and visibility), no Hero appears, not even a building. Something must be wrong, ill look into it anyway, thanks again for the help.
Respect,

(*$malli$*)
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Why is the Unpause (Picked unit) in Else - Actions?
Also, for the Conditions;
Make them three seperate conditions,
Not "... and ... and ...".
It's a lot easier ;) .

Also try this:
Don't set PlayerGroup to all players;
Set it to a random unit, then just move that unit to the arena.
 

Malli

New Member
Reaction score
5
Ok I have done almost everything you have said and i now have this:

Code:
PVP Event 1
    Events
        Time - Elapsed game time is 320.00 seconds
    Conditions
    Actions
        Unit - Pause all units
        For each (Integer A) from 1 to (Number of players), do (Actions)
            Loop - Actions
                Visibility - Create an initially Enabled visibility modifier for (Player((Integer A))) emitting Visibility across PVP Visibility <gen>
        For each (Integer A) from 1 to (Number of players), do (Actions)
            Loop - Actions
                Camera - Pan camera for (Player((Integer A))) to (Center of PVP Visibility <gen>) over 0.00 seconds
        Game - Display to (All players) for 16.50 seconds the text: In 60 Seconds an it...
        Wait 1.50 game-time seconds
        Game - Display to (All players) for 15.00 seconds the text: The winner of this ...
        Wait 1.00 game-time seconds
        Set PlayerGroup2 = (All allies of Player 11 (Dark Green))
        Set PlayerGroup3 = (All allies of Player 12 (Brown))
        Set AttackersEast = (Units in Players East <gen> owned by (Random player from PlayerGroup3))
        Set AttackersWest = (Units in Players West <gen> owned by (Random player from PlayerGroup2))
        Set PlayerGroup = (All players matching ((((Matching player) controller) Equal to User) and (((Matching player) slot status) Equal to Is playing)))
        Player Group - Pick every player in PlayerGroup and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is A Hero) Equal to True
                        ((Picked unit) is A structure) Not equal to True
                        ((Picked unit) is Summoned) Not equal to True
                    Then - Actions
                        Unit - Move (Random unit from AttackersEast) instantly to (Center of West PVP player <gen>)
                        Unit - Unpause (Picked unit)
                    Else - Actions
                        Do nothing
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        ((Picked unit) is A Hero) Equal to True
                        ((Picked unit) is A structure) Not equal to True
                        ((Picked unit) is Summoned) Not equal to True
                    Then - Actions
                        Unit - Move (Random unit from AttackersWest) instantly to (Center of East PVP player <gen>)
                        Unit - Unpause (Picked unit)
                    Else - Actions
                        Do nothing
        Custom script:   call DestroyGroup(udg_AttackersEast)
        Custom script:   call DestroyGroup(udg_AttackersWest)
        Custom script:   call DestroyForce(udg_PlayerGroup)
        Custom script:   call DestroyForce(udg_PlayerGroup2)
        Custom script:   call DestroyForce(udg_PlayerGroup3)
        Wait 60.00 game-time seconds
        Unit - Unpause all units
        Item - Create Circlet of Nobility at (Center of Item Spawn <gen>)

With the PlayerGroup I cannot set it to 1 random player from allies of "blah blah". It will only let me select all allies of player "blah blah". I will keep trying.
Respect,

(*$malli$*)
 

WolfieeifloW

WEHZ Helper
Reaction score
372
Remove Do Nothing;
All it does is call a function that does nothing,
The do nothing is implied if nothing is there ;) .
And could you send me the map so I can take a look?
"[email protected]"
Without the quotes.
 

Malli

New Member
Reaction score
5
i still need help on this everyone who is reading this, Wolfie and me don't know why its not working. Anyone ells got any ideas please? +Rep for atleast trying to help with this trigger.

*EDIT* Please delete this thread, im going to post another thread with my similar but new problem.
Respect,

(*$malli$*)
 
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

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top