1. #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.

  2. #2
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    GMT -7
    Posts
    7,466
    Blog Entries
    9
    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

    Current Projects: Ultimate Undermountain (NYDUM)
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets
    DMsGuild Content: Balance Disturbed (Adventure), Dungeon Room Descriptions
    FG Product Reviews: Virtual Scribe Reviews

  3. #3
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    10,617
    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 to the wish list http://fg2app.idea.informer.com/

  4. #4
    Thank You! This was driving me crazy!

    Maybe now I can sleep....lol

  5. #5
    Or not...

    Can the pling be used with CUSTOM(hex), or only the conditions and resistances which are hard coded?

  6. #6
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    10,617
    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 to the wish list http://fg2app.idea.informer.com/

  7. #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.

  8. #8
    Zacchaeus's Avatar
    Join Date
    Dec 2014
    Location
    Scotland
    Posts
    10,617
    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 to the wish list http://fg2app.idea.informer.com/

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Log in

Log in