1. Dismiss Notice
  2. GOG.com logo

    Thanks to YOUR votes, GOG.com now sells:
    - Sea Dogs - Sea Dogs: Caribbean Tales
    - Sea Dogs: City of Abandoned Ships

    Vote now to add Pirates of the Caribbean to the list!

    Dismiss Notice
  3. Under the Crossbones Podcast

    A Pirate Podcast with Interviews
    Music, Comedy and all things Pirate!

    - Episode Guide - About - Subscribe -
    - Twitter - Facebook - iTunes - Android -
    - Youtube - Fill the Coffers -

    Dismiss Notice
  4. New Horizons logo

    Quick links for PotC: New Horizons
    - Download latest version
    - Wiki - FAQ - Report bugs here
    - ModDB profile

  5. GOF logo

    Quick links for AoP2: Gentlemen of Fortune 2
    - Downloads and info
    - Historical Immersion Supermod
    - ModDB Profile

Dismiss Notice
New to the forum?
Please take a moment to read our Welcome Message and Forum Rules.

Discussion Dead Man's Chest Storyline

Discussion in 'Hoist the Colours (Jack Sparrow)' started by Jones, Jun 4, 2017.

  1. Jones

    Jones Sailor

    Joined:
    Apr 16, 2017
    Messages:
    137
    Gender:
    Male
    Really? Is there a code for this?:shock
     
  2. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    I think this should do it:
    Code:
    RemoveCharacterGoods(Pchar, GOOD_BALLS, GetCargoGoods(Pchar, GOOD_BALLS));
    
     
    Jones likes this.
  3. Grey Roger

    Grey Roger Sea Dog Staff Member Storm Modder

    Joined:
    Feb 12, 2007
    Messages:
    6,383
    Better would probably be:
    Code:
    RemoveCharacterGoods(Pchar, GOOD_POWDER, GetCargoGoods(Pchar, GOOD_POWDER));
    That takes out all the player's gunpowder instead. Then have a dialog, questbook entry or something saying that all the powder is wet, it will take some time to dry, but right now the only way you can attack that ship is by summoning the Kraken. So now the player doesn't feel cheated because all his ammo has disappeared for no apparent reason, and he gets a hint as to what you want him to do.
     
    Jones and Pieter Boelen like this.
  4. Jones

    Jones Sailor

    Joined:
    Apr 16, 2017
    Messages:
    137
    Gender:
    Male
    @Grey Roger I solved. The problem was in HP. I have inserted the number of HP smaller than the original one.:modding
     
  5. Jones

    Jones Sailor

    Joined:
    Apr 16, 2017
    Messages:
    137
    Gender:
    Male
    Does anyone know what these two errors refer to?
    Code:
    RUNTIME ERROR - file: Towns\Towntable.c; line: 165
    missed attribute: island
    RUNTIME ERROR - file: Towns\Towntable.c; line: 165
    no rAP data
    
    This happens as soon as I go to Tortuga port, the game crashes
     
  6. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    What's in Towntable.c on line 165?
     
  7. Jones

    Jones Sailor

    Joined:
    Apr 16, 2017
    Messages:
    137
    Gender:
    Male
    163: //town-store interoperability
    164: string GetTownIDFromGroup(string group)
    165: {
    I checked back to see if I wrote well "tortuga" wherever you serve, and I did not notice any mistakes
     
    Last edited: Jul 1, 2017
  8. Pieter Boelen

    Pieter Boelen (Not So) Old Seadog Staff Member Administrator Storm Modder Hearts of Oak Donator

    Joined:
    Nov 11, 2004
    Messages:
    66,575
    Gender:
    Male
    Occupation:
    Maritime Research: Project Engineer (Analysis)
    Location:
    Wageningen, The Netherlands
    Can't think of any obvious reasons right now, I'm afraid.
    Maybe next week when I'm near my game files again or @Grey Roger is around.
     

Share This Page