Unlock a door

Status
Not open for further replies.

RATED-RKOFRANKLIN

Cardfight!! Vanguard
Veteran
Joined
Mar 13, 2012
Messages
444
Reaction score
26
First Language
English
Primarily Uses
HI everyone! I need to learn how to make key system. I have a map with a locked door. The player needs to find 3 keys to unlock the door. I tried using conditional branches and haven't had any success. The player just walks through the door without the keys. Here are some pictures of what I tried to do.





How do I make this event?

Thanks
 

Des

timefantasy.net
Veteran
Joined
Mar 2, 2012
Messages
1,371
Reaction score
510
First Language
American
Primarily Uses
N/A
The second page has no conditions—it will overwrite the first. Use a switch or self-switch to prevent the second page from taking priority.

You should take some and brush up on some of the program's basics.
 
Last edited by a moderator:

Kaiser

Veteran
Veteran
Joined
Mar 20, 2012
Messages
1,578
Reaction score
79
First Language
English
Primarily Uses
I did this before in XP but it was different. What I did was make 3 keys in the item slot named Rusty Key 1 2 and 3. Next was to do conditional branches seeing if you had all the keys, but if you didn't it would deny you. That's how I did it and still do now sometimes. I don't know how to do it without using conditional branches.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,354
Reaction score
8,533
First Language
English
Primarily Uses
RMMV
First, what turns on the second page? I don't see any switches set.

What I would do is how it seems you've started. You have your variable. Each time you find a key it adds 1 to the variable. When the variable is equal to 3, have the conditional branch turn on a self-switch. Make sure to set the second page to turn on with the self-switch.

How do you have your variable set up, because it looks like you may have a separate variable for each key? If that's the case, you would need to have the condition of each variable met, not just the one.
 

RATED-RKOFRANKLIN

Cardfight!! Vanguard
Veteran
Joined
Mar 13, 2012
Messages
444
Reaction score
26
First Language
English
Primarily Uses
The second page has no conditions—it will overwrite the first. Use a switch or self-switch to prevent the second page from taking priority.

You should take some and brush up on some of the program's basics.
I never made a locked door before. That doesn't mean someone lacks understanding of the program's basics.

I did this before in XP but it was different. What I did was make 3 keys in the item slot named Rusty Key 1 2 and 3. Next was to do conditional branches seeing if you had all the keys, but if you didn't it would deny you. That's how I did it and still do now sometimes. I don't know how to do it without using conditional branches.
First, what turns on the second page? I don't see any switches set.

What I would do is how it seems you've started. You have your variable. Each time you find a key it adds 1 to the variable. When the variable is equal to 3, have the conditional branch turn on a self-switch. Make sure to set the second page to turn on with the self-switch.

How do you have your variable set up, because it looks like you may have a separate variable for each key? If that's the case, you would need to have the condition of each variable met, not just the one.
Sorry I'm not sure what turns on the second page. I made the pages just like someone showed me on a different forum.

I set the variable at one to test it. That's why it looks like there are separate variables. Sorry.
 
Last edited by a moderator:

Shiro

Veteran
Veteran
Joined
Mar 14, 2012
Messages
262
Reaction score
54
First Language
English
Primarily Uses
Frank he just means its kinda funny that someone whos been around as long as you have doesn't know how to make this :p it is prolly one of the easiest events to do.

But yeah, conditional branch checking if you have the key, then flipping a self switch. That simple. :)
 

RATED-RKOFRANKLIN

Cardfight!! Vanguard
Veteran
Joined
Mar 13, 2012
Messages
444
Reaction score
26
First Language
English
Primarily Uses
Frank he just means its kinda funny that someone whos been around as long as you have doesn't know how to make this :p it is prolly one of the easiest events to do.

But yeah, conditional branch checking if you have the key, then flipping a self switch. That simple. :)
The self switch was the solution. Thank you.
 

Celianna

Tileset artist
Veteran
Joined
Mar 1, 2012
Messages
10,557
Reaction score
5,592
First Language
Dutch
Primarily Uses
RMMV
Don't forget that the event page furthest to the right with its conditions fulfilled will run first. Since your second event page had no conditions set, that's what was running first, it was ignoring your first event page. Having it set to 'Self switch A is on' would solve a lot of problems! But don't forget to turn that switch on in your first event page :)

I also recommend brushing up on the basics of the program, mainly event pages and switches.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,860
Messages
1,017,040
Members
137,569
Latest member
Shtelsky
Top