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

Issue with nested macro

I have a macro that is calling another macro.  Basically this is a roll query that then calls a macro to execute an attack.  The attack macro also has a roll query in it.  What is happening is that the first macro roll query when prompting the player only shows the first weapon in the list, the rest of the list contains the data from the roll query in the the macro called.   The other odd thing is that the targeting prompt opens when you run the macro, BEFORE it would get to the called macro where the targeting prompt is actually placed. There is also a mystery 3rd query window that pops up.  I know, that sounds a bit confusing so here are the two macros - ?{Choose an Attack | @{selected|WeaponName_1},#CnCPCAttack1 | @{selected|WeaponName_2},#CnCPCAttack2 | @{selected|WeaponName_3},#CnCPCAttack3 | @{selected|WeaponName_4},#CnCPCAttack4 | @{selected|WeaponName_5},#CnCPCAttack5 } !cncAttackV2 @{selected|token_ID} 1 ?{Enter Advantage/Disadvantage/Standard|Standard,S|Advantage,A|Disadvantage,D} @{target|token_id} PC Here is what happens Execute the first macro and before it queries for the weapon to use it prompts for a target The roll query that should list all five weapons executes and this is what the drop down looks like - If you select Hand-to-hand the next query window (note that it has staff as the first entry, which would be the name of the second weapon slot and the title of the box is also including a token id) - Selecting anything here brings up another roll query with a text box for entry Any idea what is happening here?
1598501177
GiGs
Pro
Sheet Author
API Scripter
This is in fact an extremely common problem. See here for an explanation and solution:&nbsp; <a href="https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries" rel="nofollow">https://wiki.roll20.net/Macros#Advanced_Usage_for_Roll_Queries</a> The best solution is to abandon nested queries altogether, and use Chat Menus.&nbsp; <a href="https://app.roll20.net/forum/permalink/5927072/" rel="nofollow">https://app.roll20.net/forum/permalink/5927072/</a> That will allow you to use your current macros without having to edit them.