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

How to add the Global name to the chat output

1666914614

Edited 1666973667
Joel
Pro
Sorry if this is the wrong forum, if so let me know where it should go. We're using the 5e OGL and have one new Vedalken character but not the book that would (maybe) automate this process, so I'm trying to do this manually. All I need to do is add the +1d4 [Tireless Precision] modifier to his Arcana rolls. In order to only roll the +1d4 once and apply it to both d20 rolls for Advantage or Disadvantage, I've gone to the Attributes and Abilities tab, scrolled down to the arcana_roll and changed the formula to this: @{wtype}&{template:simple} {{rname=^{arcana-u}}} {{mod=@{arcana_bonus}}} {{r1=[[@{d20}+3[Proficiency]+4[intelligence]@{pbd_safe}]]}} {{always=1}} {{r2=[[@{d20}+3[Proficiency]+4[intelligence]@{pbd_safe}]]}} {{global=[[@{global_skill_mod} +[[1d4]][Tireless Precision] ]]}} @{charname_output} That works fine UNLESS you add a Global Skill Modifier, such as Guidance. It still technically "works" in that it rolls the correct dice, but if you mouse over the resulting rolls, it won't tell you what was the name of the Global Skill Modifier it used. So we could "assume" that the number rolled represents Guidance, but I would rather have it specifically say so. And in case the Global Skill Modifier is ever something other than Guidance, I'd prefer to use the variable that stores the name of the Global Skill Modifier. It correctly notates the Tireless Precision, just not the other Global Skill Modifier. I think it would look something like this, but it is not quite working. @{wtype}&{template:simple} {{rname=^{arcana-u}}} {{mod=@{arcana_bonus}}} {{r1=[[@{d20}+3[Proficiency]+4[intelligence]@{pbd_safe}]]}} {{always=1}} {{r2=[[@{d20}+3[Proficiency]+4[intelligence]@{pbd_safe}]]}} {{global=[[@{global_skill_mod} [@{global_skill_mod_name}] +[[1d4]][Tireless Precision]]]}} @{charname_output} [EDIT: and I don't even know that there is a variable called {global_skill_mod_name}, but there must be something that stores the name, because it gets placed in the {global_skill_mod} variable. But you get the idea, I hope. Maybe if I knew the actual name I'd have more options.] I've tried about a dozen iterations with brackets, double brackets, curly, double curly, no brackets, etc. I just can't get the Global Skill Modifier Name to show up when I mouse over the resulting roll. I'm so close (or at least think I am, lol) I wonder if anyone can solve this? Thanks so much.
1666918186

Edited 1666918871
Gauss
Forum Champion
@{wtype}&{template:simple} {{rname=^{arcana-u}}} {{mod=@{arcana_bonus}}} {{r1=[[@{d20}+-1[intelligence]@{pbd_safe}]]}} {{always=1}} {{r2=[[@{d20}+-1[intelligence]@{pbd_safe}]]}} {{global=[[1d4]]+@{global_skill_mod}}} @{charname_output} You will not be able to put [Tireless Precision] on but you will have the 1d4.  Note: the roll will look like:  no Global Skill mod: X + Y + "blank" Global skill mod (such as guidance): X + Y + Z Where X is the d20+modifiers roll, Y is the 1d4 from Tireless Precision, "blank" is a blank space, and Z is the 1d4 from guidance.
Thanks, that's an option, although I think maybe there is a typo/missing part; the proficiency bonus is missing, and I think you didn't mean to put a minus sign in front of the Intelligence, because now it is subtracting the INT bonus? I'll tinker with this idea though and see where it gets me. 
1666964839

Edited 1666964915
Gauss
Forum Champion
I was grabbing it from mine, sorry. I forgot to redo it with your own setup, this is what I get for posting while I am on hour 18 of my day. :) The important part is the bolded part. 
O, wait... I think I solved one of the issues... I had [Tireless Precision] outside of the [[1d4]] brackets. If I put it inside the brackets instead, [[1d4[Tireless]]] then it correctly says Tireless when I mouse over the result. So now I'm working with this... @{wtype}&{template:simple} {{rname=^{arcana-u}}} {{mod=@{arcana_bonus}}} {{r1=[[@{d20}+3[Proficiency]+4[intelligence]@{pbd_safe}]]}} {{always=1}} {{r2=[[@{d20} +3[Proficiency]+4[intelligence]   @{pbd_safe}]]}} {{global=[[1d4[Tireless]]]+@{global_skill_mod}}} @{charname_output}
1666966719
Gauss
Forum Champion
excellent :)
1666968437

