I have a skill that would target an enemy and remove all its states (besides Dead, Guard and Immortal). I did not want to go through the motion of selecting all states one by one in the skill screen so I made the skill call a common event.
In the Common event I tried to call the following command:
but it does give me the following error in the debug console:
I am not at all good at programming and I am just repurposing bits of code I happen to find here and there. I suppose what happens here is that "this" actually targets nothing.
Do you have any idea how to fix it with code? I have a workaround that is a little dumb but does the job if I cannot do it with a simple line of code but still, I prefer to use something more elegant than that.
In the Common event I tried to call the following command:
but it does give me the following error in the debug console:
I am not at all good at programming and I am just repurposing bits of code I happen to find here and there. I suppose what happens here is that "this" actually targets nothing.
Do you have any idea how to fix it with code? I have a workaround that is a little dumb but does the job if I cannot do it with a simple line of code but still, I prefer to use something more elegant than that.