FG Spreadshirt Swag
  1. #1

    PF Ruleset Bug with Dex Effect and CA/GRANTCA

    Say you have a creature with 20 AC and 20 Flat-footed AC.

    If you apply a +10 Dex bonus to them (DEX: 10) what SHOULD happen is the creature now has 25 AC and 20 Flat-footed AC.

    What DOES happen is that the creature has 25 AC and 15 Flat-footed AC.

    Either it's zeroing out the Dex bonus and then subtracting it anyway or it's just flat out subtracting it twice, don't know which.

    This means if you give the creature a +100 Dex bonus its AC actually goes negative when flat-footed.
    Last edited by LordBalkoth; January 7th, 2019 at 18:08.

  2. #2
    Confirmed.

    I tried commenting out line 762 of 3.5E\scripts\manager_actor2.lua. Seems to have fixed it. Somewhere else in that script, it's already being accounted for. Possibly because the target AC is already the flatfooted AC and the DEX bonus doesn't need to be subtracted.


    Classic & Unity Ultimate License Holder


  3. #3
    Quote Originally Posted by swbuza View Post
    Possibly because the target AC is already the flatfooted AC and the DEX bonus doesn't need to be subtracted.
    Possibly if they're negating the effect and THEN subtracting the Dex bonus AC. If there's a way to view the actual code for this I could figure it out, but not sure how to do that.

  4. #4
    The rulesets directory contains.pak files that are just renamed zip files. If you unzip the file to a directory of the same name, the directory will take precedence over the .pak file. That way you can make changes to the files in the directory without changing the original .pak. For this particular issue I commented a line in 3.5E\scripts\manager_actor2.lua.


    Classic & Unity Ultimate License Holder


  5. #5
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,402
    Quote Originally Posted by swbuza View Post
    The rulesets directory contains.pak files that are just renamed zip files. If you unzip the file to a directory of the same name, the directory will take precedence over the .pak file. That way you can make changes to the files in the directory without changing the original .pak.
    Be aware that if you do this the ruleset in the directory will always override the downloaded .pak file - meaning it will override future ruleset updates. So keep this in mind - we often have people reporting that some new functionality isn't working or they're suddenly getting errors, and it turns out they had an unpacked ruleset from a previous version.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  6. #6
    I believe that lines 762, 767, and 772 are applying the nBonusStat value to nFlatFootedMod in error. These lines will ultimately augment nBonusSitutational. And line 856 calculates the nDefenseEffectMod using both nBonusStat and nonBonusSituational; the latter of which already contains nBonusStat by virtue of those three lines.

    But I'm not a programmer, so I could be totally wrong.


    Classic & Unity Ultimate License Holder


  7. #7
    This was fixed, thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in