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

Adding a Roll ID to a Roll Query Help Please

Hi there so I am having trouble adding a Roll ID to a Roll Query. I am using Powercards and I have the basic Macro figured out to determine hits or misses but I am trying to add a couple extra modifiers for Aiming and Attack Types. The Macro will run just fine until I add the [$Aim] in front of the query. I am not sure why this is happening. Any Help would be greatly Appreciated! !Power {{ --name|@{selected|token_name} is attacking @{target|token_name}! --tokenid|@{selected|token_id} --target_list|@{target|token_id} --emote|Weapon Skill Test --hroll|[[ [$Aim] ?{Aim | Half aim (+10),+10| No aim (+0),+0 | Full aim (+20),+20} + 0]] --audioattr *1|@{selected|token_id} AudioOnAttack --Attack |[[ [$Atk] 1D100]] vs **Weapon Skill** [[ @{selected|WS}+$Aim.total+?{Modifier|0}]] -- ?? $Atk == 100 ?? !Miss|@{selected|token_name} missed. -- ?? $Atk == 100 ?? audioattr *3|@{selected|token_id} AudioOnMiss -- ?? $Atk == 1 OR $Atk.total > [[ @{selected|WS}+$Aim.total+?{Modifier|0}]] ?? !Miss|@{selected|token_name} missed. -- ?? $Atk == 1 OR $Atk.total > [[ @{selected|WS}+$Aim.total+?{Modifier|0}]] ?? audioattr *3|@{selected|token_id} AudioOnMiss -- ?? $Atk == 1 OR $Atk.total <= [[ @{selected|WS}+$Aim.total+?{Modifier|0}]] ?? !Hit:|You Hit -- ?? $Atk == 1 OR $Atk.total <= [[ @{selected|WS}+$Aim.total+?{Modifier|0}]] ?? audioattr *2|@{target|token_id} AudioOnHurt --vfxattr  *1|@{selected|token_id} EffectOnAttack --vfxattr  *2|@{selected|token_id} EffectOnEnemyHit   --vfxattr  *3|@{target|token_id} EffectOnHurt   --!Desc|
1541966187
GiGs
Pro
Sheet Author
API Scripter
You might want to post this in the Power Cards thread to get some help. It's not clear from your subject title that this is a power cards problem, and only people who use that script will know how to fix it.
Oh my bad, i did not realize there is a Power Card thread. Thanks for the heads up!