Ah, understood. In the original method, there was this line:
that turned the actorID I stored into an actor object. But there isn't any such code in the other method so it only works when I store the actor itself. That makes sense.
Thank you to everyone, I've actually learned quite a bit.
One final note before the thread can be closed:
I'm slowly reading through this article to learn how things work. Would you recommend any other resources that would help me learn scripting at a good pace?
JavaScript:
var actor = $gameActors.actor(actorId);
that turned the actorID I stored into an actor object. But there isn't any such code in the other method so it only works when I store the actor itself. That makes sense.
Thank you to everyone, I've actually learned quite a bit.
One final note before the thread can be closed:
I'm slowly reading through this article to learn how things work. Would you recommend any other resources that would help me learn scripting at a good pace?