Switch Puzzle help

● ARCHIVED · READ-ONLY
Started by gayvid 5 posts View original ↗
  1. So I'm working on a puzzle for my test game. I've attached some screenshots so you can see what my puzzle layout + events look like right now. I've been tinkering for a while but can't seem to get the final part to work. I think it's because I don't understand variables very well yet.

    The puzzle:

    Screen Shot 2018-07-18 at 2.28.11 PM.png

    It's a switch puzzle. The player has to obtain a jar item, fill it with water, then water all the plants to have them grow into flowers. Once all four flowers have grown, the log at the right of the screen is supposed to burn away to clear the path.

    My problem is that there is no set order that the player has to press the switches in, which is how I want it. Everything works except for the actual triggering of the log event. I know (I think) I have to use variables but I don't understand exactly how to make that work. I've tried a few ways but I've been unsuccessful.

    Help is greatly appreciated!

    Plant event:

    Screen Shot 2018-07-18 at 2.33.37 PM.png

    (without variables at the moment bc idk how to use them properly)

    Log event:

    Screen Shot 2018-07-18 at 2.34.28 PM.png
  2. It appears there is no way that you're setting that variable to be four at all, which is the requirement for the log event to take place.
  3. Heya,
    Here, what you need to do is to burn the log when all 4 plants are watered, correct ? If, in your log event, '#0001' is a variable, then you're on the right path.
    What you should do is, on the first page of each plant event, add a Control Variable command that adds 1 to Variable #0001 inside your 'If Party has Jar of Water' branch. You might have to move the Control Self Switch A command in there too.
    If I'm guessing correctly, Page 2 of the plant is the page that'll prevent you from watering it again, which means that, by triggering Self Switch A on the plant, it renders you unable to water it. It means that you can water a plant only once. Since there are four plants in total, watering all four of them should give you the result of 4 (0 (base value)+1+1+1+1), and that should trigger the log burn animation.
  4. Blackyu said:
    Heya,
    Here, what you need to do is to burn the log when all 4 plants are watered, correct ? If, in your log event, '#0001' is a variable, then you're on the right path.
    What you should do is, on the first page of each plant event, add a Control Variable command that adds 1 to Variable #0001 inside your 'If Party has Jar of Water' branch. You might have to move the Control Self Switch A command in there too.
    If I'm guessing correctly, Page 2 of the plant is the page that'll prevent you from watering it again, which means that, by triggering Self Switch A on the plant, it renders you unable to water it. It means that you can water a plant only once. Since there are four plants in total, watering all four of them should give you the result of 4 (0 (base value)+1+1+1+1), and that should trigger the log burn animation.

    That worked! Thank you! I appreciate your thorough reply haha, a lot of this stuff is simple but still confusing to me.
  5. Always happy to help ! ^^