MV "generate" events on map with randomized sprites and assign portrait

I hope I can explain this well...

I want to have between 3 to 5 of the same event be place on a map when it loads in.
These events then shall all each get a randomly chosen sprite (custom created) and if the player chooses that event, a character with the same image and a fittingly assigned portrait shall join the party.

Outside of setting up a randomnizor I really have no clue if this is possible and how I'd do it.
I can maybe figure out how to get the 3 to 5 events randomly place on the map, but that is about it.

So would it even be possible to assign the application of custom sprites onto a event with a randomization?
ALSO the events would go through multiple event pages and obviously should keep their assigned sprite through that.
YEP_EventSpawner and YEP_CopyEvent can work here.
you can set pages of the event (5 of them or 10) and each page
have the setting (you can make this equal, but the page number
should be different).

than use 1 variable to determine the event page (so if 2 at random)
that event get be spawned and copied from the template.

so each page can have a different image as well and the content
required.

spawning them at random maybe by a dummy variable to call
upon load, but its my way of doing it though.

if its only on loading a game, than a small snippet calling the
common event suffice, as I use 1 and there might be more with
only that function to keep it lightweight.

but this is a way I would do though 🙂

you might use regions for spawning if required.
it is possible even without plugins, but it depends on the funcionality you want.
IDR if you can code the events from the outside, but you can duplicate already coded events.

technically all of it is customizable because it's all code.
you just need to limit how they spawn or behave, because events spawn with the map, so I don't think you can spawn them on the fly.
YEP_EventSpawner and YEP_CopyEvent can work here.
you can set pages of the event (5 of them or 10) and each page
have the setting (you can make this equal, but the page number
should be different).

than use 1 variable to determine the event page (so if 2 at random)
that event get be spawned and copied from the template.

so each page can have a different image as well and the content
required.

spawning them at random maybe by a dummy variable to call
upon load, but its my way of doing it though.

if its only on loading a game, than a small snippet calling the
common event suffice, as I use 1 and there might be more with
only that function to keep it lightweight.

but this is a way I would do though 🙂

you might use regions for spawning if required.
This would not work because I need each page of an event to have the same sprite.
Each event consists of 3 pages necessary to fulfill certain actions.

Each event spawned would have to get one sprite assigned and then used for each fo their pages.
than you need something to make it with scriptcall and loop
with: $gameMap.event(eventId).setImage("FileName", 0); and assign
which one can be used.

probably from an array and indexes if used. (index = 0-7).
so an forEach loop, can work.

but I need to dig into those bits as I cannot remember them
constantly which one does what.

Original thread: https://forums.rpgmakerweb.com/threads/generate-events-on-map-with-randomized-sprites-and-assign-portrait.178598/