DICE PACKS BUNDLE
Page 13 of 17 First ... 31112131415 ... Last
  1. #121
    That would be it, here's how I handle this kind of thing...

    Code:
    local onDamageRoll = nil;
    local getEffectsByType = nil;
    
    function onInit()
    
    	getEffectsByType = EffectManager5E.getEffectsByType;
    	EffectManager5E.getEffectsByType = customGetEffectsByType;
    
    	onDamageRoll = ActionDamage.onDamageRoll;
    	ActionDamage.onDamageRoll = customOnDamageRoll;
    	
    	ActionsManager.registerPostRollHandler("damage", ActionDamage.onDamageRoll);
    end
    I then call the original (stored as a local) from within my custom function. Either before or after, whichever is appropriate.
    I'm always looking for ways to enhance the fantasy grounds experience, feel free to reach out to me with suggestions.
    For a list of all my extensions look here.

    The best way to contact me regarding any of my extensions is on Discord in the #kent-mccullough-stuff channel.

  2. #122
    Cool. I'll try that. I coded my extension a long time ago when I was just learning FG and LUA, and never really went back to fix that stuff. I may need help.

  3. #123
    Let me know if there's anything you need, we'll make this work
    I'm always looking for ways to enhance the fantasy grounds experience, feel free to reach out to me with suggestions.
    For a list of all my extensions look here.

    The best way to contact me regarding any of my extensions is on Discord in the #kent-mccullough-stuff channel.

  4. #124
    Quote Originally Posted by kentmccullough View Post
    Let me know if there's anything you need, we'll make this work
    We made it work! Thanks kentmccullough!

    Try out the new versions of our extensions (Improved Critical's is now 3.0 on the first post of this thread).

  5. #125
    Just wanted to confirm, it's fixed.

  6. #126
    Quote Originally Posted by Broadcast Bard View Post
    Just wanted to confirm, it's fixed.
    Excellent!

  7. #127
    I didn't read through all 11 pages but I was wondering is the extension able to max the first damage die on a crit and roll the rest? or is that even possible?

  8. #128
    If I remember correctly you can max damage die or crit die or both.

  9. #129

  10. #130
    Quote Originally Posted by Darkrin View Post
    I didn't read through all 11 pages but I was wondering is the extension able to max the first damage die on a crit and roll the rest? or is that even possible?
    I'm assuming that you are asking if the extension can do the following:

    "If the weapon damage does 2d6, on a crit, can I max 1d6 and roll 3d6?"

    If that's what you are asking, then no, it does not do that.

    It can do the following:

    1. max weapon normal damage and roll critical damage
    2. roll weapon damage and max critical damage
    3. max both normal and critical damage
    4. ignore critical damage if target is crit immune
    5. ignore critical damage altogether


    In 5e, a critical hit doubles the damage dice that are rolled, so a crit with a standard 2d6 damage weapon does 2d6 normal damage and 2d6 critical damage - there isn't really a concept of "the first damage die of a weapon with 2 damage dice", but that's an interesting idea. If that's what you are asking, I can look into it.

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
  •  
5E Character Create Playlist

Log in

Log in