Before I spend a huge amount of time on this that might all end up for naught, I wanted to get some advice on how to go about this problem. No existing threads specifically address this.
In my project, there are events strewn throughout the map that are "garbage". The player can pick up the garbage, naturally.
I have 16 different little garbage images, and I'd like the garbage events to randomly choose an image from among them when the map loads.
The garbage images are in the B Tileset.
My first thought was to create a common event that would set a variable randomly to 1-16, and then I would use Set Movement Route to set the garbage image.
However, movement route doesn't permit me to select from a Tileset image, unfortunately.
The only other solution I can figure is for each and every garbage event to be an autorun with 16 event pages, and for the first event page to set one of 16 switches to on, which would run the corresponding page and then turn that activating switch off before the engine goes on to run the subsequent garbage events.
This solution is not only time-consuming but it also feels quite nauseating from a basic coding hygiene perspective -- there has to be an easier way.
If anyone has any thoughts, I'm all ears! Thank you!!
In my project, there are events strewn throughout the map that are "garbage". The player can pick up the garbage, naturally.
I have 16 different little garbage images, and I'd like the garbage events to randomly choose an image from among them when the map loads.
The garbage images are in the B Tileset.
My first thought was to create a common event that would set a variable randomly to 1-16, and then I would use Set Movement Route to set the garbage image.
However, movement route doesn't permit me to select from a Tileset image, unfortunately.
The only other solution I can figure is for each and every garbage event to be an autorun with 16 event pages, and for the first event page to set one of 16 switches to on, which would run the corresponding page and then turn that activating switch off before the engine goes on to run the subsequent garbage events.
This solution is not only time-consuming but it also feels quite nauseating from a basic coding hygiene perspective -- there has to be an easier way.
If anyone has any thoughts, I'm all ears! Thank you!!


