Add resources income
Hello everybody, and happy new year 2020 !
I am working on a mod for Wargus to modify Warcraft II gameplay (add new upgrades to buy, put shield/sword/axe upgrades on 5 levels instead of 2, possibility to upgrade guard/cannon towers to increase its strengh up to have a level 3 tower, the possibility to upgrade spells...), but there is something I can't do.
Can someone tell me how to add the possibility for a building to produce resources over time ?
If I want for example that the town hall produces 1 gold every 5 seconds, what should I add in scripts > human > units in the town hall section ?
I already know for example that if I add a line with "RegenerationRate = 1,", I give to the unit/building the capacity to regenerate Hitpoints, but if I want resources over time ?
I am sure there is a way to do it, I noticed that in the "For the Motherland" campaigns, we earn permanently resources over time (100 gold, 50 wood and 50 patrol every 30 steps, to be exact), but i can't find any trace of that in files. I tried everything but nothing works (when I add something that the computer can't read, Wargus does not start, but it works again if I delete it).
Can anybody help me ?
Question information
- Language:
- French Edit question
- Status:
- Answered
- For:
- Wargus Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Remi Dhellemmes for more information if necessary.