Modding Building_ResourceQuantity

Zmarinelli

Chieftain
Joined
Dec 24, 2013
Messages
1
Does anyone know how to Mod the vanilla buildings to give resources? I wanted to try to have the Colosseum produce two horses as a trial. For some reason I can't add a new row to the Building_ResourceQuantity. I modded the shrine to give 2 horses. So I'm assuming only new buildings or only G & K buildings and above work.
 

Attachments

  • Add Resource Quantity.xml
    325 bytes · Views: 196
Building_ResourceQuantity was only added in G&K (and as such also in BNW), so you can't use it if you're only running Vanilla.
Maybe you can get it to work using Lua (and pPlayer:ChangeNumResourceTotal), though I don't know if this functionality was already there in Vanilla. (It might also be a G&K/BNW function only!)
 
If you have G&K or BNW it should work regardless of whether the building was first added by Vanilla Civ5, G&K, or BNW. More likely the file is not being activated properly (assuming as mentioned that you have G&K or BNW)

This is why it is better to always provide the mod itself (or a link to it) than isolated files or snippets of code.
 
Top Bottom