Wax_Banana
New Member
- Reaction score
- 2
Hello, I have a question that is driving me crazy, thats what I wanna do, the player creates a barracks for example, in his area, and every round, the barracks will spawn a footman - level 1 for the player 6 (allied of the barracks player) in the battle area, but I made it already doing this:
Event: timer expires
Actions: pick every units in (buildings area) and do actions:
IF picked unit equal to Barracks lvl 1 do: spawn 1 footman for player 6 in (battlearea)
but i got around 50 diferent types of buildings and the script is so huge that i cant even understand it anymore...
what i was trying to make is, a script that associates a variable (BUILDINGTYPE[0] to UNITTYPE[0], being unittype[0] = footman level 1 and BUILDINGTYPE[0]= Barracks - 1
I cant associate this, please someone help!!!
Thanks
Event: timer expires
Actions: pick every units in (buildings area) and do actions:
IF picked unit equal to Barracks lvl 1 do: spawn 1 footman for player 6 in (battlearea)
but i got around 50 diferent types of buildings and the script is so huge that i cant even understand it anymore...
what i was trying to make is, a script that associates a variable (BUILDINGTYPE[0] to UNITTYPE[0], being unittype[0] = footman level 1 and BUILDINGTYPE[0]= Barracks - 1
I cant associate this, please someone help!!!
Thanks