There seems to be an issue with the Opt System I have, I added text messages to show what is running at what time. By default all users are Opt Out from start. So in this Opt System I added a command for myself so I could become ghost (Zeratul) when I use this command.
This is the result when I test it. If I do not use the command it runs 1, 3-1, and 5 which does not spawn the Catcher (Marine) or The Ghost (Zeratul) for some reason. When I use the command it runs 1, 4, and 5 which spawns the Catcher and The Ghost both for that player.
Do you mind assisting me on why it's not spawning neither the Catcher or Ghost when everyone is Opt Out by Default and why it spawns both Catcher and The Ghost when I use the command?
You are using the wrong condition here, you shuold be using player iteration, not picked player. Also you might want to consider using the pick each player in player group function and using picked player instead of player iteration in your code
According to your code you should be spawning the ghost after 5. Is that happening?
Also according to your code, when you single player test it, it shouldn't run 4 at all.
Does your other trigger that allows you to opt in to become the ghost, set the become ghost variable to false then
This is all I have time for, I'll check again later.
Become Ghost is default set to false and only I have access to using that command. Yes, according to the code the Ghost should spawn after 5 and if you're playing alone it should create the Ghost since they're no other players playing except for you. I currently just tested it with the changes you requested excluding changing it to Pick Each Player and it didn't spawn the Ghost or the Catcher. The triggers that were ran were 1, 3-1, 5.
Could you add a message that says "player inttotext(lv_winning_player) is the winning player" after you set the winning player variable for 3-1 and 3-2?
hmm, so is it not creating a unit at all, or is it just creating units for the wrong player?, You might want to pick each player and check if it's human or computer, and if it's human add them to the all player variable, instead of setting it to active players.
1) I made what is pretty much an exact copy of your opt system into this map to help debug it, and it spawns the units, you'll need to modify/add some of the conditions so that it function like in your map, and also you'll need to deal with the attack disable etc.
2) Right now in your map, if you try to make yourself become the ghost it's not going to spawn properly for because it doesn't know who it's spawning for (look at 3-3 in my map.
you set the variable used by the create unit action if you use your command, but you don't set the variable within the trigger. So if you don't make yourself the ghost, it will only spawn the ghost for player 0.
Okay so I added what you had on your map and changed it so it actually sets player 1 to be The Ghost. Even if I did that though and it even shows me that it ran, the next text message still shows the winning player as 0 even though it was set and ran not with my command, when the Opt In Group is <= 0.
Look at the trigger your thing is telling you who Player Winner (your global variable) is, when all you set in the trigger is Winning Player (your local variable). what you need to do is add another line after you set winning player, that sets player winner = winning player.
The spawning of the Ghost works perfectly with how I tested it with my command! Though it still doesn't seem to want to set Player 1 as the Ghost if it's <= to 0.
Add in a message telling you the number of players in the player group. (Should hopefully be 0 or somethings very wrong)
Edit: LOL I figured out the problem. Player 0 is player 1 from all players. He's the first player in that player group. (Player group indexes are from 1-16, not 0-15) what you'd need is player 2 from all players, or player 1 from all players variable.
It all works now! Thanks for your help so much! Do you mind reviewing my trigger for the final time just to get the okay that everything should work properly please?
Thank you so much again!
You probably want to change the player 2 from all players to player (random integer between 1 and number of players in all players variable) from all players variable, but other than that it looks fine.
Alright well thank you so much for the help! Would there be any possible way of contacting you through in-game if I encounter any issues if you don't mind me asking?
There seems to be an issue with the Opt System I have, I added text messages to show what is running at what time. By default all users are Opt Out from start. So in this Opt System I added a command for myself so I could become ghost (Zeratul) when I use this command.
Opt System: Opt System Force Ghost Command: Force Command
This is the result when I test it. If I do not use the command it runs 1, 3-1, and 5 which does not spawn the Catcher (Marine) or The Ghost (Zeratul) for some reason. When I use the command it runs 1, 4, and 5 which spawns the Catcher and The Ghost both for that player.
Do you mind assisting me on why it's not spawning neither the Catcher or Ghost when everyone is Opt Out by Default and why it spawns both Catcher and The Ghost when I use the command?
I can point out that that should be referring to the players opt in variable not all player variable.
You are using the wrong condition here, you shuold be using player iteration, not picked player. Also you might want to consider using the pick each player in player group function and using picked player instead of player iteration in your code
According to your code you should be spawning the ghost after 5. Is that happening?
Also according to your code, when you single player test it, it shouldn't run 4 at all.
Does your other trigger that allows you to opt in to become the ghost, set the become ghost variable to false then
This is all I have time for, I'll check again later.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
Become Ghost is default set to false and only I have access to using that command. Yes, according to the code the Ghost should spawn after 5 and if you're playing alone it should create the Ghost since they're no other players playing except for you. I currently just tested it with the changes you requested excluding changing it to Pick Each Player and it didn't spawn the Ghost or the Catcher. The triggers that were ran were 1, 3-1, 5.
Could you add a message that says "player inttotext(lv_winning_player) is the winning player" after you set the winning player variable for 3-1 and 3-2?
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
It says winning player is set to 0 after setting the variables.
hmm, so is it not creating a unit at all, or is it just creating units for the wrong player?, You might want to pick each player and check if it's human or computer, and if it's human add them to the all player variable, instead of setting it to active players.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
@willuwontu: Go
It's not creating a unit at all. Player 0 that it gets set to is Neutral.
So a couple of things
1) I made what is pretty much an exact copy of your opt system into this map to help debug it, and it spawns the units, you'll need to modify/add some of the conditions so that it function like in your map, and also you'll need to deal with the attack disable etc.
2) Right now in your map, if you try to make yourself become the ghost it's not going to spawn properly for because it doesn't know who it's spawning for (look at 3-3 in my map.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
1. Alright, I'll make the changes you added as I do believe pick each player is easier to handle so I'll get back to you on this.
2. Not sure why it wouldn't because when I use my command to become ghost it sets the trigger player of it the command to equal the Winning Player.
you set the variable used by the create unit action if you use your command, but you don't set the variable within the trigger. So if you don't make yourself the ghost, it will only spawn the ghost for player 0.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
Updated Trigger
Okay so I added what you had on your map and changed it so it actually sets player 1 to be The Ghost. Even if I did that though and it even shows me that it ran, the next text message still shows the winning player as 0 even though it was set and ran not with my command, when the Opt In Group is <= 0.
Look at the trigger your thing is telling you who Player Winner (your global variable) is, when all you set in the trigger is Winning Player (your local variable). what you need to do is add another line after you set winning player, that sets player winner = winning player.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
The spawning of the Ghost works perfectly with how I tested it with my command! Though it still doesn't seem to want to set Player 1 as the Ghost if it's <= to 0.
Updated Opt
You may want to do an "or" condition, that checks if it's <= 0, or an empty player group
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
Update Opt
Well I added the check, but it didn't change. Same thing happened; it still doesn't want to set Player 1 as the Ghost.
Add in a message telling you the number of players in the player group. (Should hopefully be 0 or somethings very wrong)
Edit: LOL I figured out the problem. Player 0 is player 1 from all players. He's the first player in that player group. (Player group indexes are from 1-16, not 0-15) what you'd need is player 2 from all players, or player 1 from all players variable.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
It all works now! Thanks for your help so much! Do you mind reviewing my trigger for the final time just to get the okay that everything should work properly please? Thank you so much again!
Final Review
You probably want to change the player 2 from all players to player (random integer between 1 and number of players in all players variable) from all players variable, but other than that it looks fine.
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)
Alright well thank you so much for the help! Would there be any possible way of contacting you through in-game if I encounter any issues if you don't mind me asking?
willuwontu #1157
Still alive and kicking, just busy.
My guide to the trigger editor (still a work in progress)