An Inscryption like map generator with events

I have this idea I wanna try and see if its possible to do with events or with minimal coding. So basically I wanna do a map for the player to see their progress, since I am making a game similar to inscryption's first act, where you go along a path and the levels are randomized.
finally-finished-some-rough-drafts-for-my-irl-inscryption-v0-4l7p9vw5t4981.jpg

(Photo for reference)
I will make something similar to that, but I wanna have a set map layout(meaning the map itself won't change) and the only thing different will be the events, some having shops, others being encounters, etc. My main problem rn is to make the map system, I know I can call common events with items, so I can make a map item to teleport the player to the map but I wanna have a way to randomize each "event space" in a way that I can also balance or semi control the result. i know its a lot so if its too much to event I understand going the coding route. I am mostly just not a coder and more so a game designer so i need help. As long as I can balance it so there is no possibility of having like 10 shops back to back, then i will be good. For now any ideas work! I don't mind changing a bit of the original concept as long as I get a way to set up a randomized map. Thanks in advance.
What part of this requires coding?

One of your most basic event commands, Control Variables, has a field to generate a random number.

You can use Conditional Branch to compare that variable to the last one (or the last 3 or last 10) to make sure you don't get the same value repeated too soon.

What have you already tried?
What part of this requires coding?

One of your most basic event commands, Control Variables, has a field to generate a random number.

You can use Conditional Branch to compare that variable to the last one (or the last 3 or last 10) to make sure you don't get the same value repeated too soon.

What have you already tried?
So what I already tried is the following. Call a common event to generate the map which goes like the following: Each "Event Space" has its own variable that can go from 1 to 7 depending on the even that it is, shop, inn, encounter, etc. That is the easy part and I can do that for all spaces, the thing is that they could result in a lot of the same result, like a lot of encounters with no shops or inns or viceversa. As such I wanted to keep track of how many of each type of Zones were present on this map. After the common event gives the variable of the Event Space a number to determine their type, my original plan was to make a Conditional Branch for each type of Zone and keep track of it, but since its 7 types of zones and the maps would be around 10 to 20 possible spaces free, not to mention that I have not figured out how to prevent from getting too much of 1 type with this method, Its kind of complex. I am willing to seek much easier options even if my original vission isn't possible tho.
I can think of two different approaches without even straining, depending on what exactly you want.

1) you give seven variables for the seven types of content, and for each roll you add +1 to the type.
then you also check if too many are there and if yes reroll
This will work with your kind of numbers and allow for differences in how many of each type are there per game.

2) you make an array of 20 elements with the numbers 1-7. Then instead of rolling 1-7 you rol 1-20 as to which element to use, and remove that element from the array.
this requires script commands to handle the array, and the elements will remain the same and only be scattered (always the same number of shops).
This is more often used for card games with a fixed deck, and means that it is more difficult to randomize the content of the entire deck (which is why there would always be the ssame number of shops on the map
Sorry, that's too much block of text for me to try to work through.

If you made an event but it isn't working the way you want, please post screenshots.
Sorry, that's too much block of text for me to try to work through.

If you made an event but it isn't working the way you want, please post screenshots.
Its alright, its not that it isn't working, its that I am stuck in thinking through a method to do it

I can think of two different approaches without even straining, depending on what exactly you want.

1) you give seven variables for the seven types of content, and for each roll you add +1 to the type.
then you also check if too many are there and if yes reroll
This will work with your kind of numbers and allow for differences in how many of each type are there per game.

