Thread: Always A Chance
-
October 5th, 2020, 05:56 #1
Always A Chance
I have a problem, one of my players got this mythic ability. Is there any way to disable auto miss for rolled "1"s?
6https://www.d20pfsrd.com/alternative-rule-systems/mythic/mythic-heroes/mythic-paths-paizo-inc/champion/champion-path-abilities/always-a-chance-ex/
Thanks
p.s. See that I can drag the attack roll. Was wondering if there is an automatic way, short of writing an extension. I talked to the player, and we decided on a re-roll instead. I think it would be more fun.Last edited by dellanx; October 5th, 2020 at 06:51.
These are the modules and extensions created and/or taken over by dellanx for PFRPG.
I had a lot of help and advice from many here at FG.
Thank You!
-
October 5th, 2020, 06:50 #2
Supreme Deity
- Join Date
- Mar 2007
- Posts
- 21,008
There's no way to disable; so the player will need to let the GM know to check the AC on 1 rolls.
Regards,
JPG
-
October 5th, 2020, 23:39 #3
These are the modules and extensions created and/or taken over by dellanx for PFRPG.
I had a lot of help and advice from many here at FG.
Thank You!
-
October 6th, 2020, 02:42 #4
Never say never when there's always a chance
I tweaked Kelrugem's FullOverlay Extension to add this for you (because that extension works with this file, is widely used, and changes are allowed)
Just add "Always a Chance (Ex)" to the Class Features list of your player's character.
EDIT: tweak code removed in favor of post #7 which also adds it for NPCs (the version attached to this #4 only adds it for PCs)Last edited by bmos; October 6th, 2020 at 12:46.
-
October 6th, 2020, 10:27 #5
bmos you are awesome. I also added your changed to Full OverlayPackage.ext
Thanks!
Always A Chance.jpg
These are the modules and extensions created and/or taken over by dellanx for PFRPG.
I had a lot of help and advice from many here at FG.
Thank You!
-
October 6th, 2020, 10:34 #6
bmos is there a way to make it work for an NPC. If was in the "SA" block?
Thanks
SA Block Always A Chance.jpgLast edited by dellanx; October 6th, 2020 at 10:44.
These are the modules and extensions created and/or taken over by dellanx for PFRPG.
I had a lot of help and advice from many here at FG.
Thank You!
-
October 6th, 2020, 12:38 #7
removed as there is a bug. see post 9 for new version.
Last edited by bmos; October 11th, 2020 at 04:17.
-
October 6th, 2020, 13:01 #8
Last edited by dellanx; October 6th, 2020 at 21:48.
These are the modules and extensions created and/or taken over by dellanx for PFRPG.
I had a lot of help and advice from many here at FG.
Thank You!
-
October 11th, 2020, 02:05 #9
I found one issue with it. A script error occurs when dragging damage for characters who forgot to target.
here's that post again with the fix:
Just put "Always a Chance" in the Class Features list for a PC or in SA (specialattacks) for an NPC.
For the future/reference/adding this to something else:
in manager_action_attack.lua
added (before function onAttack):
Code:--- This function checks for special abilities (bmos) function hasSpecialAbility(nodeChar, sSpecAbil) if not sSpecAbil then return false end local sLowerSpecAbil = string.lower(sSpecAbil) for _,vNode in pairs(DB.getChildren(nodeChar, 'specialabilitylist')) do local sSpecAbilName = string.lower(DB.getValue(vNode, 'name', '')) if string.match(string.lower(sSpecAbilName), string.lower(sLowerSpecAbil)) then return true end end return false end --- This function checks for special attacks in an NPC (bmos) function hasSpecialAttack(nodeNPC, sSpecAtk) if not sSpecAtk then return false end local sSpecAtks = DB.getValue(nodeNPC, 'specialattacks', '') if string.match(string.lower(sSpecAtks), string.lower(sSpecAtk)) then return true end return false end
Code:-- Check for Always a Chance (Ex) special ability (bmos) local nodeChar, nodeNPC local bNoFumble = false local sAaC = 'Always a Chance' if bIsSourcePC then nodeChar = ActorManager.getCreatureNode(rSource) bNoFumble = hasSpecialAbility(nodeChar, sAaC) elseif rSource then nodeNPC = DB.findNode(rSource['sCTNode']) bNoFumble = hasSpecialAttack(nodeNPC, sAaC) end
Code:elseif rAction.nFirstDie == 1 then
Code:elseif not bNoFumble and rAction.nFirstDie == 1 then
See more information in this thread:
https://www.fantasygrounds.com/forum...l=1#post557351Last edited by bmos; November 18th, 2020 at 00:07.
-
October 11th, 2020, 09:06 #10
These are the modules and extensions created and/or taken over by dellanx for PFRPG.
I had a lot of help and advice from many here at FG.
Thank You!
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks