PDA

View Full Version : Automating Improved Critical (Critical on 19 and 20) for Player characters in 5E



Moriarity
March 4th, 2020, 15:04
Can we automate the Improved Critical Feature (Critical on 19 and 20) in 5E for player characters?

I understand that you can easily do this for NPCs by adding the Trait 'Improved Critical'; I've tested this and it works fine. But how can we do this for players who take on the Fighter class Champion, Improved Critical Feature? I've tried dropping the feature onto the abilities tab of the character sheet but it adds "Improved Critical" to the characters "Features" and Not the Traits; I've tried adding a new Trait called "Improved Critical" but neither have any effect when the player rolls a 19 on the attack roll.

Any ideas:confused:?

Trenloe
March 4th, 2020, 15:21
See the fifth bullet point here: https://fantasygroundsunity.atlassian.net/wiki/spaces/FGU/pages/884824/5E+Character+Sheet#Weapons

Moriarity
March 4th, 2020, 16:04
Yes, that works - but having to modify every weapon that character uses isn't ideal, is it? I would be far better if PC characters worked in the same manner as for NPCs i.e. simply add an "improved critical" Trait to the character sheet. Not really what I had hoped for but at least it works so, thanks...

Trenloe
March 4th, 2020, 16:10
The fifth bullet point reads:

If you click the magnifying glass to the right of the 'WEAPONS' header line you open a dialog where you can edit the crit range of melee and ranged weapons and specify additional dice for melee and ranged weapons on a critical hit. Note that this will apply to all weapons of the type selected and not just single weapons which might have such special abilities.

Moriarity
March 4th, 2020, 19:10
I had to use the description in your post to search the page in your link. Crikey, that little gem is well hidden! That works brilliantly, thanks again for you help.

Venia
March 9th, 2020, 01:07
It would be nice to have it supported via effects for abilities such as Hexblade's Curse.

Zacchaeus
March 9th, 2020, 02:01
It would be nice to have it supported via effects for abilities such as Hexblade's Curse.
Hi Venus, welcome to FG.

You can add an effect of CRIT: x as an effect to a player. You can’t have it on all the time though so you’d need to apply it only when it is required.

Iggi
March 29th, 2020, 13:10
Edit: Figured it out. I coded the first option, activated it and drug the weapon attack to a hot key. Iterated (clicked the button) until it rolled both a NAT 20 and 19. Option one is the answer.


So would the Oath of Heroisms Legendary Strike look like

Legendary Strike;CRIT:19

or

Legendary Strike;CRIT:19-20

Zacchaeus
March 29th, 2020, 22:01
Crit: 19

temvaryen
March 30th, 2020, 18:21
hello,
is it possible to change the crit rules ?
I would play Joan of Arc RPG who is a 5E SRD based game.
In this game when you rolled a CRIT (nat 20) , all the weapons are doing an explosive D10 to damage.
thx

LordEntrails
March 30th, 2020, 19:39
hello,
is it possible to change the crit rules ?
I would play Joan of Arc RPG who is a 5E SRD based game.
In this game when you rolled a CRIT (nat 20) , all the weapons are doing an explosive D10 to damage.
thx
You could write an extension, or just add this to every damage roll either in the action or add an effect to each creature on the CT;
DMG: 1d10, critical

See; https://www.fantasygrounds.com/wiki/index.php/5E_Effects

Trenloe
March 30th, 2020, 19:41
To do "explosive" rolls in 5E you'll need to write an extension.

temvaryen
March 30th, 2020, 20:35
To do "explosive" rolls in 5E you'll need to write an extension.

Thanks

marcusrife
April 1st, 2020, 19:48
Why does CRIT: 19 not work with IFT: CUSTOM ()?

LordEntrails
April 1st, 2020, 21:04
Why does CRIT: 19 not work with IFT: CUSTOM ()?
Example?

IFT is "If Target" A target can not be a Crit, it has to be a PC/NPC attribute, not an attribute of the attack roll itself. If I understand without an example...

Zacchaeus
April 1st, 2020, 21:23
Why does CRIT: 19 not work with IFT: CUSTOM ()?

