PDA

View Full Version : Effect coding IFT: to hit + 5 or greater, DMG 1d4



vaughnlannister
May 14th, 2020, 11:25
Hi guys,

I'm curious if its possible to effect code, if an attack role is +5 or more then AC, then + 1d4 damage will be applied?

I tried the following line in FGs IFT: to hit +5, DMG: 1d4

or maybe this could work? IFT: to hit [5>=], DMG: 1d4

I just don't know if FG will recognise this that the attack roll should be at least +5 higher or more then AC to apply extra damage.

Thanks for your feedback!

Zacchaeus
May 14th, 2020, 14:31
No this isn't possible. You can only use IF and IFT to test for conditions (poisoned, prone etc) or conditional operators (SIZE, TYPE, ALIGN) etc. See here for more information. https://fantasygroundsunity.atlassian.net/wiki/spaces/FGU/pages/884913/5E+Effects+for+Advanced+Automation#Special-Components

And these videos, https://www.fantasygrounds.com/forums/showthread.php?41478-Effects-Videos-for-5E

Trenloe
May 14th, 2020, 14:33
This can't be done in the effects. IF/IFT doesn't use boolean logic, and is very restricted in what it can check for (see the conditional effects section of the 5E Wiki).

You'll have to apply DMG: 1d4 manually before rolling for damage if the attack roll is 5 or higher than the AC.

vaughnlannister
May 14th, 2020, 14:57
Ok thanks guys!

TheoGeek
May 14th, 2020, 23:37
I think if you really wanted to, you could use IFT in conjunction with this:

CUSTOM () Allows for testing of user created conditions, such as in the 'Hex' or 'Hunter's Mark' spells. The condition to be tested for is added in brackets after the CUSTOM keyword. Thus the syntax would be IF: CUSTOM(condition) or IFT: CUSTOM(condition). If the 'condition' is present on the target then the function will return true.

To make a custom condition like "plus5" or something and check for that. BUT, you'd need to remember to apply that condition to the target first.