.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.
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.