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] How to count of player's trade routes

Discussion in 'CivBE - Modding Help & Mod Creation' started by Protok St, Nov 6, 2020.

  1. Protok St

    Protok St Chieftain

    Joined:
    Jul 7, 2018
    Messages:
    73
    Gender:
    Male
    Location:
    Univesrity of Planet
    Hi

    How to count of player's trade routes?

    There is 2 funcs in BERT:
    GetNumActiveInternationalTradeRoutes()
    GetNumActiveStationTradeRoutes()

    I can make a sum from them, but where is function for domestic routes?
     
  2. Protok St

    Protok St Chieftain

    Joined:
    Jul 7, 2018
    Messages:
    73
    Gender:
    Male
    Location:
    Univesrity of Planet
    Function
    GetNumActiveInternationalTradeRoutes()
    returns not an Active International Trade Routes, but just a number of Trade Convoy Units the player has.
     

Share This Page