TALES of the VALIANT
  1. #1

    Code for adding caster level damage capped? Is it possible?

    Hi guys,
    I am in the process the creating a module for FFd20 stuff, starting with spells. I am currently in the process of coding and improving the automation for the spells as best as possible before I release it all to the public. I have an idea for automating the following but can't seem to get it down.

    Here is the spell text:
    "The target for this spell requires the Drenched status effect to be in effect. Once you cast this spell, the Drenched status effect is removed and the creature is surrounded by a globe of swirling water, taking water damage equal to your caster level (maximum 5) plus your Intelligence modifier per round until freed. The target can break free by spending 1 round and making a DC 15 Swim check to swim free."

    Using some wonderful extensions from some wonderful extension artists I have a rough idea of what it needs to look as but I don't know how to cap the damage added by CL in a line of text, thus far I have something like this:

    "Engulf; IFT: CUSTOM(Drenched); DMGO: [CL] [INT] water"

    This alone works but as stated by the spell, the CL needs to cap at +5. Is there a way to add this conditional in this line?

  2. #2
    Posted in relevant thread.

  3. #3
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    34,153
    Here's that post: https://www.fantasygrounds.com/forum...l=1#post729745 Closing this thread to keep discussion in a single place.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

Thread Information

Users Browsing this Thread

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

Bookmarks

Posting Permissions

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

Log in

Log in