A little help for a new civ 5 modder please

Opusegg

Chieftain
Joined
Aug 17, 2011
Messages
31
I’m a game designer with a few months between jobs. I thought that was the perfect chance to learn civ 5 modding. I’ve got my first custom civ ready to go minus a few issues I was hoping to get help with.

The major issue is the leader trait. I have a good one in place, but it’s not what I wanted originally. I wanted a trait that granted food gains with kills, the way a few leaders grant culture per kill.

I found the <CultureFromKill>, but no such luck for <FoodFromKill>. I tried <FoodFromKill> will no errors, but, as expected, nothing happened. Can anyone point me in the right direction for writing a FoodFromKill lua script or is that far beyond the reach of a novice programmer?

The other small issue I’m having is a UI one. I’ve added a custom building that grants food, but subtracts from culture. The culture subtracts just fine but the building description reads:

Culture: + -3

Anyone have a quick fix for removing the ‘+’ without making my civ incompatible with the overhaul mods?

Thanks in advance!
 
Not done it myself, but I think it is possible. You need to be more specific at which city the food will go to (Capital? Nearest city?) and its effect (permanent or one-shot)
I would check "SerialEventUnitDestroyed" event and when a unit gets destroyed set the city:foodDifference to a higher level.
Great idea for a cannibalism scenario...
 
Awesome, thank you for the reply. I'm going to have a little time tomorrow to work so I'll look into it and let you know how it goes. The idea spawned from an undead civ, the UT being dead units come back as zombie population, but it would work nicely for cannibalism with different parameters.
 
Back
Top Bottom