Need advice for events

Hey guys

I downloaded the maker 2 days ago and I got the gist of how almost all the basic components work.

But, I wanted to make a scene of a story and I did.

The problem is I don't know how to make certain events appear when I want to.

What I need to know:

1. How to make the event of not allowing the player to go into a room/place without playing a certain event.

2. How to allow the player to go into a place after the event has finished.

3. How to make the NPC or extra players after the story line to go away.

(Do I need like a special command for these story scenes? Like scripting?)

This is the help I need for now,

Please and thank you.

pic.png

pic1.png

pic2.png

pic3.png
If you got the program only two days ago, there is absolutely no way to know

how almost all the basic components work
Please follow the first link in my signature, the "starting point" - I wrote that to help people get started as fast as possible - and most people need a month to work through the linked tutorials, there is no way you could have learned all of that in just two days.

Your questions proof that - you'll need switches and variables for that (in all those cases).

Switches and Variables are the most important basic element of the engine - you can't do anything more complicated than a "go there" quest without using switches or variables to control the storyflow.

I suggest that you take that month off from working on your own game to work through the tutorials (working through them - just reading them will be a waste of your time), that will set you up with the basics for the RPG Makers.
.Sorry I should have had been clear

When I wrote that I was talking like the basics of what a noob can do.

Yes, they most complicated ones I don't understand are the switches and variables.

But I made this thread/forum (?) because I want to have specific problems answered than looking through videos which sometimes say the same things.

Then if that is what I have to do can anybody tell me? 

I've tried working with switches (kinda) by turning one on and a separate event off but then one of them stop to work and i just don't know
Switches don't ever just stop working. Either it was turned off again, or your page logic is off. The engine always runs the highest numbered page that is true, so if you have a page 2 (or 3 or 4) with no conditions, it will always run that page and ignore the pages below it.

If you wish to see what switches are on or off in the game, hit F9. That brings up the debugger, and you can see for yourself what switches are on or off (same with variables, etc).
What ever you do don't do what I did and wait until your second game to figure out switches and common events go check out andar's tutorial

Or just mess around for a bit I know thats not what most people want to do but I highly recommend doing this.
than looking through videos
Looking through video tutorials is even more waste of your time than even reading through a written tutorial - that's why I said you have to work though the tutorials by doing everything the tutorial writes about in your own project (that is usually scrapped later). There isn't a single link to a video tutorial from me, they're all either written tutorials or gaming tutorials.

Simply telling you what to do in those specific cases, without you understanding why you have to do that, will delay you and cause you much more problems later, when something needs to be handled slightly differently (and I wasn't joking when I said that all of your questions have the same answer, because they were technically identical).

Do yourself a favor and take that time to learn the basics, you won't get far alone without understanding them - and we can't create your game for you.
I have to agree, that you need to spend some time on the tutorials, there are plenty on the web. You have to do some learning, before you start bigger project. If not - you will be constantly making mistakes and waste your time on fixing them or learning new stuff and your work routine will be a mess.

That said, here are some tips for you:

1. Switches are kind of triggers. Let's say you have a light in you room, it's not always on, right? You have a light switch somewhere on a wall, when you use it, the light turns ON / OFF. It works the same way in programming (here - event system, but there is still programming hidden under it). 

2. Variables can be used as switches, but they have more complex functionality and can be used for many things.

For example, a variable can represent a state of your character: let's say you have a variable named 'STATE'. When STATE is equal to 0 - it means character is doing nothing, just standing there. When STATE equals 1 - he's walking, for STATE = 2 - running, STATE = 3 - fighting, and so on. Now, when you want to do something in your game, that is based on current character state, you check the value of STATE variable and react to it, for example if STATE equals 3 (so we are in combat) display health, play battle music, whatever.

Like someone said before, you can use Events System pages to handle varied situations. You wanted that soldiers to dissapear - add a second page to the event. On that page set/check some flag / variable - like soldiers_present is on and set soldier image for this page. On first page of the event don't set any conditions and leave empty event image. Now anytime you have a soldiers_present switch turned on - soldiers will be visible, when you will set it to OFF somewhere during your game - the will be hidden.

Good luck!

Bogo
1. How to make the event of not allowing the player to go into a room/place without playing a certain event.

Solution: You connect the Code of that Event with a Conditional Branch.For example:

Conditional Branch Switch1 =On

If yes = Do your Teleport and Stuff.

else = Nothing, or a Textbox that tells the Player he forgot something.

end.

2. How to allow the player to go into a place after the event has finished.

Solution: Turn Switch1 on at the end of the Eventcode of this Event you mentioned here.

3. How to make the NPC or extra players after the story line to go away.

Solution: Just use Switch1 for a Seccond empty Eventpage as Condition in your Events which shal disapear.

Original thread: https://forums.rpgmakerweb.com/threads/need-advice-for-events.45273/