Just as you said it. Create a global variable called Drone_Kills of type Integer.
Event: unit dies
Condition: Unit type of dying unit = Drone
Action: Modify Drone_Kills +1
If-Then-Else
If: Drone Kills = X (value you want for drone kills)
Then: Set Drone_Kills = 0
- -Create Drone at Point
Else: Do Nothing
This will create a drone for every X drones that are killed. When a new Drone is killed, X more will have to be killed before another spawns. If you want every drone after X drone killed to spawn a new one, remove the if-then-else statement, and just use the "create drone at point"
If you have some sort of specific goal or system you are trying to make; myself or someone else may have a better way for you to create it. ...If you have a more in-depth use for the system, Say; you are trying to create a system where units respawn on the map after they are killed.
Create a leaderboard that writes whatever variable or formula you want to show - I'm not sure of the exact command but it's in the Leaderboard section of the triggers. You have to use "convert integer to text" to display a number. Then create a trigger that activates whenever a drone is killed and make it re-write that leaderboard. Whenever there is a kill, your leaderboard will update to show the current figures.
so, if i understand correctly, you have it so (for instance) every 5 drones killed; the player get +1 on their scoreboard? And you want to show that players progress towards that 5 count. Do you want it to look like an experience bar; or just display the number obtained? or number needed? or number obtained out of number needed?
Anyone have a way to store kills into a variable so the total amount can be called upon later? Example:
Any Drone dies. Store the drone kill into a Drone Kill integer
If Drone Kill integer is greater than X, then spawn a unit.
Just as you said it. Create a global variable called Drone_Kills of type Integer.
Event: unit dies Condition: Unit type of dying unit = Drone Action: Modify Drone_Kills +1 If-Then-Else If: Drone Kills = X (value you want for drone kills) Then: Set Drone_Kills = 0 - -Create Drone at Point Else: Do Nothing
This will create a drone for every X drones that are killed. When a new Drone is killed, X more will have to be killed before another spawns. If you want every drone after X drone killed to spawn a new one, remove the if-then-else statement, and just use the "create drone at point"
If you have some sort of specific goal or system you are trying to make; myself or someone else may have a better way for you to create it. ...If you have a more in-depth use for the system, Say; you are trying to create a system where units respawn on the map after they are killed.
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418
@GlornII: Go
Ah! Guess I stumbled on it and over-thought it. I am making a Scoreboard system.
If X amount of Drones have been killed, then add Y to Player Z (on the scoreboard)
Drones is just an example, but they need to be stored for the reward system, which is.
If Player X has >= amount of Y points, then create Z item.
@GlornII: Go
Just did a quick test and it's working. Thanks a bunch for clearing my scatter brain up :)
@GlornII: Go
To add on this, do you know a way to show the progress of the kill count for the DroneKill variable?
The way I do it is:
Create a leaderboard that writes whatever variable or formula you want to show - I'm not sure of the exact command but it's in the Leaderboard section of the triggers. You have to use "convert integer to text" to display a number. Then create a trigger that activates whenever a drone is killed and make it re-write that leaderboard. Whenever there is a kill, your leaderboard will update to show the current figures.
so, if i understand correctly, you have it so (for instance) every 5 drones killed; the player get +1 on their scoreboard? And you want to show that players progress towards that 5 count. Do you want it to look like an experience bar; or just display the number obtained? or number needed? or number obtained out of number needed?
Skype: [email protected] Current Project: Custom Hero Arena! US: battlenet:://starcraft/map/1/263274 EU: battlenet:://starcraft/map/2/186418