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 Help

I have this type of nested macro working for another set but I cannot for the life of me figure out what is wrong here.  I am using this to deal with Ki points on my players Monk. Here is the macro call  &{template:npcaction} {{rname=Purse Strings}} {{description=[Flurry of Blows](~FlurryofBlows) }} it is calling this other macro in the sheet @{Plume|wtype}&{template:traits} @{Plume|charname_output} {{name=Patient Defense}} {{source=Class: Monk}}  {{description=Immediately after you take the Attack action on your turn, you can spend 1 Ki point to make two unarmed strikes as a bonus action. DC = [[8 + @{selected|PB} + @{selected|wisdom_mod}]]  vs @{target|foe|token_name}'s  Con Save = [[1d20+ @{target|constitution_save_bonus}]] [Use Ki](!setattr --charid @{character_id} --mod --class_resource|-1) Ki points remaining @{selected|class_resource} }} Any help would be appreciated.  When trying to activate it in the chat menu I get the error TypeError: Cannot read property 'substring' of undefined
1586715524
Ziechael
Forum Champion
Sheet Author
API Scripter
You are using a mixture of @{selected| and basic @{ calls, as an ability you can likely just use @{ but if you continue to get the error, making all of the non-target ones @{selected| should fix the problem.
It’s when calling the macro from the ability command button. Syntax in the attack/trait works fine though it is a bit wonky. I’m not sure why it won’t call the macro from the sheet though.