Page 1 of 9 123 ... Last
  1. #1

    [Extension] - Theogeek's Improved Critical (added icon by Glassstaff!)

    AUTHOR: Is v3.3.9 compatible.
    AUTHOR: Also Unity compatible.

    Download: ImprovedCritical.ext (rev 2.3)

    Hey all!

    So, I made this extension because I have had players be consistently disappointed in critical hits that do less damage than a standard hit. This extension only modifies the RAW to max the standard damage dice. All else is equal. For example, a half-orc with 18 strength (and no other bonuses) wielding a greatsword, if he crits, will do:

    MAX(2d6) + bonuses + 3d6 = 12 + 4 + 3d6

    The 3d6 is the crit damage: weapon dice (2d6) + the Half-Orc's Savage Attack bonus (1d6).

    That same half-orc with a greataxe does:
    Max(1d12) + 4 + 2d12 = 12 + 4+ 2d12.

    Without the extension, a half-orc critical with a greatsword might look like this:



    With the extension enabled, a half-orc critical with a greatsword might look like this:



    (Note: the output "D1=4(6)" means that the first damage dice was originally rolled as a "4" but was maxxed to a "6")

    This extension ONLY guarantees that any critical attack will do at least the maximum damage of the weapon used (i.e. it raises the floor). It does not guarantee maximum damage (unless the options are set for it to do maximum damage), and it will never do greater maximum damage than a critical without this extension.

    Have fun with it and let me know if you have any additional ideas!

    Thanks to everyone who helped (check out http://www.fantasygrounds.com/forums...-a-global-rule if you want to follow the discussion as to how this came about.)
    Jeff.

    Option settings:

    Combat Settings -> Improved Critical -> Dice to maximize = [Damage Dice | Critical Dice | Both | None] - Defaults to "Damage Dice"
    - Damage Dice = All damage dice are maxxed, critical dice are rolled
    - Critical Dice = All critical dice are maxxed (including extra critical dice from features like Savage Critical, Brutal Critical, etc.), damage dice are rolled
    - Both = All damage AND all critical dice are maxxed
    - None = revert to standard critical damage handler

    Combat Settings -> Improved Critical -> Include effect dice [No | Yes] - Defaults to "Yes"
    - No = Damage dice from effects are rolled as normal
    - Yes = Damage dice from effects (such as sneak attack) are included in the calculations above
    - Note: This option is dependent on the method chosen. For example, if the maxxing is "Damage Dice" and this is "Yes", then the normal damage and the effect damage will be maxxed.
    - Note: If the maxxing is "Both" and "Include effect dice = Yes", on a critical hit, you will do the maximum possible damage from all dice so be careful.

    Combat Settings -> Improved Critical -> Max if target has critical immunity [No | Yes] - Defaults to "No"
    - No = Effectively bypasses this extension and rolls damage for a critical hit normally if the target has the "IMMUNE: critical" effect (i.e. no maxxing of anything regardless of other options selected for this extension)
    - Yes = Maxxes normal damage on a critical hit, even if the target is critical immune, if the "Dice to maximize" setting is set to "Damage Dice" or "Both"

    Combat Settings -> Improved Critical -> Show die rolls for targets [First only | Crit immune | All ] - Defaults to "First only"
    Note: This setting is only useful when multiple targets are critically hit in one attack and there is a mix of crit immune and non-crit immune targets. Mainly, this is to help the DM understand what happens if "Max if target has critical immunity" is set to "No" since that setting will override maxxing and roll damage for targets that are immune to critical damage, which makes the damage done to a critical immune target different from the displayed roll for non critical immune targets.
    - First only = Only display the damage roll for the first target hit (this is the normal Fantasy Grounds behavior)
    - Crit immune = Display the die roll for the first target hit and all crit immune targets
    - All = Display the die rolls for all targets hit

    ---- Updated (9 December 2019) ----
    Version 2.3
    - Renamed options and selections to make it more understandable
    - Added new option "Show die rolls for targets"
    - Slightly changed output to show the original roll and the roll calculated from the Improved Critical function (for example, the output D1=4(6) means that the original roll was "4" and the extension maxxed it to a "6")

    ---- Updated (30 November 2019) -----
    Version 2.2:
    - General cleanup
    - Replaced temporary bug fix from version 2.1 with an actual fix

    ---- Updated (28 November 2019) -----
    Version 2.1:
    - BUGFIX...this works, but is temporary. It will be replaced when the code is cleaner.

    ---- Updated (21 November 2019) -----
    Version 2.0:
    - Refactor to use onDamage instead of onDamageRoll
    - Add option to roll damage dice if target is immune to critical damage (basically ignores this extension)
    - Ignore this extension if the critical hit is due to the Chaos Bolt spell

    ---- Updated (15 July 2019) -----
    Version 1.9:
    - Fix coding error in wrapper

    ---- Updated (5 July 2019) ------
    Version 1.8:
    - Add icon created by Glassstaff - thanks Glassstaff!
    - Refactor the code to make it integrate better with existing ruleset:
    - Add wrapper function to conditionally call either the ImprovedCritical handler or the onDamageRoll handler
    - Remove code copied from ActionDamage.onDamageRoll and simply call that function when necessary

    ---- Updated (4 March 2019) ------
    Version 1.7:
    - Remove REROLL since that is not in the ActionDamage.onDamageRoll this code replaces.
    - Copy-n-Paste Max damage modifier code from ActionDamage.onDamageRoll.
    - Fix bug in options settings that prevented the ActionDamage.onDamageRoll routine from running when this extension is turned off.
    - Fix bug that included Effect damage, even if it was excluded, if "Max Both" was selected.

    Hopefully this is the last of the bugs. If you find something, please let me know!

    ---- Updated (2 March 2019) ------
    Version 1.6:
    - Make output more descriptive.

    Version 1.5:
    - Add support for manual MAX damage modifier (note, HALF already works)
    - Streamline code

    ---- Updated (25 February 2019) ------
    Improved Critical (new version numbering 1.4) - Add settings item controls as follows:
    Attached Images Attached Images
    Last edited by TheoGeek; Yesterday at 04:13. Reason: v 2.1 - refactor, add option to handle target crit immunity

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Denver, Colorado, USA (for a bit)
    Posts
    24,166
    Nice work!
    FG Con 15 Fantasy Grounds Online RPG Convention - Nov. 8-10, 2019
    Register at www.fg-con.com for all the latest info.

    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!

  3. #3
    Thanks! It's pretty cool how you guys made it so extensible. That's pretty awesome!

  4. #4
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    11,371
    Well done.
    If there is something that you would like to see in Fantasy Grounds that isn't currently part of the software or if there is something you think would improve a ruleset then add your idea to the wish list http://fg2app.idea.informer.com/

  5. #5
    Had to update this to v2 - I forgot to add back in the "if critical" guard around it. It works now.

  6. #6
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    GMT -7
    Posts
    8,434
    Blog Entries
    9
    Thanks, just talked with one of my groups tonight and we all agreed to start using this. Thanks!

    Current Projects: Ultimate Undermountain (NYDUM)
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets
    DMsGuild Content: Balance Disturbed (Adventure), Dungeon Room Descriptions
    FG Product Reviews: Virtual Scribe Reviews

  7. #7
    Great job. Nice to have available. I personally love it (as a DM) when people roll two ones plus their modifier on a cirt. Hilarious. As a player... I HATE IT!
    rob2e - Join me on Discord!
    Become a Patron!
    Ultimate License Holder (owner of ALL 5E WotC material, and much more)
    Time Zone: U.S. Pacific (UTC -8 or -7; Check Local Listings)
    Follow me on Twitter
    Come watch the Twitches... twitch.tv/rob2e
    Also my YouTube Channel
    My Dungeon Master's Guild Material

  8. #8
    Does this effect NPC crits as well?

  9. #9
    What rulesets does this work for? Any built on CoreRPG?
    Ultimate License Holder GM

    Games currently Playing: AD&D, DCC RPG and D&D 5e

    Finished Projects: AD&D Ruleset
    New School NPC Maker 5E
    New School NPC Maker PFRPG - 3.5E
    Old School NPC Maker

    Current Projects:

    1) Adventure Module.
    2) Maintaining and improving released projects.
    3) C.O.O.L. Beasts
    4) Basic Fantasy Ruleset
    5) Metamorphosis Alpha Ruleset

  10. #10
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Denver, Colorado, USA (for a bit)
    Posts
    24,166
    Quote Originally Posted by vodokar View Post
    What rulesets does this work for? Any built on CoreRPG?
    Specifically for 5E.
    FG Con 15 Fantasy Grounds Online RPG Convention - Nov. 8-10, 2019
    Register at www.fg-con.com for all the latest info.

    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!

Thread Information

Users Browsing this Thread

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

Posting Permissions

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

Log in

Log in