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

Initiative with Global Skill Mod toggled

Hello! I've been working on a macro for that will allow a character to roll initiative and include their global skill modifier when they have it toggled (in this case because of the Peace Cleric's Emboldening Bond feature). It works how I want it to when the Global Skill Mod is toggled on, but when it's toggled off, it is only showing the d20 roll without the initiative mod. Any help would be appreciated! 1nitiative @{selected|wtype}&{template:simple} {{rname=INITIATIVE}} {{mod=@{selected|initiative_bonus}}} {{r1=[[1d20 + @{selected|initiative_bonus}@{selected|pbd_safe} + @{selected|global_skill_mod}&{tracker}]]}} {{normal=1}} @{Selected|charname_output}
Can you post a screenshot of the roll output (hover over the roll to see the tooltip) when the mod is on versus when the mod is off?
1758040628

Edited 1758040718
Noah
Pro
Yes, the first image is with the global mod is on: And the second is off: Edit: The initiative mod is 7, and the 2 shown in the first image is the rolled d4 from Emboldening Bond.
1758043865

Edited 1758044049
Gauss
Forum Champion
I tested, this works:  @{selected|wtype}&{template:simple} {{rname=INITIATIVE}} {{mod=@{selected|initiative_bonus}}} {{r1=[[1d20 + 0@{selected|global_skill_mod}[global] + @{selected|initiative_bonus}[bonus]@{selected|pbd_safe} &{tracker}]]}} {{normal=1}} @{Selected|charname_output} You have to put a 0 before the global_skill_mod or it will be a blank when turned off. Blanks ruin the calculations.  That gives you:  on = 01d4 = 1d4 off = 0blank = 0
Thanks Gauss!