Avaleirra
Is back. Probably.
- Reaction score
- 128
How do I put a limit on the amount of certain buildings a player has?
Thanks, +rep for solution
Thanks, +rep for solution
How do I put a limit on the amount of certain buildings a player has?
Thanks, +rep for solution
simple
event a unit beging construction of X
cond: unit being constrctued is of TYPE=Barrack
action pick every unit matching type of barrack owned by owner of "constructed unit?(the one doing the construction);
Set variable[player number of owner of triggering unit]= number of picked building
if variable[player number of ......]=X
unit remove unit being constructed
refund the price.
there is probably a few way to do this to be honest.
yes it isWhat kind of variable is INt? Is it an integer array?
what kind of variable is group?