-
May 26th, 2019, 23:27 #1
Question about custom effects and IF: and ! functions
I want to create a custom condition "goading" and use the not (!) function to test for it using the IF: function. I am not sure its possible and my OCD is keeping me awake
First, can ! be applied to IF:, as in IF!: or IFT!:, so that if the result is not true it will be skipped? If possible, what is the correct syntax?
Next can ! be applied to a custom condition, as in !(CUSTOM)goading? Am I creating and/or using the custom condition wrong?
An example that doesn't work..Goaded;IFT!: (CUSTOM)goading;DISATK while (CUSTOM)goading is applied the PC I want to exclude.
Any help is appreciated!Last edited by Dtoad; May 27th, 2019 at 00:06.
-
May 26th, 2019, 23:42 #2
Nope. The only time I know of that not (!) can be applied is on the conditions themselves.
So, instead you have to do a !consition1, !condition2, etc.
See the example for Fiendish Resistance on the wiki; https://www.fantasygrounds.com/wiki/...php/5E_Effects
Problems? See; How to Report Issues, Bugs & Problems
On Licensing & Distributing Community Content
Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
Note, I am not a SmiteWorks employee or representative, I'm just a user like you.
-
May 26th, 2019, 23:53 #3
The custom effect tests for something which is sitting on a target. So the syntax is IFT: CUSTOM (word) where word is what is being tested for. So if the target has an effect of ‘hex’ on it then you can test for it using IFT:CUSTOM (hex).
If in that example the target does have hex on it then the function returns true otherwise it returns false.
The pling (!) is used as a logical not, such as in the case where various NPCs have resistance to non magical damage. So damage resistances slashing, bludgeoning, !magic will resist slashing and bludgeoning damage except if the weapon is magical.
You can’t use the pling with an effect keyword such as IFT.Last edited by Zacchaeus; May 27th, 2019 at 00:16.
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 here https://www.fantasygrounds.com/featu...rerequests.php
-
May 27th, 2019, 00:06 #4
Thank You! This was driving me crazy!
Maybe now I can sleep....lol
-
May 27th, 2019, 00:38 #5
Or not...
Can the pling be used with CUSTOM(hex), or only the conditions and resistances which are hard coded?
-
May 27th, 2019, 00:54 #6
It can’t be used with the custom keyword. IF and IFT are binary tests, either positive or negative.
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 here https://www.fantasygrounds.com/featu...rerequests.php
-
May 27th, 2019, 01:45 #7
Good to know, Thank You!
Hmmm, could an extension hard code more conditions? Or make IF: actionable if it returns as false?Last edited by Dtoad; May 27th, 2019 at 02:43.
-
May 27th, 2019, 10:11 #8
Almost anything is possible with an extension.
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 here https://www.fantasygrounds.com/featu...rerequests.php
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks