• New Horizons on Maelstrom
    Maelstrom New Horizons


    Visit our website www.piratehorizons.com to quickly find download links for the newest versions of our New Horizons mods Beyond New Horizons and Maelstrom New Horizons!

New Horizons Perk Locking

  • Views Views: 1,465
  • Last updated Last updated:

Navigation

      Capturing Colonies
         A girl won in a card game
         Artois Voysey (Quest)
         Cargo for Thomas O'Reily
         Church Protection
         Edgar Attwood Adventures
         Escort Vigila Mendes Ship
         Hard Labors of an Assassin
         Help The Boatswain
         Help the Church
         Help the Lady
         Hire A Sailor - Rys Bloom
         Nigel Blythe (Quest)
         Patric and the Idols
         Rescue Peter Bloods Crew
         Sabine Matton
         Saga of the Blacque Family
         Saving Toff's Daughter
         Search for Peter Bloods Ship
         Silver for Cartagena
         Sink the Pirate Corvette
         Sinking The Vogelstruijs
         Smuggling for Thomas O'Reily
         The Silver Train
         Zaid Murro's Problems
      Smuggling
      Treasure Quests
         Lost Treasure on Cuba
         Lost Treasure on Guadeloupe
  • Locking/Unlocking Perks
    Go back to modding

    Since BETA 3.2 Perks can be locked. You can find a boolean statement named ALLOW_LOCKED_PERKS in InternalSettings which states if perks can be locked or not.

    Locking Perks
    To lock a perk go to perks_init and add the following line (change the name ofcourse), this will lock the perk for all storylines:
    Code:

    ChrPerksList.list.PERKNAME.locked = true;
    Say you want to lock a perk during a quest or at the start of your storyline you can use the following command:
    Code:

    LockPerk(PERKNAME)
    If you want a special description when the perk is locked go to the file RESOURCE\INI\TEXTS\ENGLISH\AbilityDescribe.txt there you can add a field like this:
    Code:

    perkBasicLandOwnerLocked
    {
    Gain a gouvernors trust to enable this Perk. (The crop yield is 50% higher on the character's estates)
    }
    For now this is perk specific. This might change lateron if people need this.

    Checks
    If you want to know if a perk is locked or not you can use the following command:
    Code:

    CheckPerkLocked(PERKNAME)
    It will return a TRUE value if the perk is locked.

    Unlocking Perks
    When you want to unlock the perk use the command:
    Code:

    UnlockPerk(PERKNAME);
Back
Top