R
Renjer
Guest
I know this stuff sounds rather basic, but I'm just a beginner so I'm asking for help.
I want to create something like maths here, it's like if the player clicks on a peasant then he clicks on a big generated "chicken" on the map, I want to kill his peasant. Then if he does the same thing to another peasant, I also want to kill the peasant, but at the same time I want to generate a peon for him. How do I do that? I've used regions, and variables (unit group array) but I can't get it. I also have other combinations too such as rifleman + peasant or footman + rifleman + peasant. How do I put all these combinations in variables to simplify my code?
I want to create something like maths here, it's like if the player clicks on a peasant then he clicks on a big generated "chicken" on the map, I want to kill his peasant. Then if he does the same thing to another peasant, I also want to kill the peasant, but at the same time I want to generate a peon for him. How do I do that? I've used regions, and variables (unit group array) but I can't get it. I also have other combinations too such as rifleman + peasant or footman + rifleman + peasant. How do I put all these combinations in variables to simplify my code?


