Unlock a door

● ARCHIVED · READ-ONLY
Started by RATED-RKOFRANKLIN 8 posts View original ↗
  1. 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
  2. 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.
  3. 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.
  4. 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.
  5. Walter Jr. said:
    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.

    Kaiserkami said:
    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 said:
    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.
  6. 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. :)
  7. Shiro said:
    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.
  8. 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.