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 .
×

token_name issue in macros

Gday guys. New to Roll20 and starting a campaign in the next couple of weeks with my family from 4 different parts of the world. Really excited to be able to do something like this Anyway on to the help needed I am trying to set up some macros for me players so its all set for them when they jump on. Have a few set up Ok but am trying to set up a Magic Missile macro that will let me pick 3 targets, display some FX and then name the 3 targets for purposes of damage This is what I have after reading other peoples ideas but doesnt seem to work /fx bomb-magic @{target|1|token_name} /fx bomb-magic @{target|2|token_name} /fx bomb-magic @{target|3|token_name} Adrian zaps @{target|1|token_name} for [[1d4+1]] force damage, @{target|2|token_name} for [[1d4+1]] force damage, and @{target|3|token_name} for [[1d4+1]] force damage! this is the error message I get TypeError: d20.Campaign.activePage(...).thegraphics.get(...) is undefined The issue seems to be with the token_name as if I change it to token_id i get the following message and the FX works Adrian zaps -KI58Rne3BAYb1fW5C-A for Rolling 1d4+1 = ( 4 )+1">5 force damage, -KI59FBGKY2u3m7D8eJW for Rolling 1d4+1 = ( 3 )+1">4 force damage, and -KI59uPjwj0hxf83s3qU for Rolling 1d4+1 = (3)+1">4 force damage! help would be greatly appreciated
1471356277
The Aaron
Roll20 Production Team
API Scripter
Try this: /fx bomb-magic @{target|1|token_id} /fx bomb-magic @{target|2|token_id} /fx bomb-magic @{target|3|token_id} Adrian zaps @{target|1|token_name} for [[1d4+1]] force damage, @{target|2|token_name} for [[1d4+1]] force damage, and @{target|3|token_name} for [[1d4+1]] force damage! /fx takes a token_id as an argument. See: <a href="https://wiki.roll20.net/Text_Chat#Special_Effects_" rel="nofollow">https://wiki.roll20.net/Text_Chat#Special_Effects_</a>... @{target| &lt;label&gt; | &lt;attribute&gt; } can be repeated throughout an ability or macro. &nbsp;So long as the &lt;label&gt; part is the same, you can change the &lt;attribute&gt; part to get different bits of information. &nbsp;You want it to be token_id for the /fx commands, but token_name for the emote text. See: <a href="https://wiki.roll20.net/Macros#Using_a_Targeted_To" rel="nofollow">https://wiki.roll20.net/Macros#Using_a_Targeted_To</a>...
Awesome!! Thanks so much for that. works perfectly now