I have a research in my map that upgrades the lumbering on your workers but I have a problem.
To make it perfect I want it to be like this:
1. You finishes the research
2. Your units gets ordered to return their current lumber
3. When they've returned the lumber their ability gets upgraded and they are assigned to a new target..
I know how to do the assign new stuff, but how would I do the return and then upgrading when they've returned? (I don't want the player to lose any lumber because they've researched this.)
Working pieces of code would make wonder as a help.
Edit - The best thing would be if I could do this without any events since then the trigger would be forced to run though out the entire game and cause more load than it ever should do.
To make it perfect I want it to be like this:
1. You finishes the research
2. Your units gets ordered to return their current lumber
3. When they've returned the lumber their ability gets upgraded and they are assigned to a new target..
I know how to do the assign new stuff, but how would I do the return and then upgrading when they've returned? (I don't want the player to lose any lumber because they've researched this.)
Working pieces of code would make wonder as a help.
Edit - The best thing would be if I could do this without any events since then the trigger would be forced to run though out the entire game and cause more load than it ever should do.