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

Powercard API - Can't get vfx working

Hi, I've pretty new to roll20 and very new to the APIs. I've been following Nick Olivo's youtube videos and learning a lot. In particular I'm trying to setup a new spell cast ability that rolls attack, damage, and plays both a sound effect and visual effect. I've copied Nick's example but I cannot get the vfx command to show anything.  Any advice? Here's my version... The attack roll, check against AC, damage, and sound effect all work as expected.  The vfx line gives me nothing. Help! !power {{  --name|Eldritch Blast  --leftsub|Ranged Spell Attack  --rightsub|120 ft Range  --Attack:|[[ [$Atk] 1d20 + @{spell_attack_bonus} ]] vs AC @{target|AC}  --?? $Atk >= @{target|AC} ?? Damage:|[[ [$Dmg] 1d10 ]]  --soundfx|_audio,play,nomenu|EldritchBlast-sfx  --vfx_opt|@{selected|token_id} @{target|token_id} beam-frost }} cheers Phil
1595885012
Kurt J.
Pro
API Scripter
Hairy said: Hi, I've pretty new to roll20 and very new to the APIs. I've been following Nick Olivo's youtube videos and learning a lot. In particular I'm trying to setup a new spell cast ability that rolls attack, damage, and plays both a sound effect and visual effect. I've copied Nick's example but I cannot get the vfx command to show anything.  Any advice? Here's my version... The attack roll, check against AC, damage, and sound effect all work as expected.  The vfx line gives me nothing. Help! !power {{  --name|Eldritch Blast  --leftsub|Ranged Spell Attack  --rightsub|120 ft Range  --Attack:|[[ [$Atk] 1d20 + @{spell_attack_bonus} ]] vs AC @{target|AC}  --?? $Atk >= @{target|AC} ?? Damage:|[[ [$Dmg] 1d10 ]]  --soundfx|_audio,play,nomenu|EldritchBlast-sfx  --vfx_opt|@{selected|token_id} @{target|token_id} beam-frost }} cheers Phil Almost always the problem is that the player ribbon isn't on the page you are on as the GM. Visual Effects only play on the page the player ribbon is on.
Thanks Kurt, FIXED!!!!! I had to pause for a moment and quickly realised that I was working on a scratch map page. I flipped over to the page marked with the player ribbon and magically everything is working.  I wish I'd asked 2 hours ago, I've been banging my head off the proverbial wall wrestling with this :-) Cheers Phil