Doh, damn Blizzard! Maps still don't get localized for other editors I guess. What language of Sc2 do you have?
Also, can you try whether the version I attached to this post works? I quickly localized it.
i'm going to try and test your event. Hopefully it works so i can finally publish my map publicly. Do you know if there is a way to make a trigger to kick a computer player or otherwise simulate a player leaving? If it's complicated forget it, I'll just wait for my friends lol
Your script would permanently detect a player as recently left every 30 seconds. The Status of a player stays at Left The Game even after the script notices the leaver. In your case that doesn't seem like a big problem, still..
I tried using your custom event.. not sure what i'm doing there, nothing is named when i open the map : /
With my trigger posted above, if say, player 1 left, would every 30 seconds it -1 to the variable? Like in 1 minute would it subtract 2 from the variable? If so, how can i get it so that if player 1 leaves, it will only subtract 1 from the variable and no more for that player?
Your script would permanently detect a player as recently left every 30 seconds. The Status of a player stays at Left The Game even after the script notices the leaver. In your case that doesn't seem like a big problem, still..
I tried using your custom event.. not sure what i'm doing there, nothing is named when i open the map : /
With my trigger posted above, if say, player 1 left, would every 30 seconds it -1 to the variable? Like in 1 minute would it subtract 2 from the variable? If so, how can i get it so that if player 1 leaves, it will only subtract 1 from the variable and no more for that player?
The event is not reliable. I think it only fires when somebody leaves by quitting from the menu and will not fire if somebody gets disconnected or alt+F4's out. The workaround is to store all active players in a player group variable and then in a periodic trigger, check the status of all players in that player group. If it is left the game, remove the player from the player group and then handle the player having left.
Will this suffice? "Active number of players" MUST subtract 1 for every player not present and the region for each player must be moved when this occurs.
also, if player 1 leaves, will this trigger run endlessly because the status will always be "p1 left"? Or will it run once, move the region and thats it?
I just thought about using a global variable to have it set to 4 initially. When player x leaves, -1 to that variable... don't know what to do to modify the 3/4 players ready to 2/3 then 2/2 then 1/1 players ready..
any suggestions?
Edit: may have solved this.. sorry to waste space..
Have an if then else stating if variable is <= 3, turn off trig, turn on other trig.
if variable is <= 2, turn off trig, turn on other trig.
etc etc... i'll try it out, any input is still much appreciated
Its a td and i have a ready system, there is no wave timer.
ok, so, there are 4 players and each of which have a ready unit that they move to a beacon to set their own ready status. When a player does this, it adds +1 to the "Players Ready" variable. When 3 out of 4 players ready up, it starts a wave.
Now, is there a condition that checks "Active NUMBER of players == value"? I can only find "active players == variable".
I want it so that when any players leaves (active number of players is now 3) one trigger is turned off, and another, on. That, ultimately, is my goal. Is there ANY way of doing this without having to re-write all my spawn triggers?
0
@XDretsamtovip: Go
you are an ex-dretsam now you moved to being a VIP
(Cookies to whoever actually guesses the origin of my user name) Think hard
0
@deleted_4551290: Go
thats korea lol
0
I just spent like 5 mins on a little corner piece :P
0
ohh ok i'll take a go, give me a bit
0
It's all good, i managed to make something that works
0
Anybody have any input?
0
I was taking a look at ArcadeRenegade's voting system he posted for people to use. I love the system but need help implementing it to Photon Defence.
I want it to have a 15 second timer in which still, the highest vote will win if the timer runs out.
If there is a tie, randomly (Or whatever is easier) pick one of the tied votes and do actions.
If the timer runs out with nobody picking anything, random (Or whatever) pick vote.
If there is any way I or someone else can get this to work for me, please let me know!
i linked the map file below
http://www.sc2mapster.com/assets/player-voting-system/
0
i'm going to try and test your event. Hopefully it works so i can finally publish my map publicly. Do you know if there is a way to make a trigger to kick a computer player or otherwise simulate a player leaving? If it's complicated forget it, I'll just wait for my friends lol
Thanks for all your help
0
I tried using your custom event.. not sure what i'm doing there, nothing is named when i open the map : /
With my trigger posted above, if say, player 1 left, would every 30 seconds it -1 to the variable? Like in 1 minute would it subtract 2 from the variable? If so, how can i get it so that if player 1 leaves, it will only subtract 1 from the variable and no more for that player?
That worked :P I'll try to implement it and see if i can get it to work with my map :/ Thank you
0
I tried using your custom event.. not sure what i'm doing there, nothing is named when i open the map : /
With my trigger posted above, if say, player 1 left, would every 30 seconds it -1 to the variable? Like in 1 minute would it subtract 2 from the variable? If so, how can i get it so that if player 1 leaves, it will only subtract 1 from the variable and no more for that player?
0
Will this suffice? "Active number of players" MUST subtract 1 for every player not present and the region for each player must be moved when this occurs.
0
Is there anyone that can spare 5 minutes or less to test one trigger in my map?
Add me,
Copperfront - 422
Thanks!
0
Does this event work? I heard somewhere that this event doesn't always work for some reason.
If a player leaves at any time DURING the game or at loading screen, dropped etc then modify variable. Will it work?
also, if player 1 leaves, will this trigger run endlessly because the status will always be "p1 left"? Or will it run once, move the region and thats it?
0
@copperfront: Go
I just thought about using a global variable to have it set to 4 initially. When player x leaves, -1 to that variable... don't know what to do to modify the 3/4 players ready to 2/3 then 2/2 then 1/1 players ready..
any suggestions?
Edit: may have solved this.. sorry to waste space..
Have an if then else stating if variable is <= 3, turn off trig, turn on other trig.
if variable is <= 2, turn off trig, turn on other trig.
etc etc... i'll try it out, any input is still much appreciated
0
Ok i am so frustrated with my map right now! lol
Its a td and i have a ready system, there is no wave timer.
ok, so, there are 4 players and each of which have a ready unit that they move to a beacon to set their own ready status. When a player does this, it adds +1 to the "Players Ready" variable. When 3 out of 4 players ready up, it starts a wave.
Now, is there a condition that checks "Active NUMBER of players == value"? I can only find "active players == variable".
I want it so that when any players leaves (active number of players is now 3) one trigger is turned off, and another, on. That, ultimately, is my goal. Is there ANY way of doing this without having to re-write all my spawn triggers?