So I got this NPC node and so far I've exported three script variables: Id, Act_type, and sequence.

Here's a bit of his code:

But I want to make the NPC a tool so that I can program in the ability to change his sprite in the editor with a new script variable, so I make him a tool through the code
But when I reload the program and check the NPC in the editor, the script variables are gone.

I need to have my NPC node to have script variables and also be a tool. What can I do? I don't know what's wrong.