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

Help with using a rolltemplate in a Macro Choose option

Ok, am I missing something here, or is this unfortunately not supported?  I have a roll template that is fairly simple, baby steps as I am learning here, that is for my Castle & Crusades game, borrowing some ideas from other games, such as Advantage, and critical damage.  Anyhow, the template works fine when executing from chat.  It works fine if I just call it from within a macro, but if I put it in a Choose wrapper it does not work.  In fact, it changes the item in the selection box to - Sword-Two Handed, &{template:cncattack , and this is the only selection in the box, even though there are five possible options. If this isn't possible from a macro, I guess I'll have to work it through the API, having the macro send !attackWeapon1 and using sendChat, was just hoping for simple solution in the macro itself. Here is the code I have in the macro -  ?{Choose Weapon|@{selected|WeaponName_1}, &{template:cncattack} {{attacker=@{selected|CharacterName}}} {{weapon=@{selected|WeaponName_1}}} {{attackroll=[[1d20+@{selected|WeaponBth_1}+@{selected|WeaponHitMod_1}+@{selected|WeaponHitMisc_1}+@{selected|WeaponHitMagic_1}]]}} {{adddisroll=[[1d20+@{selected|WeaponBth_1}+@{selected|WeaponHitMod_1}+@{selected|WeaponHitMisc_1}+@{selected|WeaponHitMagic_1}]]}} {{damageroll=[[@{selected|WeaponDmg_1}+@{selected|WeaponDmgMod_1}+@{selected|WeaponDmgMisc_1}+@{selected|WeaponDmgMagic_1}]]}} {{critdamroll=[[@{selected|WeaponDmg_1}]]}} |@{selected|WeaponName_2}, &{template:cncattack} {{attacker=@{selected|CharacterName}}} {{weapon=@{selected|WeaponName_2}}} {{attackroll=[[1d20+@{selected|WeaponBth_1}+@{selected|WeaponHitMod_2}+@{selected|WeaponHitMisc_2}+@{selected|WeaponHitMagic_2}]]}} {{adddisroll=[[1d20+@{selected|WeaponBth_2}+@{selected|WeaponHitMod_2}+@{selected|WeaponHitMisc_2}+@{selected|WeaponHitMagic_2}]]}} {{damageroll=[[@{selected|WeaponDmg_2}+@{selected|WeaponDmgMod_2}+@{selected|WeaponDmgMisc_2}+@{selected|WeaponDmgMagic_2}]]}} {{critdamroll=[[@{selected|WeaponDmg_2}]]}} |@{selected|WeaponName_3}, &{template:cncattack} {{attacker=@{selected|CharacterName}}} {{weapon=@{selected|WeaponName_3}}} {{attackroll=[[1d20+@{selected|WeaponBth_3}+@{selected|WeaponHitMod_3}+@{selected|WeaponHitMisc_3}+@{selected|WeaponHitMagic_3}]]}} {{adddisroll=[[1d20+@{selected|WeaponBth_3}+@{selected|WeaponHitMod_3}+@{selected|WeaponHitMisc_3}+@{selected|WeaponHitMagic_3}]]}} {{damageroll=[[@{selected|WeaponDmg_3}+@{selected|WeaponDmgMod_3}+@{selected|WeaponDmgMisc_3}+@{selected|WeaponDmgMagic_3}]]}} {{critdamroll=[[@{selected|WeaponDmg_3}]]}} |@{selected|WeaponName_4}, &{template:cncattack} {{attacker=@{selected|CharacterName}}} {{weapon=@{selected|WeaponName_4}}} {{attackroll=[[1d20+@{selected|WeaponBth_4}+@{selected|WeaponHitMod_4}+@{selected|WeaponHitMisc_4}+@{selected|WeaponHitMagic_4}]]}} {{adddisroll=[[1d20+@{selected|WeaponBth_4}+@{selected|WeaponHitMod_4}+@{selected|WeaponHitMisc_4}+@{selected|WeaponHitMagic_4}]]}} {{damageroll=[[@{selected|WeaponDmg_4}+@{selected|WeaponDmgMod_4}+@{selected|WeaponDmgMisc_4}+@{selected|WeaponDmgMagic_4}]]}} {{critdamroll=[[@{selected|WeaponDmg_4}]]}} |@{selected|WeaponName_5},&{template:cncattack} {{attacker=@{selected|CharacterName}}} {{weapon=@{selected|WeaponName_5}}} {{attackroll=[[1d20+@{selected|WeaponBth_5}+@{selected|WeaponHitMod_5}+@{selected|WeaponHitMisc_5}+@{selected|WeaponHitMagic_5}]]}} {{adddisroll=[[1d20+@{selected|WeaponBth_5}+@{selected|WeaponHitMod_5}+@{selected|WeaponHitMisc_5}+@{selected|WeaponHitMagic_5}]]}} {{damageroll=[[@{selected|WeaponDmg_5}+@{selected|WeaponDmgMod_5}+@{selected|WeaponDmgMisc_5}+@{selected|WeaponDmgMagic_5}]]}} {{critdamroll=[[@{selected|WeaponDmg_5}]]}} }
1501434743
Scott C.
Forum Champion
Sheet Author
API Scripter
Compendium Curator
You need to use advanced roll queries, which just means you need to do some html encoding of certain characters. <a href="https://wiki.roll20.net/Macros#Advanced_Usage_for_" rel="nofollow">https://wiki.roll20.net/Macros#Advanced_Usage_for_</a>... This is of course a lot of work. I might look at making a menu of ability command buttons instead. <a href="https://wiki.roll20.net/Macros#Ability_Command_But" rel="nofollow">https://wiki.roll20.net/Macros#Ability_Command_But</a>... -Scott
Thanks, yeah I have made command buttons, guess I'll have to see which the players prefer. &nbsp;I had the drop down already, just rolling the dice and adding their modifiers without any formatting, but wanted to start using the roll templates. &nbsp;I'm getting there, still struggling with my own version of the character sheet. &nbsp;Borrowing from the 3.5 sheet, well really still working to understand it all, taking it in pieces, there is a lot to it! &nbsp;but that is for another topic. Scott (yeah, I'm a Scott as well)