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

Increasing trade routes available

Discussion in 'Civ5 - SDK / LUA' started by ispanets, Mar 26, 2014.

  1. ispanets

    ispanets Warlord

    Joined:
    Apr 1, 2013
    Messages:
    135
    Location:
    Moscow
    Hi Guys!

    Is there any lua function to set/change/increase... the trade routes available for a civ? I have found player:GetNumInternationalTradeRoutesAvailable(), but I don't see anywhere a similir player:SetNumInternationalTradeRoutesAvailable()...

    Anyone was implemented this and can help?

    Thanks.

    Khose
     
  2. whoward69

    whoward69 DLL Minion

    Joined:
    May 30, 2011
    Messages:
    8,411
    Location:
    Near Portsmouth, UK
    Unlike most things, the number of trade routes are not stored per player (and changed as techs/buildings are acquired) but calculated every time from the techs known to a player and the buildings they own, modified by their trait. Hence there is no Set/Change for the number of trade routes available within the DLL and hence there is no corresponding Lua API.

    So the only way to increase trade routes for a player is to give them (multiples of) a hidden building that adds a trade route
     
  3. ispanets

    ispanets Warlord

    Joined:
    Apr 1, 2013
    Messages:
    135
    Location:
    Moscow
    Thank you very much, whoward!
     

Share This Page