You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have a situation where I want to know if a roll has failed, most of the time I can use skill_check_result with the ! operator but that function cannot differentiate between rolls that have failed and rolls that haven't happened yet.
Describe the solution you'd like
A function that can tell if a roll has happened so that it can be combined with the skill_check_result function.
E.g.: if (&& (== (skill_check_happened skillName)) (! (skill_check_result skillName)))
Describe alternatives you've considered
I tried to use the get_skill_check function but that returns an object and I couldn't figure out how to get just the happened value in an if statement without first turning it into a variable.
Additional context
I was also thinking you could add a skill_check_fail function to check if a roll has both happened and failed but the naming may make the function names confusing.
The text was updated successfully, but these errors were encountered:
Yeah the get_skill_check function should have what you need, if you put it in a variable and then use mySkillCheck.happened in your condition it should work I think?
It would be overkill to add new commands for every single thing people might want to check, the more commands there are the more maintenance it is and the harder it is for people to find what they need in documentation.
You can always make a plugin creating your own custom command, or a macro, or a function, that does that in a shortened way if you want a shortcut for it though, it doesn't have to be added as an official command
Is your feature request related to a problem? Please describe.
I have a situation where I want to know if a roll has failed, most of the time I can use
skill_check_result
with the!
operator but that function cannot differentiate between rolls that have failed and rolls that haven't happened yet.Describe the solution you'd like
A function that can tell if a roll has happened so that it can be combined with the
skill_check_result
function.E.g.:
if (&& (== (skill_check_happened skillName)) (! (skill_check_result skillName)))
Describe alternatives you've considered
I tried to use the
get_skill_check
function but that returns an object and I couldn't figure out how to get just thehappened
value in anif
statement without first turning it into a variable.Additional context
I was also thinking you could add a
skill_check_fail
function to check if a roll has both happened and failed but the naming may make the function names confusing.The text was updated successfully, but these errors were encountered: