[LUA] City-States and Babarians reward influence

Nyjene

Chieftain
Joined
Feb 13, 2018
Messages
9
Greetings,

I would like to code a LUA that gives influence points to the nearest City-State from a barbarian unit that is killed or an encampment is cleared. It is attached to a UA for a Civilization.

While I'm still learning with LUA and my past experience with mountains (thanks for the help all!), I struggle to find appropriate wording. In this particular case, how I can call a City-State ? GetCityState or something like that ? Or is it rather GetMinorPlayer ? I can't find a table that lists all functions that can be use in Civ5 for LUA.
 

whoward69

DLL Minion
Joined
May 30, 2011
Messages
8,641
Location
Near Portsmouth, UK
Top Bottom