Edited 1666968491
Joel
Pro
After many attempts to bracket things differently, I think this is as close as I can get to the ideal. @{wtype}&{template:simple} {{rname=^{arcana-u}}} {{mod=@{arcana_bonus}}} {{r1=[[@{d20}+3[Proficiency]+4[intelligence]@{pbd_safe}]]}} {{always=1}} {{r2=[[@{d20} +3[Proficiency]+4[intelligence]   @{pbd_safe}]]}} {{global=[[1d4[Tireless]]]+@{global_skill_mod}}} @{charname_output} Thanks for your help, Gauss.  The only issue with this is purely cosmetic. I wish it would either combine all the "global" parts into one number (which can be separated out when moused over) just like if you were to tick-on two or more actual Global Skill Mods (they add together and are displayed as one number but you can mouse over it to see how it arrived at that number), or failing that, I wish it didn't have that hanging "+" at the end when there are no other global skill mods ticked. Purely cosmetic, but if someone sees a solution I'd be happy to implement it. 
1666969126

Edited 1666969779
Gauss
Forum Champion
I doubt there will be a way to do that since the global skill section is it's own animal and just being plugged into the template there. But, who knows, there are many folks that know more than I do, maybe there is an option. Edit: Looking at the global_skill_mod attribute it contains "[[1d4[GUIDANCE]]]" What that means to me is that there is some behind the scenes character sheet code plugging the global skill mods into the attribute.  With that said, I can probably get them combined, but it will require a Query for Guidance instead of the checkmark method. What is your poison? 
1666971009

Edited 1666971209
Joel
Pro
LOL we're working in parallel, I was just noticing the same. Neither is the ideal, so I think I'll leave it alone for now. It works, it's just not as neat as I would like, but that's life for you. As you said, maybe someone else will have the perfect solution. (The other option of course is to just add a global skill modifier called Tireless Precision and the player just needs to remember to tick it on/off or roll it whenever using one of those two skills. I was just trying to automate everything and still have it look as neat and professional as the original.)
<a href="https://www.youtube.com/watch?v=q9WHCsfhp8Y" rel="nofollow">https://www.youtube.com/watch?v=q9WHCsfhp8Y</a>
1666974298

Edited 1666974656
Joel
Pro
I appreciate your attempt to help, but I am familiar with the global modifiers. The problem I'm trying to solve is deeper than that. We don't want to apply this Tireless Precision globally to all skills and tools, we only want this applied to one specific skill and one specific tool. So while we can set up a global skill mod called Tireless Precision and click it on and off every time he uses just that one skill or that one tool, it is still prone to being forgotten. Therefore I would have liked to automate it, placing the bonus directly into the formula for his one skill and his one tool. It's doable, it's functioning, it's just not as tidy as I would like. If someone knows the name of that variable, or can see an error I'm making in bracketing, etc, it might go from functional to perfect. I do appreciate you trying to help, though.
1666979399
Gauss
Forum Champion
Joel said: I appreciate your attempt to help, but I am familiar with the global modifiers. The problem I'm trying to solve is deeper than that. We don't want to apply this Tireless Precision globally to all skills and tools, we only want this applied to one specific skill and one specific tool. So while we can set up a global skill mod called Tireless Precision and click it on and off every time he uses just that one skill or that one tool, it is still prone to being forgotten. Therefore I would have liked to automate it, placing the bonus directly into the formula for his one skill and his one tool. It's doable, it's functioning, it's just not as tidy as I would like. If someone knows the name of that variable, or can see an error I'm making in bracketing, etc, it might go from functional to perfect. I do appreciate you trying to help, though. I think you might have misunderstood. A) you want a separate modifier, not part of the d20 roll due to advantage/disadvantage.&nbsp; B) You want the separate modifier, to be grouped up with other separate modifiers C) The only way using the template to do that is to use the "Global Field" section D) However, the attribute "global_skill_mod" cannot be changed. It is baked into the code for the character sheet and is not accessible. That is what you want to do and you cannot do it.&nbsp; So, what I propose is to hijack the Template's "global=" section for the purposes of ONE macro. It won't affect other macros or the global= in any other element of the character sheet.&nbsp; But, to do that will require baking in Guidance into this one macro. Hence whether you are ok with a Query or not.&nbsp; Basically, we will create a new attribute, bake everything you want into it, shove it into the Global field section, and viola.&nbsp; But, it won't respond to new global fields, and it will require an "off/on" query for Guidance, default set to off.
Thanks Gauss, I should have been more specific, I was replying to the youtube video from Al that just tells you that global modifiers exist, not any way to possibly tweak them. Of course we do have the global modifiers turned on, we use them for many things, just can't use them exactly the way I wish I could for this Tireless Precision thing. Such is life. I'll talk with the player about the possibilities and limitations and see what he prefers. Thanks for all your help.