I have such a code with the subtraction of “TotalFruits” after buying skills.
If I put it after the sequence as Then 0 or Then 1
Then the code does not execute.
But if I throw it BEFORE the sequence then the code works correctly.
Nod sequence is broken?
Same way I have after it refresh widgets to update the number of fruits without Tick only after buying (i.e. when opening a widget)
And here also the sequence does not work, the widget does not refresh, but before the sequence already works correctly.
Can you show what it looks like when you place it after the sequence?
Also, put a printstring before the subtraction, and another after it. That way you can see if it’s going through or not.
Get us that screenshot and get back to us, it may be quickly solvable with a fresh set of eyes!
I have already added all of this before the sequence and removed the sequence itself.
I created simple custom events that work the same way.
The only thing I wanted to achieve with the sequence was shorter nodes (sideways) to not scroll the screen so often.
After I discarded the sequence this code started working properly, it subtracts the fruit, the widget refreshes, everything works properly as it should
Therefore, I bet that there is a problem with the sequence itself as a node
Well, and this is not the first time that the sequence does not work for me, in a previous project there was also a problem with it and I had to do a long code in nodes, where I scrolled the whole screen