I need a plugin that allows you to make an event so that the player goes back 1 sprite change. Instead of directly changing the sprite manually to a specific sprite.
Example of what I'd want. (There'd be multiple armour the player can equip in the game that changes the players look visually)
Text: Oh no I'm losing my armour!
Change Actor Sprite: ActorWithoutArmour
> Player gains the armoured sprite again via quest
PluginCommand: ChangeActorSpritetoPrevious
So the game would then remember what sprite the player had last, then change back to the armour they had equipped.
If the armors are forced and the player can't choose their equips, which I assume they can't, it's not too hard to event it by yourself.
I don't see how this would help.
In my game you get turned into a zombie that you can control freely. After a set amount of time, I want the system to then change the player back to the original sprite he had equipped.
Thanks for trying though
You would control what sprite the player has through internally equipping armor. This would trigger changing to the new sprite and also trigger changing back to the old one when you unequip it.
But instead of calling common events you could call the change equip command. This would then trigger the code to change the sprite.
Step 1 (save current setup):
$gameVariables.setValue(1, $gameActors.actor(5).faceName()); // Saves actor 5's face file in variable 1
$gameVariables.setValue(2, $gameActors.actor(5).characterName()); // Saves actor 5's character file in variable 2
$gameVariables.setValue(3, $gameActors.actor(5).battlerName()); // Saves actor 5's battler file in variable 3
Step 2 (remove armor):
$gameActors.actor(actorId).setCharacterImage("NoArmorCharacterName", index); // Indexes are 0-7, from left to right
$gameActors.actor(actorId).setFaceImage("NoArmorFaceName", index);
$gameActors.actor(actorId).setBattlerImage("NoArmorBattlerName");
$gamePlayer.refresh();
Step 3 (to change back to previous armor):
$gameActors.actor(actorId).setCharacterImage($gameVariables.value(1), index);
$gameActors.actor(actorId).setFaceImage($gameVariables.value(2), index);
$gameActors.actor(actorId).setBattlerImage($gameVariables.value(3));
$gamePlayer.refresh();
Just replace the 5 and actorId with your actor's number.
Edit: Forgot to add refresh 😛
Yeah you just use it with script calls. Each step can be put into a separate call.