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

Chronicles of Darkness Macro Syntax Guide?

Hello! I have not been able to locate a handy guide to the correct syntax for Chronicles of Darkness macro templates. The 5e Roll Templates page was tremendously useful. Can anyone direct me to something similar for CoD?  So far, I've pulled the templates and their variables from the CoD character sheet html on GitHub , and  I've been able to puzzle out some of it. I'm definitely missing a few things and it would be helpful to have some guidance . The sheet itself hasn't been especially revealing because the embedded dice roller shorthands everything down to  @{charactername|rollstyle}@{charactername|rolltype}. Here's an example of the brawl macro I'm working on: &{template:wod-attack} {{name=@{selected|character_name}}} {{attack_name=Brawl}} ({{weapon_damage=0}}) {{str=1}} {{bra=1}} {{strength=@{selected|strength}}} {{brawl=@{selected|brawl}}} {{mod=[[?{@{selected|modifiermacro}|0}]]}} {{woundpenalty=@{selected|wound_penalty}}} {{apen=@{selected|armor_penalty}}} {{result=[[{((@{selected|strength}+@{selected|brawl}+?{@{selected|modifiermacro}|0}+@{selected|wound_penalty}+@{selected|armor_penalty})@{selected|rolltype} Compare to the output from the dice-roller: So far, my macro is carrying over the rolltype ( normal, 9-again, 8-again, etc)  from whatever is selected in the dice-roller.  I'm also not understanding why the armor and wound penalties only display when a modifier value is entered, and no wound penalty is actually entered on the sheet. Weirdly, if the character has a wound penalty it doesn't display even with a modifier entered. The macro calculates these into the dice pool correctly, but doesn't show them on the template in the chat. My goal is to set up the most common rolls so the players can use buttons in the macro bar for them rather than open their sheets and mess with selecting everything. The dice roller works well enough, but it gets a little weird about selecting and deselecting items for the pool.  I've also noticed that the dice-roller isn't calculating melee damage correctly. CoD weapons add damage as a number of bonus successes when there's one or more successes on the attack, but the roller is adding weapon damage to the dice pool.   Any ideas on how I can set up weapon damage as a prompt? Even if it were reflected as " and hits for  1 Damage +2 Damage" as part of the result would be good.  Another thing that I'd like to do is prompt for the the rolltype options so the player can select normal, 9-again, 8-again, chance, or dont-reroll as part of a macro button.
Looks like the official roll20 sheet is a little broken - it doesn't automatically include the 2nd edition tag to the template, even if you have the game set to a second edition game in the options. But, you can manually add that field to your template to enable the damage roll to add the weapon damage at the end, it's {{2nd=1}} - or you can swap to the community version (listed as just "Chronicles of Darkness" where the setting functions as it should. Either way, the weapon damage field is, appropriately, {{weapon_damage=}}, where you'll want to put the @{selected|attack_damageX} attribute, and into {{attack_name=}} field @{selected|attack_nameX} attribute, where X is the index number of the attack/weapon (listed from 0 up). If you want both to be in a query, you'll want to delete those rows in your macro, then add in ?{attack/weapon|@ {selected|attack_name0}, {{attack_name=@{selected|attack_name0}}} ({{weapon_damage=@{selected|attack_damage0}}}) | @ {selected|attack_name1}, {{attack_name=@{selected|attack_name1}}} ({{weapon_damage=@{selected|attack_damage1}}}) | @ {selected|attack_name2}, {{attack_name=@{selected|attack_name2}}} ({{weapon_damage=@{selected|attack_damage2}}})} In their place, one option for every weapon/attack you want to include in the query. As for the roll button, you can include a query for that too, but you can't change the setting on the sheet without scripts (requiring a pro subscription). To include a query for the roll type, you'll just have to replace the @{rolltype} section with  )d10?{roll type?|normal,!|9-again,!>9|8-again,!>8}cs>8}>8]]}}  - though I left Chance type out because it uses a completely different roll formula.