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] GroupCheck

Hello! Currently trying to adapt the API to Pathfinder 2 sheet and faced an issue with attributes which NPCs don't have.  So there is a skill - Stealth which doesn't exist for SOME of NPCs (and I should use dex modifier for this) and for other NPCs it exists. How can I implement this into the GroupCheck? I saw some option called Fallback but I beleive this is not what I search for, right?
1566113104

Edited 1566115558
Jakob
Sheet Author
API Scripter
There doesn't exist native support for that, you'll have to implement it in the dice engine. EDIT: Earlier versions of the 5E-OGL sheet had a similarly unpleasant setup: you can see an example in GroupCheck 1.4, something like [[d20 + %stealth_bonus% * {{1%npc_stealth%0, 0}=10} + 0%npc_stealth%]] I believe that a variation of this could work for your case. Basically, the expression  {{1%npc_stealth%0, 0}=10}  serves as a conditional which is 1 if npc_stealth is empty, and 0 otherwise.
Jakob said: There doesn't exist native support for that, you'll have to implement it in the dice engine. EDIT: Earlier versions of the 5E-OGL sheet had a similarly unpleasant setup: you can see an example in GroupCheck 1.4, something like [[d20 + %stealth_bonus% * {{1%npc_stealth%0, 0}=10} + 0%npc_stealth%]] I believe that a variation of this could work for your case. Basically, the expression  {{1%npc_stealth%0, 0}=10}  serves as a conditional which is 1 if npc_stealth is empty, and 0 otherwise. Oooh, ok, kinde suspected that. Will try and reply if successful! Thanks!
1566246796
Jakob
Sheet Author
API Scripter
Hmm, of course I mean [[d20 + @{stealth_bonus} * {{1@{npc_stealth}0, 0}=10} + 0@{npc_stealth}]] The "%foo%" syntax was a leftover from the old version of GroupCheck :D.