1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

[LUA] City-States and Babarians reward influence

Discussion in 'Civ5 - SDK / LUA' started by Nyjene, May 2, 2021.

  1. Nyjene

    Nyjene Chieftain

    Joined:
    Feb 13, 2018
    Messages:
    9
    Gender:
    Male
    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.
     
  2. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,537
    Location:
    Near Portsmouth, UK
  3. Nyjene

    Nyjene Chieftain

    Joined:
    Feb 13, 2018
    Messages:
    9
    Gender:
    Male
    Thanks, that's the kind of thing I was looking for.
     
  4. Serp

    Serp King

    Joined:
    Apr 1, 2015
    Messages:
    650

Share This Page