Hi folks,
I was wondering if someone could help me out with a script to set an event's image to something with a filename based on its own event ID.
The idea is that I have like 300 events that need all of their existing event pages set to a new, unique character sheet file. Rather than manually changing every single one of these event pages (8 each) for all 300 events to each have their image set to their new unique file, my plan is to make their new image file names correspond to their event IDs (ie. farmPlots\137.png) so that I can set a movement route on each page with a script that changes their image (this.setImage(farmPlots\this.eventID())) or whatever it would be) and then just copy/paste that event 300 times, so each one will reference a different image file (farmPlots\137.png, farmPlots\138.png, etc. based on each event's ID), and set their image to the correct file when the map loads.
Is there a script I can put in the custom move route settings for the event page that will accomplish this?
tl;dr: I need a script to change an event's sprite image to something with a filename based on its own event ID, which can be put in a movement route. Something like: this.setImage(farmPlots\this.eventID())
Thanks!
I was wondering if someone could help me out with a script to set an event's image to something with a filename based on its own event ID.
The idea is that I have like 300 events that need all of their existing event pages set to a new, unique character sheet file. Rather than manually changing every single one of these event pages (8 each) for all 300 events to each have their image set to their new unique file, my plan is to make their new image file names correspond to their event IDs (ie. farmPlots\137.png) so that I can set a movement route on each page with a script that changes their image (this.setImage(farmPlots\this.eventID())) or whatever it would be) and then just copy/paste that event 300 times, so each one will reference a different image file (farmPlots\137.png, farmPlots\138.png, etc. based on each event's ID), and set their image to the correct file when the map loads.
Is there a script I can put in the custom move route settings for the event page that will accomplish this?
tl;dr: I need a script to change an event's sprite image to something with a filename based on its own event ID, which can be put in a movement route. Something like: this.setImage(farmPlots\this.eventID())
Thanks!