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

Macro to Randomly Select Attack Name

Hi all, I'm starting a monk character in a campaign and was hoping to add a little flavor to the attacks.  Instead of just posting "Monk Unarmed Damage" for each attack, I was hoping to create a list of attack names and then have a macro randomly select one from the list each time the attack is clicked (or macro is clicked). I'm guessing a rollable table could be used for this, but that would require bothering the DM and asking them to create the table for me.  Hoping to be able to do this in macros or some other way that doesn't require the DM to spend more time. Thanks, -Adam
1582691250
The Aaron
Roll20 Production Team
API Scripter
I can't think of a clever way to do this without a rollable table or an API script. 
1582707484
Ziechael
Forum Champion
Sheet Author
API Scripter
A mundane and manual way would include a nice long drop down query list and a wild click without aim (or random number of presses of the down key then enter): ?{Attack|punch|kick|uppercut|roundhouse kick|jab|snap kick|rabbit punch|axe kick|drop kick|two inch punch|elbow strike|hammer fist|haymaker punch|palm strike}
Thanks to both of you for your assistance.&nbsp; I did end up bugging the DM to do a rollable table :P Now to get the macro to work.&nbsp; Here is my standard attack text: @{Cymbiir Perlantasil|wtype}&amp;{template:atk} {{mod=+7}} {{rname=[Monk Unarmed Strike](~-M0ypRcgqFUCTNeYuTgE|repeating_attack_-M0s6rTTookMhKAF0-cL_attack_dmg)}} {{rnamec=[Monk Unarmed Strike](~-M0ypRcgqFUCTNeYuTgE|repeating_attack_-M0s6rTTookMhKAF0-cL_attack_crit)}} {{r1=[[@{Cymbiir Perlantasil|d20}cs&gt;20 + 5[DEX] + 2[PROF]]]}} @{Cymbiir Perlantasil|rtype}cs&gt;20 + 5[DEX] + 2[PROF]]]}} {{range=5 ft.}} {{desc=}} {{spelllevel=}} {{innate=}} {{globalattack=@{Cymbiir Perlantasil|global_attack_mod}}} ammo= @{Cymbiir Perlantasil|charname_output} Trying to change it to: @{Cymbiir Perlantasil|wtype}&amp;{template:atk} {{mod=+7}} {{rname= [[[1t[Monk-Attack-Names]]]] (~-M0ypRcgqFUCTNeYuTgE|repeating_attack_-M0s6rTTookMhKAF0-cL_attack_dmg)}} {{rnamec=[Test](~-M0ypRcgqFUCTNeYuTgE|repeating_attack_-M0s6rTTookMhKAF0-cL_attack_crit)}} {{r1=[[@{Cymbiir Perlantasil|d20}cs&gt;20 + 5[DEX] + 2[PROF]]]}} @{Cymbiir Perlantasil|rtype}cs&gt;20 + 5[DEX] + 2[PROF]]]}} {{range=5 ft.}} {{desc=}} {{spelllevel=}} {{innate=}} {{globalattack=@{Cymbiir Perlantasil|global_attack_mod}}} ammo= @{Cymbiir Perlantasil|charname_output} But doing so always rolls a 0.&nbsp; If I remove a set of brackets, it will roll properly, but the trailing text is included.&nbsp; Example: <span class="inlinerollresult showtip tipsy-n-right" original-title="Rolling 1t[Monk-Attack-Names] = ( Double Front Kick )" style="box-sizing: content-box; font-size: 12px; line-height: 12px; text-align: center; padding: 0px; cursor: help; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; margin: 3px !important; background-color: rgb(26, 26, 26) !important; border: 2px solid rgb(99, 92, 54) !important; color: rgb(230, 230, 230) !important;">Double Front Kick (~-M0ypRcgqFUCTNeYuTgE|repeating_attack_-M0s6rTTookMhKAF0-cL_attack_dmg)&nbsp; (+7) What am I missing?&nbsp; any help is appreciated. Thanks, -Adam