The issue also comes up in the video, but he fixes it by removing the temporary testing code that was still in one of the other scripts. I did the same, but I still get the same problem. I’ve spent quite a few hours on trying to fix this and I’m just not getting anywhere.
Basically, what should be happening is that the status_handler adds one stack of the status, waits 2 seconds, adds another stack, waits 2 seconds, removes a stack, waits 2 seconds, and removes the final stack, just to make sure statuses can be applied and remove properly. Instead what I’m getting is the status will appear at 1 stack very, very briefly, disappear, then 2 seconds later do the same, then it crashes with the error “Invalid call. Nonexistent function ‘apply_status’ in base ‘Nil’.”, which is the same as was happening in the video with the unnecessary previous testing code I already removed. These are the scripts:
Any help would be really appreciated, even just being pointed in the right direction for what I should be looking for in order to fix this, as I’m just stumped at the moment.
Okay, this prints DELETING 2 both times the status is removed, but the stack type is duration, so shouldn’t this if statement not apply? Have I done my variables incorrectly or something?
It prints 2 if it’s Duration, I also changed it to Intensity and None to see what it would print, Intensity prints 1 and None prints 0, so that means status type is correct when it’s loaded?
I think you got it, I actually had that set to a different status, I think when I was testing the status ui before implementing the handler I just forgot to change it back. Thanks so much for your help, this has been a good lesson in debugging for me!