-
Today, 13:03 #1
- Join Date
- Mar 2018
- Posts
- 12
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?
-
Today, 18:14 #2
- Join Date
- Mar 2018
- Posts
- 12
Posted in relevant thread.
-
Today, 18:20 #3
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 2 users browsing this thread. (1 members and 1 guests)
Bookmarks