Hi
I have an interesting problem that I cannot solve.
I have a calculation that should trigger when the calculation is met. However, it does not happen every time (because too many things at one time?). The calculation works for sure, it's just that it doesn't always trigger.
Essentially, when var:jewels hits a particular number, I then run a function.
However, I collect jewels very fast in some parts of the game, so I think that the calculation does not happen fast enough to be triggered.
e.g. I have 19 jewels, but I collect 3 at the same time, taking me to 21, which means the trigger at 20 jewels is missed.
Do you have a suggestion on how to make sure I definitely hit the trigger?
You can see a gif here showing that i collect jewels very close together sometimes. This amount can be hundreds at once.
https://i.imgur.com/rK2ASId.gif