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

Dual Skill Checks Macro

Hi guys,  For my DnD groups we allow players to choose between 2 stats for each skill: M - Athletics:  Strength or Dexterity M - Animal Handling: Charisma or Wisdom S - Arcana: Intelligence or Wisdom M - Deception: Charisma or Intelligence S - History: Charisma or Intelligence S - Insight: Charisma or Wisdom M - Investigation: Dexterity or Intelligence S - Nature: Intelligence or Wisdom S - Intimidation: Charisma or Strength M - Medicine: Intelligence or Wisdom S - Perception: Intelligence or Wisdom S - Performance: Charisma or Dexterity R - Persuasion: Charisma or Intelligence S - Stealth: Dexterity or Intelligence S - Sleight of Hand: Dexterity or Wisdom S - Survival: Dexterity or Wisdom M - Talent: DM chooses based on talent being performed I use TokenMod, ChatSetAttr and Am not opposed to a script. Is there a way to make this happen where the DnD 5e sheet would automatically find the higher, or maybe a macro where it sets all the skills to the higher value that I could run one time on Character Creation by selecting a token?
If you want to use ChatSetAttr, you could set all of the '_bonus' fields to be a query (here's an example for athletics): !setattr {{  --sel  --silent  --replace  --athletics_bonus|\ques{Athletics Skill\ques\|Strength,\at{strength_mod}[STR]\|Dexterity,\at{dexterity_mod}[DEX]\|Constitution,\at{constitution_mod}[CON]\|Intelligence,\at{intelligence_mod}[INT]\|Wisdom,\at{wisdom_mod}[WIS]\|Charisma,\at{charisma_mod}[CHA]} }}  Or if you want the bonus to be automatically calculated you can use something like this (example for Athletics to automatically use the higher of Strength or Dexterity mod): !setattr --sel --silent --replace --athletics_bonus|<<{\at{selected\|strength_mod},\at{selected\|dexterity_mod}}kh1>> You'd want to create a macro to replace all of the skill bonuses at the same time so you could just run it on each character. The big caveat is I have no idea how/when the sheetworkers (javascript code built into the character sheet) will overwrite the '_bonus' fields.  It could happen at each level up, or whenever a stat is modified, etc. If that happens, then you'd need to rerun the ChatSetAttr macro again.