Variable Set not working

I’m trying to set a variable, but its value does not change.
The two images inside the rectangle show this.

Can you verify by printing to screen?

I tested it here and the value that came out was the same as the image above.

I got it sorted out.
This code is inside a Custom Event, there is a Cust. Event that called before that which I showed in the images above, I just changed the order they are called (Before, another custom event was called and then that code was rotated, I reversed the order and the code of the above images is called before and The value exits correctly)

This additional Custom event that I said does not have any code that fiddles with the variables of the “CalcularAtributos” Event but it has influenced the code in some way.

I think it’s a bug, but I have no idea why.

@dezembro98 I have found a similar “bug” in 4.16.2 where my variable would not set another variable.
Even an entire array became empty after the loop had finished.
This had been caused by a very small delay within a for each loop (but it did fire in the loop).
maybe you added a delay somewhere before the custom event?

I can try this, I’ll make a copy of the blueprint and test it