See here for an explanation of what you can do with IF and IFT https://fantasygroundsunity.atlassian.net/wiki/spaces/FGU/pages/884913/5E+Effects+for+Advanced+Automation#A-Note-on-IF-and-IFT

The sixth video in this series gives you some further details and practical examples https://www.fantasygrounds.com/forums/showthread.php?41478-Effects-Videos-for-5E

marcusrife
April 1st, 2020, 22:23
I know how to use it. My point is if IFT: CUSTOM(Cursed); DMG: 4 works applied to your self with Cursed applied to the target then why doesn't IFT: CUSTOM(Cursed); CRIT: 19 work with Cursed applied to the target. I have tried it. The DMG one works the CRIT doesn't.

Zacchaeus
April 1st, 2020, 22:27
Because CRIT isn't a targetted effect - which is fully explained in the link to the wiki. If you look at the list of keywords in the Wiki if you see a 'T' next to the effect in the final box it can be used in a CUSTOM targetted effect; otherwise it can't.

marcusrife
April 1st, 2020, 22:38
Ok. But what I am saying is why is it not a targeted effect? It seems to me the coding language should be able to understand my logic above. It would be more user friendly. I am saying it should be that way.

LordEntrails
April 2nd, 2020, 05:46
FG doesn't do what you want. If you would like to request a feature enhancement, add it to the wishlist (link in Mr/z Z's signature) and other users can vote upon it and SmiteWorks can then evaluate it for future implementation.

Fauberoptic
May 27th, 2020, 01:17
The fifth bullet point reads:

thanks! I had to google this last night and came right here... works perfectly! :)

Bilby Briarfoot
October 9th, 2020, 07:41
I just started trying out this coding business today. I am trying to create Foe Hunter ability that reads +1 damage and crit on 19-20 vs. orcs and half orcs. The damage seems to work (I impressed myself with that! I'm a noob give me a break) but crit fails. I read through the forum and the effects page. Am I correct that this is currently not an achievable script?
IFT: Type orc; DMG+1; CRIT: 19 [SELF]

Zacchaeus
October 12th, 2020, 21:20
You are correct in that you cannot use the CRIT keyword in an IFT statement - see posts above for the reasons.

Your effect should be IFT: TYPE(orc); DMG: 1

webdove
November 12th, 2020, 23:04
I am puzzled by one thing. "Hexblade's Curse; IFT: custom(HexCurse); DMG: 5" works fine. "Hexblade's Curse; IFT: Custom(HexCurse); CRIT: 19" does not work. "Hexblade's Curse; CRIT: 19" works, but lacks the conditional. Do you know why a conditional expression before "CRIT:" causes it to fail?

LordEntrails
November 12th, 2020, 23:30
I am puzzled by one thing. "Hexblade's Curse; IFT: custom(HexCurse); DMG: 5" works fine. "Hexblade's Curse; IFT: Custom(HexCurse); CRIT: 19" does not work. "Hexblade's Curse; CRIT: 19" works, but lacks the conditional. Do you know why a conditional expression before "CRIT:" causes it to fail?
Capitalization is not consistent with your two effects. I would start there. (i.e. Custom vs custom)

Zacchaeus
November 13th, 2020, 01:00
I am puzzled by one thing. "Hexblade's Curse; IFT: custom(HexCurse); DMG: 5" works fine. "Hexblade's Curse; IFT: Custom(HexCurse); CRIT: 19" does not work. "Hexblade's Curse; CRIT: 19" works, but lacks the conditional. Do you know why a conditional expression before "CRIT:" causes it to fail?
Read the posts above, CRIT is not a targeted effect therefore it will not work in an IFT statement. The correct syntax fir the damage is IFT: CUSTOM(hex); DMG:[CHA].

webdove
November 13th, 2020, 18:18
It is a perplexing programming choice to have IF: work with all effect components, but IFT: only work with components that are listed as having the (T) tag in the notes. It does not seem to say that in the atlassian wiki, but more importantly it would be much more useful if it controlled all effect components. I offer that as a programming suggestion.

LordEntrails
November 13th, 2020, 19:52
Enhancement requests are best tracked
On the wish list. Link in mr Zs sig.

webdove
November 13th, 2020, 21:31
Roger that. Thank you.

Kelrugem
November 15th, 2020, 00:15
It is a perplexing programming choice to have IF: work with all effect components, but IFT: only work with components that are listed as having the (T) tag in the notes. It does not seem to say that in the atlassian wiki, but more importantly it would be much more useful if it controlled all effect components. I offer that as a programming suggestion.

IFT needs the target/opposing actor as information for the code to work, and only targetable effects use that information in the code, hence, why other type of effects won't work with IFT :) (sometimes the target information is not accessible in certain parts of the code)

(not sure about 5e, but conditions with (T) might not work in that way, too, at least in 3.5e/PF1 they are an exception to that rule)

IF just needs the actor and you always have the actor information in the code, therefore IF works with all effects :)

