[RPG MZ] Randomly generated resources?

Would it be possible for survival style events and resources (branches, stones) to be generated randomly on a map and not in a defined location?

I am creating a map (forest) and my game has a crafting system and I would like that when I enter the map the resources do not always appear in the same place but in different places... Ark style and other survival games.If there is any method...?
Yes, event spawners like Galv's one has a generate randomly on a defined region

You can let your events spawn with coordinates and region tags to let them spawn on different places.
Just set the region tags, where your craftable object can spawn and create 2 variables (x and y position) and set them to a random number between 1 and your mapsize and use the Set Event Location command and set the position to your x and y coordinates. Use Get Location Info afterwards to check if on your x and y coordinate is your number of the Region ID where it can spawn and if not repeat the Set Location command.

I think there are also Plugins for this kind of things, but I dont know how they are called.
You can let your events spawn with coordinates and region tags to let them spawn on different places.
Just set the region tags, where your craftable object can spawn and create 2 variables (x and y position) and set them to a random number between 1 and your mapsize and use the Set Event Location command and set the position to your x and y coordinates. Use Get Location Info afterwards to check if on your x and y coordinate is your number of the Region ID where it can spawn and if not repeat the Set Location command.

I think there are also Plugins for this kind of things, but I dont know how they are called.
Isn't this basically dart throwing where you just randomly pick a tile on the map and hope it's that region? What happens if you have a large map and only a couple tiles of that region? You'll be throwing darts for a while before you hit.
Isn't this basically dart throwing where you just randomly pick a tile on the map and hope it's that region? What happens if you have a large map and only a couple tiles of that region? You'll be throwing darts for a while before you hit.
Yeah, of course it can be optimized, but I just tested it out on a max size map and the tree appears instantly but my PC is pretty decent, so I can't say for sure if it's always like that. Was just a quick solution that I thought of. But the Plugin is free anyways so it would be easier to use this I guess.
Ready, I got it, thank you very much! :stache:🤘

Original thread: https://forums.rpgmakerweb.com/threads/rpg-mz-randomly-generated-resources.168238/