"does anyone know where the error is"
"probably this if I had to guess"
"I don't know what it is either."
You haven't told us what the problem is.
There is nothing in the script that would print to console, although I'm assuming you mean there is no errors printing to the console.
Based on that assumption, it probably has something to do with the weird way you are using storage values.
This code block is strange.
Code:
if this storage equals zero then
. . . make the storage zero
end
This line of code is strange.. because normally you want to increase a storage value, not decrease it.
Code:
update storage by decreasing it's number by 1.
The exhaustion block is weird as well
Code:
If I'm exhausted then
. . . cast the spell
. . . attempt to cast the spell again after 1 second.
end
I don't know what's wrong, but the storage value usage in this script is really strange..
and since it's strangely coded, I'm assuming that's why it isn't functioning as intended.
If I had to guess blindly without knowing the issue it'd be one of the lines with storage value 30044 because they don't make any sense the way they are setup.