moved to triggers, more suitable area for the help your are after.
As for what your needing.
You need to set up some global variables that will increase in count by 1 everytime that players gets a kill. You then need to have another trigger that runs and checks to see what value that variable is at, and when it reaches a certain number changes what unit spawns for the player.
So in all you need
2 Global Variables for each player in the game, 1 of type interger to count kills for each player, 1 of type unit to set to what unit should be spawning for each player.
you then need a couple of triggers to get through the above, give it a go yourself, if your still stuck, post back and I will post up the basic triggers for you
I cannot get it, for some reason I am not getting these variables in my head, I would love for you to help me, I am available tonight would you be willing to do a team viewer session? Email me please [email protected]
First, you have to define the variable (which is basically a container). You do that in the same place you make new triggers, which is the left pane. Once you make the variable, change its type to "Unit Type," so that it can store the type of unit you want to spawn. I also suggested changing the initial value to Marine.
Then, rather than putting a specific unit type (which is considered a Value) into your "Create Unit" action, you click the "Variable" radio button and select the variable you made.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I have got 98% of my map in galaxy editor complete but I am missing one key element. I want my maruaders to be replaced with marines after fifty kills
@KyllaSnyper: Go
moved to triggers, more suitable area for the help your are after.
As for what your needing.
You need to set up some global variables that will increase in count by 1 everytime that players gets a kill. You then need to have another trigger that runs and checks to see what value that variable is at, and when it reaches a certain number changes what unit spawns for the player.
So in all you need
2 Global Variables for each player in the game, 1 of type interger to count kills for each player, 1 of type unit to set to what unit should be spawning for each player.
you then need a couple of triggers to get through the above, give it a go yourself, if your still stuck, post back and I will post up the basic triggers for you
You should be able to just check the Player Score Value (Integer) - Enemy Units Killed rather than keeping track of kills yourself.
But yeah, you'll need a Unit Type global variable (initialize it to Marine) and then a Periodic Event trigger to create units of that type.
@nevjmac: Go
I cannot get it, for some reason I am not getting these variables in my head, I would love for you to help me, I am available tonight would you be willing to do a team viewer session? Email me please [email protected]
First, you have to define the variable (which is basically a container). You do that in the same place you make new triggers, which is the left pane. Once you make the variable, change its type to "Unit Type," so that it can store the type of unit you want to spawn. I also suggested changing the initial value to Marine.
Then, rather than putting a specific unit type (which is considered a Value) into your "Create Unit" action, you click the "Variable" radio button and select the variable you made.