Ok, this is the scenario.
1. I buy units from a shop, and the owner is immediately changed to Neutral Extra and ordered to "Right-Click" on the buying unit, which is my hero.
To limit overbuying, I managed to reflect the food used by the units bought for the hero's owner. E.G, the food cap is 10, and I successfully used 10 after buying 5 units, assuming each unit takes up 2.
How do I remove the food used that was allocated to the player after the bought units die? There are 3 players in 2 forces each...
2. I don't really need this function, but if its possible...
How can the hero's player receive the gold that the bought units got from killing enemy units?
3. Is making new custom abilities taking more loading time than editing standard ones?
1. I buy units from a shop, and the owner is immediately changed to Neutral Extra and ordered to "Right-Click" on the buying unit, which is my hero.
To limit overbuying, I managed to reflect the food used by the units bought for the hero's owner. E.G, the food cap is 10, and I successfully used 10 after buying 5 units, assuming each unit takes up 2.
How do I remove the food used that was allocated to the player after the bought units die? There are 3 players in 2 forces each...
2. I don't really need this function, but if its possible...
How can the hero's player receive the gold that the bought units got from killing enemy units?
3. Is making new custom abilities taking more loading time than editing standard ones?