Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

PowerCards Spell Extra Damage

1609115816

Edited 1609135599
So I am doing something wrong with my macro. I'm trying to apply extra damage to the spell being cast based on spell level, but it is not working. Any help would be appreciated. # Thunderwave !power {{ --titlefontshadow|none --title|School: Evocation ^^ Level: 1 ^^ Components: V,S ^^ Duration: Instantaneous ^^ When you cast this spell using a spell slot of 2nd level or higher, the damage increases by 1d8 for each slot level above 1st. --name|@{selected|repeating_attack_$5_atkname} --leftsub|Spell Attack --rightsub|Range: @{selected|repeating_attack_$5_atkrange} --tokenid|@{selected|token_id} --target_list|@{target|token_id} --emote|@{selected|character_name} focuses dark energies into a beam of death --Critical Range:|@{selected|default_critical_range}+ --hroll|[[ [$SpellLvl] ?{Spell Level|Level 1, 1|Level 2, 2|Level 3, 3|Level 4, 4|Level 5, 5|Level 6, 6|Level 7, 7|Level 8, 8|Level 9, 9} + 0d0 ]] --?? $SpellLvl == 9 ?? [[ [$extraDmg] 8d8 ]] --?? $SpellLvl == 8 ?? [[ [$extraDmg] 7d8 ]] --?? $SpellLvl == 7 ?? [[ [$extraDmg] 6d8 ]] --?? $SpellLvl == 6 ?? [[ [$extraDmg] 5d8 ]] --?? $SpellLvl == 5 ?? [[ [$extraDmg] 4d8 ]] --?? $SpellLvl == 4 ?? [[ [$extraDmg] 3d8 ]] --?? $SpellLvl == 3 ?? [[ [$extraDmg] 2d8 ]] --?? $SpellLvl == 2 ?? [[ [$extraDmg] 1d8 ]] --?+ $SpellLvl == 1 +? [[ [$extraDmg] 0d0 ]] --hroll|[[ [$Hexed] ?{Apply Hex?|No, 0|Yes, 1} + 0d0 ]] --vfx_opt|@{selected|token_id} @{target|token_id} breath-death --!hrule1|~~~ --Extra Damage:| [$extraDmg] --Attack:|DC@{selected|spell_save_dc} vs @{selected|repeating_spell-1_$5_spellsave} --?? $Hexed == 1 ?? Damage:|[[ [$Dmg] @{selected|repeating_spell-1_$5_spelldamage} + [$extraDmg] ]] points of //@{selected|repeating_spell-1_$5_spelldamagetype}// damage and [[ [$HexDmg] @{selected|repeating_damagemod_$0_global_damage_damage}[Hex] ]] points of //@{selected|repeating_damagemod_$0_global_damage_type}// damage! --?+ 1 == 1 +? Damage:|[[ [$Dmg] @{selected|repeating_spell-1_$5_spelldamage} + [$extraDmg] ]] points of //@{selected|repeating_spell-1_$5_spelldamagetype}// damage! --:EndOfCard| --!hrule5|~~~ --!desc|**Description:** A wave of thunderous force sweeps out from you. Each creature in a 15-foot cube originating from you must make a Constitution saving throw. On a failed save, a creature takes 2d8 thunder damage and is pushed 10 feet away from you. On a successful save, the creature takes half as much damage and isn’t pushed. In addition, unsecured objects that are completely within the area of effect are automatically pushed 10 feet away from you by the spell’s effect, and the spell emits a thunderous boom audible out to 300 feet. }}
1609119347
GiGs
Pro
Sheet Author
API Scripter
Power Cards questions often go unanswered, unless you ask in the Power Cards thread, because its a script many people don't use and requires specialised knowledge of the syntax to answer. The thread for it is just a couple of posts below yours in the API forum, here:&nbsp;<a href="https://app.roll20.net/forum/post/7136858/script-powercards-3-thread-6" rel="nofollow">https://app.roll20.net/forum/post/7136858/script-powercards-3-thread-6</a>
Is there an alternative to PowerCards? I like the If-Else logic.