Daylightend2
Chieftain
- Joined
- Oct 25, 2014
- Messages
- 4
Heya !
I'm want to be able to change the production yield of a building, I've managed to change the gold maintenance of my own custom building, which is based on a factory. But I haven't figured out how to change the yield.
My code for changing the gold maintenance
function something()
GameInfo.Buildings[177].GoldMaintenance = 9
end
177 is the ID that I gave my building. I've tested this ingame and the gold maintenance does change.
Since production yield isn't in the building table, but in the Building_YieldChanges table, I don't know how to change it.
Hope someone has experience with this and can help me, Thx in advance
I'm want to be able to change the production yield of a building, I've managed to change the gold maintenance of my own custom building, which is based on a factory. But I haven't figured out how to change the yield.
My code for changing the gold maintenance
Spoiler :
function something()
GameInfo.Buildings[177].GoldMaintenance = 9
end
177 is the ID that I gave my building. I've tested this ingame and the gold maintenance does change.
Since production yield isn't in the building table, but in the Building_YieldChanges table, I don't know how to change it.
Hope someone has experience with this and can help me, Thx in advance
