I make websites and applications for a living... Therefor I have a certain logic in coding, which I understand myself.
Now my issue is this:
I first declare a variable in a COMMON EVENT.
Make sure it is set to zero.
Then I add +1 .. which would make it an integer with 1.
I run it, the game bugs out, shows an empty text box.
Whatever I try, I am unable to use a variable to return a number, and my logical brain is absolutely baffled.
So here is how I reproduce, after picking up an amethyst, I can break it down into its core elements with a common event as shown above. I use the item:
And it crashes.. it shows some weird jumping black bar, or sometimes a empty textbar

Now if I remove the variables from the event, I do get this (as expected):"
Help me understand, I beg you.
So this works:
But adding this crashes it:
