I'm trying to make my Hit Chance mimic a simple d20 system whereby you roll a d20 and add a melee bonus and compare against the target defense. However, for some reason the final result always fails no matter what the roll is. I suspect it has something to do with storing the formula as a game variable and then comparing to the target's defense. Perhaps I'm confusing the game variable storage again. I've debugged the random d20 roll + melee bonus to see that the results in the test Calculate would indeed hit, but it always fails. Here is an image of my hit Chance Formula with the Store Formula Value selected.
https://imgur.com/a/3bmfmSsAnd here is the Status Check portion:
https://imgur.com/a/iOYzkucAny ideas what could be wrong?
Otherwise it looks like it should work just fine.
A different setup would be using 2 formulas. First formula does the random roll and adds the status value, 2nd formula uses the 1st formula in a Check Formula Value node (setting the formula value to the status value to check for first).
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!