How would I make a trigger that would cause multiple units get killed before you get resources for them? I couldn't figure that out in the data editor and I need help doing it in the trigger editor.
Well what I was trying to do is that if 5 marines get killed, the player gets 1 gas instead of 5 gas because the kill resource gives you a resource amount for each individual unit killed
Easiest way to go with this would be creating a global variable of type integer, that increases by 1 every time you kill a marine, and when it reaches five, it adds 1 gas and goes back to 0.
Easiest way to go with this would be creating a global variable of type integer, that increases by 1 every time you kill a marine, and when it reaches five, it adds 1 gas and goes back to 0.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
How would I make a trigger that would cause multiple units get killed before you get resources for them? I couldn't figure that out in the data editor and I need help doing it in the trigger editor.
why?
"unit- kill recource" will only be used if enemy kill the unit. why would u want to kill the unit, before it got killed? :D
The logic is killing me.
@avogatro: Go
Well what I was trying to do is that if 5 marines get killed, the player gets 1 gas instead of 5 gas because the kill resource gives you a resource amount for each individual unit killed
Easiest way to go with this would be creating a global variable of type integer, that increases by 1 every time you kill a marine, and when it reaches five, it adds 1 gas and goes back to 0.