Zegangani
King
- Joined
- Oct 9, 2020
- Messages
- 898
I want to add a new table for Buildings (and maybe also for Units) that would require multiple resources cost and maintenance, ie: Buildings_Requirements (BuildingType, MainResourceType, MainResourceCosts, SecondResourceType, SecondResourceCosts, MaintenanceRecourceType, MaintenanceResourceAmount, SecondMaintenanceResourceType, SecondMaintenanceResourceAmount)
For Example: Building A requires 10 Iron and 5 Horses To be produced, 2 Niter and 2 Coal per turn for maintenance.
So my Question is: Is this possible? If Yes, do I just need to code it normaly in SQL or do I need to refer this code to Lua in order for the game to make use of it (and how can I make this in lua)?
Any Help is apreciated!
For Example: Building A requires 10 Iron and 5 Horses To be produced, 2 Niter and 2 Coal per turn for maintenance.
So my Question is: Is this possible? If Yes, do I just need to code it normaly in SQL or do I need to refer this code to Lua in order for the game to make use of it (and how can I make this in lua)?
Any Help is apreciated!