MV Yanfly Event Spawner Question

Right now, I am using the Yanfly event spawner in order to make certain items spawn, like a rouge like.


One of the main parts of the plugin is using a template to help spawn events.
What I want the plugin to do is to use that template to choose between multiple events and spawn one of them, rather than just be able to spawn one single event all the time. Would it be possible to use the same template to spawn different events?
you can make a multipage event that automatically and randomly chooses which page is active, and then spawn that event.

first page parallel process and selecting which other event page should be active.

if you limit it to three or four variants it can be done without scripts, for more variance you'll need a plugin to implement self-variables instead of self-switches.
Just as a side note...please, "rogue" 😉
you can make a multipage event that automatically and randomly chooses which page is active, and then spawn that event.

first page parallel process and selecting which other event page should be active.

if you limit it to three or four variants it can be done without scripts, for more variance you'll need a plugin to implement self-variables instead of self-switches.
I understand, thank you very much for the advice 🙂



Just as a side note...please, "rogue" 😉
I'm sorry, I do not know what you mean by please "rouge"
Something like this? Just change the last line to Yanfly's spawner command
If you only need to spawn one random item
JavaScript:
 var spawnPool = [5, 10, 12, 29]; //The pool of spawn map event ids that can be spawned
  var randomIndex = Math.floor(Math.random() * spawnPool.length);
  Ritter.spawnEventRegion(39, spawnPool[randomIndex], 1); //Spawner command here

To spawn multiple events
JavaScript:
//Spawn 1-3 random events from a pool
var spawnPool = [5, 10, 12, 29]; //The pool of spawn map event ids that can be spawned
const iterations = Math.floor(Math.random() * 3) + 1;
for (let i = 0; i < iterations; i++) {
  var randomIndex = Math.floor(Math.random() * spawnPool.length);
  Ritter.spawnEventRegion(39, spawnPool[randomIndex], 1); //Spawner command here
}
I'm sorry, I do not know what you mean by please "rouge"
Your spelling is off. You meant to say "rogue-like" in your opening post. Rogue and rouge are two different things.
Bloody hell this always happens lol.
Thank you for the auto correct

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-event-spawner-question.161418/