I have a number of common events that get called at various times in the game to set the status of the MC based on what they are wearing at the time. All of the variables get set properly as evidenced by the fact that the player can't go thru a certain door if they are wearing the wrong clothing. (wearing a magic user outfit to pass thru a portal, for example)
Sometimes though, the player's sprite won't change, even though I'm using Change Actor Images and the corrent images are being set.
Is there some kind of a sprite refresh script call I can make, or something else that I can do to make sure that the sprite visually changes when it's supposed to?
The Change Actor Images event command already calls $gamePlayer.refresh() at the end.
Perhaps you can post your events and give more details on "sometimes" - is there a particular event where you don't see the change happen? Any reproducible circumstances?
if its on the map, you can also try: $gameMap.requestRefresh() or
$gameMap.requestMotionRefresh() if I'm correct, but you can find it
in rpg_manager or object where Game_Map or Game_Player is located
and find "refresh", you can stump on some of them, so you can see
what works, as 1 on my test, "motionRefresh" worked and the other
didn't for some reason as motion target more the player than the map.
but as ATT_Turan said, that one should work, but find what works,
there are 3 or 4 different refresh calls for to make it work.
otherwise, a screenshot of the event that fails, and how your common event
is called upon changing as I believe someone made a simple scriptcall
whenever the menu was closed to make the change, which might work
for you as well.
it did work on the map when use it in an event, I need to look for the correct
one though, it was used for a zoom effect shrink character and back which
didn't work with DK_SpriteZoom if I remembered, as that worked, it has a small
incompability with another plugin, so it did do the trick as it didn't mention
for battle though.