
I'm learning ScriptCards and am loving what it can do and thought I'd try a script to help with Sorcerous Burst.
This is what I have so far.
!scriptcard {{
--#title|Sorcerous Burst
--#overridetemplate|gothic
--#sourceToken|@{selected|token_id}
--#targetToken|@{target|token_id}
--#emoteText|@{selected|token_name} attacks @{target|token_name}
--=Wisdom|@{selected|wisdom_mod}
--=TargetAC|@{target|ac}
--=AttackRoll|1d20 + [$Wisdom] [WIS] + @{selected|pb} [PROF]
--+Attack: |@{selected|token_name} rolls [$AttackRoll]
--?[$AttackRoll.Total] -ge [$TargetAC.Total]|Hit
--+Miss|The attack missed.
--^Final|
--:Hit|
--=Damage|1d8
--=DamageType|?{Damage Type?|Acid|Cold|Fire|Lightning|Poison|Psychic|Thunder|}
--+HIT!|The attack hit @{target|token_name} for [$Damage] [$DamageType.Text] damage.
}}
This works great but what I can't figure out how to do is if the damage rolls an 8, you get to roll another d8. You can do this a number of times up to your spellcasting modifier.
Also need to be able to add in a d8 at 5th, 11th and 17th levels. I can figure this one out but when it is 2d8s, how do I check to see the value of both of those independently?
Not an urgent issue but any help would be great.