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

How to add a custom macro to a "spells" macro?

June 08 (1 year ago)
MJ
Pro

Sorry if my title is not very clear but here is the situation:

- Macro 1 : thanks to Token Action Maker, I created a button "Spells" for my bard. One of the spell is Viscious Mockery (see macro below)

- Macro 2 : I also created another button called "Mockery". When my player click on this button, it generate a random insult from a Rollable Table I created (see macro below)

I would love to incorporate Macro 2 directly into Macro 1. This way, when my player select the spell Viscious Mockery, it displays the dice roll, the spell description, but also a random insult.

How could I do that ? Could you please help me?

Note : I would prefer if the insult can be whispered to my player (Orionyx) et myself (MJ).


Macro 1 : 

/w @{character_name} &{template:atk} {{desc=**Cantrips:**
[Minor Illusion](~repeating_spell-cantrip_-NZK0LDYWQmyx6HDg0zW_spell) | [Thaumaturgy](~repeating_spell-cantrip_-NZK0LDYWQmyx6HDg0zV_spell) | [Vicious Mockery](~repeating_spell-cantrip_-NZK0LDYWQmyx6HDg0zX_spell)

Macro 2 : 

/w Orionyx [[1t[Viscious-Mockery-Insults]]]


Thank you in advance everyone ! Wish you all a great day !

June 08 (1 year ago)

Edited June 08 (1 year ago)
Gauss
Forum Champion

How to incorporate Macro 2 into Macro 1: 
Create an Ability (Attributes and Abilities) and name it ViciousMockery. 

In the Ability put: 
%{repeating_spell-cantrip_-NZK0LDYWQmyx6HDg0zX_spell}
/w Orionyx [[1t[Viscious-Mockery-Insults]]]

Next, replace:
"
[Vicious Mockery](~repeating_spell-cantrip_-NZK0LDYWQmyx6HDg0zX_spell)" (without quotes)

with:
"[Vicious Mockery](~
ViciousMockery)" (without quotes)

Note: I tend to use characternames in Abilities even if they are not required. But, if it works without the charactername then don't worry about it. 

June 08 (1 year ago)

Edited June 08 (1 year ago)
MJ
Pro

Thank you Gauss ! 
I tried what you said but I got this error message in the chat after clicking on Viscious Mockery option in the chat.



Macro ViciousMockery

%{repeating_spell-cantrip_-NZK0LDYWQmyx6HDg0zX_spell}
/w Orionyx [[1t[Viscious-Mockery-Insults]]]

Macro Spells

/w @{character_name} &{template:atk} {{desc=**Cantrips:**
[Minor Illusion](~repeating_spell-cantrip_-NZK0LDYWQmyx6HDg0zW_spell) | [Thaumaturgy](~repeating_spell-cantrip_-NZK0LDYWQmyx6HDg0zV_spell) | [Vicious Mockery](~ViciousMockery)
**1st:**
[Faerie Fire](~repeating_spell-1_-NZK0LDYWQmyx6HDg0zY_spell) | [Healing Word](~repeating_spell-1_-NZK0LDYWQmyx6HDg0zZ_spell) | [Hellish Rebuke](~repeating_spell-1_-NZK1CTyUBJn0jVbBZvR_spell) | [Tasha's Hideous Laughter](~repeating_spell-1_-NZK0LDZIUKsy1FsEvh1_spell) | [Thunderwave](~repeating_spell-1_-NZK0LDZIUKsy1FsEvh2_spell)
**2nd:**
[Enhance Ability](~repeating_spell-2_-NZK1CMCQZzTiEBxGIAV_spell) | [Invisibility](~repeating_spell-2_-NZK1CMCQZzTiEBxGIAW_spell)
}}
June 08 (1 year ago)
Gauss
Forum Champion

Replace @{character_name} with the character's name. 

June 14 (1 year ago)
MJ
Pro


Gauss said:

Replace @{character_name} with the character's name. 


Thank you !! :)