
Hey guys,
I recently got into the Power Card API and I realised it had some really cool functions for adding sounds and effects for my players spells.
For example, I was using following macro for a Warlock to use his Eldritch Blast.
!power {{
--name|Eldritch Blast
--leftsub|Ranged Spell Attack
--rightsub|120 ft Range
--Attack:|[[ [$Atk] ?{Attack|Standard,1d20|Advantage,2d20kh1|Disadvantage,2d20kl1} + @{spell_attack_bonus}
]] vs AC @{target|AC}
--?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? Damage:|[[ [$Dmg] 2d10 ]]
--?? $Atk.base == 20 ?? Critical Hit|[[ [$CritDmg] 4d10 ]]
--soundfx|_audio,play,nomenu|blast1
--vfx_opt|@{selected|token_id} @{target|token_id} beam-charm
--?? $Atk >= @{target|AC} AND $Atk.base <> 20 ?? alterbar1|_target|@{target|token_id} _bar|1 _amount|-[^Dmg] _show|all
--?? $Atk >= @{target|AC} AND $Atk.base == 20 ?? alterbar2|_target|@{target|token_id} _bar|1 _amount|-[^CritDmg] _show|all
}}
I was wondering, if it possible to creat something similar for other spells, specifclly for spells that don't target a token. I was hoping to create a macro that lets my wizard cast a fireball. I know how to roll the damage and send me the spell description and even add a sound, but I was wondering if there is a way to let me target a visual effect on the map. So that my wizard can just say he casts fireball, click a point on the map and explosion happens there.
I was also wondering if it is possible to let a token appear with (preferably the same) klick. I would love a template of the fireball appear the moment I select that macro on the point where i clicked, so I can see who would be targeted by the spell. Right now I am using a torch token with an aura of 20 ft. to show the area of the spell. Would love to not have to drag that out every time, but let it just appear when he casts it.
Just know that I am new to APIs and I don't understand most of it yet. :)