An event that triggers when a new luxury is connected to the trade network ?

r2d2

Chieftain
Joined
Aug 23, 2012
Messages
18
Hi,

I'm working on a Ancient Mediterranean Civilization Scenario (well, another one...) and I would like to make a policy that would give :c5culture: Culture when a luxury the player has never had before is connected to the trade network.

I am wondering how to do this. I guess I will have to design a lua table that will store the ID of all the luxuries the player has ever had and to check for update of the content at the beginning of a new turn. The point is : I have no idea how to store such a table.

Any help would be appreciated :)

r2d2
 
See a lua file called MishkekFeastScript.lua inside Leugi's Philistine civ. There's a resource check function that fires every turn and sees if the number of luxuries has changed positively from one turn to the next.
It uses SaveUtils, which AFAIK performs the same function as TableSaverLoader.
 
Top Bottom