2) you make an array of 20 elements with the numbers 1-7. Then instead of rolling 1-7 you rol 1-20 as to which element to use, and remove that element from the array.
this requires script commands to handle the array, and the elements will remain the same and only be scattered (always the same number of shops).
This is more often used for card games with a fixed deck, and means that it is more difficult to randomize the content of the entire deck (which is why there would always be the ssame number of shops on the map
Thats actually a good idea! I do need to know how to program more since like I said, my coding skills are pretty much so basic I can't even do 1 line of code without having an error. I tried learning myself but Its too difficult. If you would please provide an example or direct me to any material that could help I would appreciate it.
Its alright, its not that it isn't working, its that I am stuck in thinking through a method to do it
I gave you one in my first reply. Have you tried it?

You're generally going to get more and better answers if you do something, then post it and explain which part doesn't work, than by just saying "I can't think of anything, how do I do this entire thing?"
I gave you one in my first reply. Have you tried it?

You're generally going to get more and better answers if you do something, then post it and explain which part doesn't work, than by just saying "I can't think of anything, how do I do this entire thing?"
yeah the message of the big block of text was me explaning pretty much that I tried what u told me. Usinc conditional branches. The problem I said its that its too complex and will be unefficient due to having a lot of variables and factors in mind
its too complex and will be unefficient due to having a lot of variables and factors in mind
Why? You have two variables.

You set variable New Place to a random number.

You do a conditional branch to see if it's the same as variable Last Time. If yes, roll again (you can either use a label or a loop for this).

Then copy the value of New Place into Last Time.

Done.

Now if you want to do something more complex like said "I can only have 4 shops in the last ten locations," then you get more complex from there, but you should be able to implement what I just described with four basic event commands. And then you have something you can copy and paste here to show us and work with.
Why? You have two variables.

You set variable New Place to a random number.

You do a conditional branch to see if it's the same as variable Last Time. If yes, roll again (you can either use a label or a loop for this).

Then copy the value of New Place into Last Time.

Done.

Now if you want to do something more complex like said "I can only have 4 shops in the last ten locations," then you get more complex from there, but you should be able to implement what I just described with four basic event commands. And then you have something you can copy and paste here to show us and work with.

I don't have 2 variables, I have 2 factors to take into account that then need a ton of variables and branches. Remember that with the method I tried, I have 1 variable for each level/space for an event (in this case its 16 for the first map I am making rn but they will extend to more than 16 to even 20 in more difficult maps) I then need to asign each variable a number of 1 to 7 (for each type of zone) and then check if there not too much of that event. I would be putting for each level 7 Conditional Branches, some with sub-branches depending on the type of event, for each of the 16 levels and thats not counting the events I need to program in to re-randomize in case the max amount of a certain type of zone is already filled. My main question is, is there an easier more efficient way to put it? Prefered to be events but coding is good as long as I get guidance. I also don't mind ideas that are similar to making a map like this but easier to code/event in. I am sorry for repeating the same thing but I feel I am being given the same information I tried.
I don't have 2 variables...I have 1 variable for each level/space for an event (in this case its 16 for the first map I am making rn
My point is, that doesn't matter. If you can get a working event for two locations, it's a matter of copying and pasting to add additional checks for more locations in your map.

And then you have something to show and to work with, and it's not all theoretical discussion in huge blocks of text.

That's how I would do it.

If you don't want to consider that approach, that's fine by me, I'll stop trying to help. Good luck with your project.
My point is, that doesn't matter. If you can get a working event for two locations, it's a matter of copying and pasting to add additional checks for more locations in your map.

And then you have something to show and to work with, and it's not all theoretical discussion in huge blocks of text.

That's how I would do it.

If you don't want to consider that approach, that's fine by me, I'll stop trying to help. Good luck with your project.
The main reason I was asking help, was because I can't even think of a way to make it work. i can tell you part of the theory but can't finish it since its way beyond my skills. I wanted to know if maybe someone had an idea that I couldn't consider before to make this. I wish I could show something but I don't have it. Its not that I don't want to consider it, its that my skills are in different areas. I understand if you no longer wanna help and I respect the choice, I just wanted to hear from this forum if someone had a new perspective on the issue, I know I am not super-knowledgable in the engine, but thats why I came here and asked, to learn and discuss with people much more experienced and with much more knowledge than me, so I can also take note of it.
@lshot23432
The problem is that we can't make your game for you, you'll need to get the basics for yourself.

And to add another point:
I gave you two different concepts to handle this, and only one of them needs script commands - the first solution was pure eventing.
If you think you are uncomfortable with scripts, then at least try to implement the eventing method.

and if you don't know enough of eventing commands to do that, then work through the event tutorials first - event commands haven't really changed much since VXAce and earlier makers, so there are more than enough tutorials and tutorial games out there for that.

Aloways remember: no one here gets paid to help you, we all try to help in our free time instead of working on our oiwn projects. And that time is always limited for everyone here.

Original thread: https://forums.rpgmakerweb.com/threads/an-inscryption-like-map-generator-with-events.163591/