How does one go about making structures "produce" or "grant" resources to the player (through Triggers)?
For Example I want a Structure that when constructed will "produce" say 10 terrazine every minute and the more of that structure you have it stacks the resource gained.
Note: I used to know how to do this but too much time passed and I lost the map files
: Here's a tutorial that explains how to swap resources in data. You should be able to figure out a solution for you with this.
It can also be done in triggers, but I think data would be better. For triggers you'd want to use a "pick each unit in unit group" to pick all the unit type of the structure you want. You probably want to specify that it isn't under construction. Then underneath that loop you'd use "Modify player property".
How does one go about making structures "produce" or "grant" resources to the player (through Triggers)?
For Example I want a Structure that when constructed will "produce" say 10 terrazine every minute and the more of that structure you have it stacks the resource gained.
Note: I used to know how to do this but too much time passed and I lost the map files
: Here's a tutorial that explains how to swap resources in data. You should be able to figure out a solution for you with this.
It can also be done in triggers, but I think data would be better. For triggers you'd want to use a "pick each unit in unit group" to pick all the unit type of the structure you want. You probably want to specify that it isn't under construction. Then underneath that loop you'd use "Modify player property".
Thanks, though only the Trigger option worked, the Data one never functioned.
still I got what I needed out of it, anyway.