EDIT: Not saying that it is impossible to add target information to existing effects :D Just an explanation about what is going on in the code and why (T) gives a hint about effects working with IFT :)

Nemesis Unbound
August 30th, 2022, 06:36
Duplicate.

Nemesis Unbound
August 30th, 2022, 06:38
Hi Venus, welcome to FG.

You can add an effect of CRIT: x as an effect to a player. You can’t have it on all the time though so you’d need to apply it only when it is required.

Does this work in 3.5/Pathfinder 1E? I've been trying to automate increased critical range effects but not having any luck.

LordEntrails
August 30th, 2022, 15:13
Does this work in 3.5/Pathfinder 1E? I've been trying to automate increased critical range effects but not having any luck.
I don't know. You can check the 3.5/PF Effects wiki (https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996643237/PFRPG+and+3.5E+Effects) page or try searching or asking in the 3.5 sub-forum (https://www.fantasygrounds.com/forums/forumdisplay.php?63-3-5E) or PF sub-forum (https://www.fantasygrounds.com/forums/forumdisplay.php?114-Pathfinder-1st-Edition). Most of use in the 5E forums don't also play 3.5/PF (or at least I haven't in years).

Nemesis Unbound
August 30th, 2022, 17:18
I don't know. You can check the 3.5/PF Effects wiki (https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996643237/PFRPG+and+3.5E+Effects) page or try searching or asking in the 3.5 sub-forum (https://www.fantasygrounds.com/forums/forumdisplay.php?63-3-5E) or PF sub-forum (https://www.fantasygrounds.com/forums/forumdisplay.php?114-Pathfinder-1st-Edition). Most of use in the 5E forums don't also play 3.5/PF (or at least I haven't in years).

Thanks for the reply. I posted here because all of my searches so far led to posts on the 5E forums. I had already taken a look at 3.5/Pathfinder Wiki and did not see anything about a CRIT: X effect format. However I looked at the 5E Wiki as well and did not see that format listed there either.

So as far as I can tell the Wikis do not list this coding for either ruleset but a few posters have mentioned it working e.g. CRIT: 19 for a Critical Range of 19-20.

Zacchaeus
August 30th, 2022, 17:28
Make sure you are looking at the correct Wiki here https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996642031/5E+Effects+for+Advanced+Automation As you can see the CRIT effect is detailed there.

I think this is specific to the 5e ruleset and isn't something but into any other ruleset or to CoreRPG (on which both pf1 and 5e are based). So I doubt it will work in 3,5.

Kelrugem
August 31st, 2022, 07:52
There is no CRIT effect for 3.5E/PF1 :)

Nemesis Unbound
September 10th, 2022, 02:54
Thank you for the replies! I'll just keep an eye out for the die roll and have players roll crit damage when appropriate.

Artimos
December 2nd, 2023, 08:27
See the fifth bullet point here: https://fantasygroundsunity.atlassian.net/wiki/spaces/FGU/pages/884824/5E+Character+Sheet#Weapons

This link is not longer good, been trying to find a solution

Zacchaeus
December 2nd, 2023, 08:43
This link is not longer good, been trying to find a solution

Here it is https://fantasygroundsunity.atlassian.net/wiki/spaces/FGCP/pages/996641917/5E+Character+Sheet#Weapons