You can create functions, which can return a value in Gui. Set this value to integer, return the level and set the level variable in the main action to this function.
Or just use a global variable for the level, which gets modified by your other function.
You can create functions, which can return a value in Gui. Set this value to integer, return the level and set the level variable in the main action to this function.
Or just use a global variable for the level, which gets modified by your other function.
Let your Accumulating function return the level or use global variables:
If you happen to use Gui triggers, you can mark them, right click and use Copy as text btw, so you don't need to post the converted script.