Hey there people!
So I have an event that changes the image of the leader into a cat so that he can crawl through small spaces.
I'm using scripts to make the s event, but how I chang the leader back to what he's supposed to be?
Here's my script
Script:
PrevImage = $gamePartyleader()._characterName;
PrevIndex = $gamePartyleader()._characterIndex;
Script:
$gamePartyleader().setCharacterImage("horse",0);
$gamePlayer.refresh()
Script:
$gamePartyleader().setCharacterImage(PrevImage,PrevIndex);
$gamePlayer.refresh()
It works on the changing of the leader image but it doesn't change it back. What am I doing wrong?
So I have an event that changes the image of the leader into a cat so that he can crawl through small spaces.
I'm using scripts to make the s event, but how I chang the leader back to what he's supposed to be?
Here's my script
Script:
PrevImage = $gamePartyleader()._characterName;
PrevIndex = $gamePartyleader()._characterIndex;
Script:
$gamePartyleader().setCharacterImage("horse",0);
$gamePlayer.refresh()
Script:
$gamePartyleader().setCharacterImage(PrevImage,PrevIndex);
$gamePlayer.refresh()
It works on the changing of the leader image but it doesn't change it back. What am I doing wrong?