I'm making a game were you constantly interact with the same npcs. So naturally I have to place a lot of events with the images of said npcs. As the looks of the npcs might still change during development and I'm planning to change their appearance (armor etc) while the game progresses, setting the image for each event manually seems like maintenance hell. So I found a really helpful thread were I got the following script to set the event image to the image of a specified actor:
This works as it's supposed to. Now I want to trigger this script on each npc once, as soon as the protagonist enters the map. But the usual way to trigger an event just once (set it to autorun->set self-switch->set condition of second page to said self switch) doesn't work for me because the image I got with the script is just set for the first page.
Is there something else I could do to solve this problem? Or do you have to just edit every event image manually?
Code:
$gameMap.event(this.eventId()).setImage($gameActors.actor(1).characterName(),$gameActors.actor(1).characterIndex())
Is there something else I could do to solve this problem? Or do you have to just edit every event image manually?