I need to purdge all curses from the player, while he loading into the map. All curses and blesses is stored in structure, every value of which has to be set at 0.
I tried two solutions, first one is just straight up not working, leaving structure untouched. I tried to change “loopindex” to a local value, but this is still not working
Second one is breaking entire game altogether. What should I do?
You can clear all of the children or items from the array.
If your array is made of strings, your events are setting it to a number. And it might make the variable incompatible if it’s expecting a string. It should be changing the values unless I’m missing something.
One of the issues with the last 2 actions is that it uses from 0 to child count. Indexes start at 0 so the last item is count minus 1. This would add a new index. It’s also creating the number 0. Depending on your needs you could delete the children or set it to an empty string (empty double quotes)

