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

Clickable nested character ability

Hello! I'm trying to make a macro that will let me click between two different rolls. Like an attack roll where you first roll attack and then you click on the damage. I've been met with partial success as the macro displays the final result of the roll, but it isn't clickable and should not be displayed before clicking on it.&nbsp; If anyone knows what's the problem, I would appreciate your help :) This is the base macro &{template:dmg} {{rname=Toll the Dead [📎](<a href="http://engl393-dnd5th.wikia.com/wiki/Toll_the_Dead" rel="nofollow">http://engl393-dnd5th.wikia.com/wiki/Toll_the_Dead</a>)}} {{range=60 ft.}}&nbsp; {{damage=1}} {{dmg1flag=1}} {{dmg1= [Yes] (%{Pustulio Cyst|TollDeadDmg1}) }} {{dmg1type=}} {{dmg2flag=1}} {{dmg2=No}} {{dmg2type=}} {{crit=}} {{crit1=crit1}} {{crit2=crit2}} {{save=1}} {{saveattr=Wisdom}} {{savedesc=negates}} {{savedc=@{spell_save_dc}}} {{desc=Is the target at full HP?}} {{hldmg=hldmg}} {{spelllevel=spelllevel}} ammo=ammo {{charname=Pustulio}} And this is the damage macro(TollDeadDmg1): &{template:dmg} {{rname=ಠ_ಠ}} {{damage=1}} {{dmg1flag=1}} {{dmg1=[[1d8]]}} {{dmg1type=Necrotic}}&nbsp; This is what I'm expecting to get:&nbsp; But this is what I get: &nbsp;
1520848019
Natha
KS Backer
Sheet Author
API Scripter
I think (not sure what the real limitations are) that you can do this only if the link references a macro ability or a named roll in the character sheet of the character. For example, if there's a roll (button) named "roll_damage" in the character's sheet, you can referenced it like this: {{rname=Toll the Dead [](~character-name|damage)}}
1520848081
Natha
KS Backer
Sheet Author
API Scripter
Or an ability named "tolldamage": {{rname=Toll the Dead [](~character-name|tolldamage)}}
Natha said: I think (not sure what the real limitations are) that you can do this only if the link references a macro ability or a named roll in the character sheet of the character. For example, if there's a roll (button) named "roll_damage" in the character's sheet, you can referenced it like this: {{rname=Toll the Dead [](~character-name|damage)}} I managed to get one step ahead thanks to your reply.&nbsp; I switched this&nbsp; {{dmg1= [Yes] (%{Pustulio Cyst|TollDeadDmg1}) }} With this: {{dmg1= [Yes](~Pustulio Cyst|TollDeadDmg1)}} This made the chat post clickable and does link to the correct ability. It looks red now for some reason, but I can deal with that. Unless you know how to take away the red block. Thank you.
1520850752
Natha
KS Backer
Sheet Author
API Scripter
This made the chat post clickable and does link to the correct ability. It looks red now for some reason, but I can deal with that. Unless you know how to take away the red block. Thank you. Glad you made it worked. The pinkish/redish color is the default color of the " API Command buttons " in Roll20. It's dependant on the character sheet rolltemplate CSS to change the aspect of these buttons/links.