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

Trying to write a Macro to add a custom skill into a chat menu

1687485714

Edited 1687485879
I hope someone can help me. For the longest time I used  Actionbook  to creation easy to use spellbooks, actions, and skills/saves for my players so they didn't have to go into their character sheets all the time. But I'm using two custom skills, Culture and Engineering in the  D&D 5E sheet by Roll20  sheet down in the Tool proficiencies section. I tried to find a way of adding those skills to the Actionbook API, but I'll be honest, due to some health issues I just don't quite understand what I'm looking at. (either that or I'm an idiot. lol) So, I tried to build a macro which would create a chat menu with the custom skills which I could then turn into Token actions manually. But that didn't work either. (see below) [spoiler= "Failed Macro"]/w "@{selected|character_name}" &{template:default} {{name=A5E Skills}} {{Skills = /w "@{selected|character_name}" &{template:default} {{name=A5E Skills}} {{Skills = [@{selected|repeating_tool_$3_toolname}]}}[/spoiler] thats about as far as I can get, after that when I try to get the dang thing to roll it just laughs at me. Can anyone help? Please?
1687486197

Edited 1687486277
Gauss
Forum Champion
It looks like the Actionbook API script creates a Chat Menu macro, yes?  Can you supply the current Chat Menu macro, and a screenshot of the output of the Chat Menu macro?
It’s not an answer to your question, but you may be interested in my Universal Macro Mule for D&D 5E . It will spit out chat menus for PC skills, proficiencies, attacks, etc. It should work for any items listed on the Proficiencies area, even if they are custom. 
Gauss said: It looks like the Actionbook API script creates a Chat Menu macro, yes?  Can you supply the current Chat Menu macro, and a screenshot of the output of the Chat Menu macro? When I run Actionbook all it produces is %{Charles|Other}  I did come across this macro. But lord it seems padded with unnecessary stuff and makes the chat menu really ugly. /w "@{selected|character_name}" &{template:npcaction} &{noerror} {{rname=Tools}} {{description= [@{selected|repeating_tool_$0_toolname}](`#&{template:simple} {{rname=@{selected|repeating_tool_$0_toolname}}} {{mod=[[[[@{selected|repeating_tool_$0_toolbonus_display} - @{selected|repeating_tool_$0_toolattr_base}]][PB] + ?{Ability|Strength,@{selected|strength_mod}[Str]]]|Dexterity,@{selected|dexterity_mod}[Dex]]]|Constitution,@{selected|constitution_mod}[Con]]]|Intelligence,@{selected|intelligence_mod}[Int]]]|Wisdom,@{selected|wisdom_mod}[Wis]]]|Charisma,@{selected|charisma_mod}[Cha]]]}}}{{r1=[[@{selected|d20} + [[?{Ability} + [[@{selected|repeating_tool_$0_toolbonus_display} - @{selected|repeating_tool_$0_toolattr_base}]][PB]]]}} @{selected|rtype} + [[?{Ability} + [[@{selected|repeating_tool_$0_toolbonus_display} - @{selected|repeating_tool_$0_toolattr_base}]][PB]]]}} {{global=@{selected|global_skill_mod}}} @{selected|charname_output}" style="display:none; display:block@{selected|repeating_tool_$0_toolname|max};color:darkblue; padding: 2px 0px 2px 5px; border: 1px darkblue solid; border-radius: 5px; margin-bottom: -12px;)
Jarren said: It’s not an answer to your question, but you may be interested in my Universal Macro Mule for D&D 5E . It will spit out chat menus for PC skills, proficiencies, attacks, etc. It should work for any items listed on the Proficiencies area, even if they are custom.  thank you, I'll take a look at that too.
I got it! I added the line "macroText += ", [Culture](~"+characterName+"|repeating_tool_$0_tool) ";" to the bottom of the skills section of the Actionbooks macro and poof there it was. Worked like a charm