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

Quick question regarding a Token Action script.

I'm by no means an expert at coding, though I am learning. Is there something I'm doing wrong here? /w @{character_name} @{wtype} &{template:default}{{name=@{character_name} NPC Actions}}{{[Claws](!roll20AM --audio,play,nomenu|Weapon Swing 2)(~selected|repeating_npcaction_$0_npc_action)}}{{[Teleport](!roll20AM --audio,play,nomenu|Dark Roar Loud)(~selected|repeating_npcaction_$1_npc_action)}}
1561263850
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
So, it looks like you're trying to call two commands from one button. Unfortunately you can't combine commands like that in command buttons. There can only be 1 set of parentheses enclosed commands.
1561277563
Sr. K
Pro
Sheet Author
Maybe this tutorial can help you:&nbsp; <a href="https://www.youtube.com/watch?v=5RN0r4JXGvw" rel="nofollow">https://www.youtube.com/watch?v=5RN0r4JXGvw</a>