[Galv] Character Effects Bug/Question

Hello,
I have been messing around with the Character Effects script by Galv.
Link: https://galvs-scripts.com/2013/02/21/character-effects/
Now my problem is regarding the reflection options. The script natively allows changing a character's reflection, except this is a permanent change. I like that, but at some point I also need to undo that.
Example: the second actor changes outfits quite a lot due to transformation abilities, so when I change their actor graphic, the reflection will change accordingly. Let's call that the game's "default" state. After I use a scriptcall like
Code:
reflect_sprite(2,"Evil",3)
their reflection permanently changes to that graphic (the hooded figure in this example), as intended.
But how do I undo that? Because this change is permanent - even when I change the actor graphic, the defined reflection remains in place, and I want that removed once the "evil" reflection is no longer needed.
So I need a scriptcall to restore the default state.
Can't you just use that script call again to revert back to the default image used?
You should be able to do this at the same place you change your actor graphic, assuming it's an evented change.
Try this
Ruby:
image = $game_actors[1].character_name.to_s
reflect_sprite(1,image,2)
change the actor number for the actor graphic you are trying to change.
Try this
Ruby:
image = $game_actors[1].character_name.to_s
reflect_sprite(1,image,2)
change the actor number for the actor graphic you are trying to change.
I tried it, and variants of it, and it does not work. The result is still permanent.
it does not work
It works in galv's demo
But add on more values.
Ruby:
actor = $game_actors[1]
pos = actor.id
image = actor.character_name.to_s
index = actor.character_index
reflect_sprite(pos,image,index)
It works in galv's demo
But add on more values.
Ruby:
actor = $game_actors[1]
image = actor.character_name.to_s
index = actor.character_index #<- doesn't work. need to test it. got to go to bed
reflect_sprite(actor,image,index)
Still doesn't work, and I found out why by asking a friend: the function I am looking for doesn't exist to begin with. So she altered the script and added it.

Code:
reset_reflect_sprite(actorID)
Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/galv-character-effects-bug-question.132573/