Require Assistance with this Puzzle

shininblade

Villager
Member
Joined
Apr 17, 2021
Messages
13
Reaction score
1
First Language
english
Primarily Uses
Other
Hi all, i'm stuck a little on a puzzle im creating, im on the right track but i seem to be missing one small switch or variable
that i cant seem to put my finger on. Anyway here's a description of what im trying to do.


5IcqTgb.png




Im trying to make a puzzle that requires 2 of the 4 stars to light up, so if for example if i interact with the red star, it will shine brighter then wait for the next command, which then i will have to activate the purple star (or vice versa) - once these two star's are lit (not in order, purple can be activated first then red, or red then purple), they will both transform into white stars and open the way.

Does anybody know how i can achieve this?
 

Hyouryuu-Na

Very very lazy
Veteran
Joined
Jun 15, 2017
Messages
1,099
Reaction score
2,821
First Language
Not English
Primarily Uses
RMMV
You want the red and purple stars to light up. So you can first have a variable. Name it something like puzzle1. When you interact with the red/purple star, the value of puzzle1 increases by 1. Check if the value of puzzle1 is 2. If it's not, do nothing. If it is, turn the stars white and open the path. Again when you interact with the other star (a separate event), the value increases by 1. After that do the same condition check again. If puzzle1 isn't 2, do nothing and if it is, they turn white and open the way. That's the general idea I have for this puzzle. You need to do some more work for cases if they're not interacted in pairs or letting the player know that they did something wrong.
 

ElCheffe

Veteran
Veteran
Joined
Jun 4, 2021
Messages
61
Reaction score
47
First Language
German
Primarily Uses
RMMV
I guess you are talking about events, so each star represents one event?

In this case you can use switches for this. It is a very simple approach but it should work:
Add an Conditional Branch for the corresponding event to check if the related event was triggered. So if you activate red, set a control switch turning on the red star (second event page with illuminated image) and the check if the second star (e.g. purple is on). If yes, set a new switch (e.g. all stars white) which should be the third page for your stars...

switches.png

Instead of using switches you could also use a variable which is probably more "elegant"
 

Nolonar

Veteran
Veteran
Joined
Feb 18, 2018
Messages
241
Reaction score
351
First Language
French, German
Primarily Uses
RMMZ
You didn't explain what the green and orange stars do, so I'm going to assume that they're completely irrelevant to your puzzle (as in: they do nothing).

Which means you need 2 switches, one for the red star, and another for the purple one. Interacting with the red star turns the "red star switch" on, and interacting with the purple one turns the "purple star switch" on.

Both stars will also have 3 event pages. Page 1 simply turns on the star's respective switch. Page 2 is active when the respective switch is turned on (Page 2 of red star needs "red star switch" turned on, and so on). And finally, page 3 requires both switches to be turned on, uses a white star sprite, and teleports the player on touch.
 

shininblade

Villager
Member
Joined
Apr 17, 2021
Messages
13
Reaction score
1
First Language
english
Primarily Uses
Other
Hi All , thank you for your quick replies, i just solved this, i wasn't too far off but eventually i got it.

If anyone is having the same problem in the future, @ me and ill post screenshots of my examples.
 

Latest Threads

Latest Posts

Latest Profile Posts

Ami
need a time to not open my MV,still addicted with new vegas

i wonder what addiction effect behind playing new vegas too much,maybe INT & Science gone worse in many days :D
cdjensen94 wrote on Kaliya's profile.
Are you the one who develops Kaliya's Visual Map Enhancements. If so I desperately need some help. I bought the plugin back a few months. I've only started using it recently.
Cause MP Damage instead of HP, Localization Plugin for Translation | RPG Maker News #112

Here in Fla were are seeing crazy covid spikes and some vaccinated getting bad infections. I had a mild fever on Thurs but it went down fast. How is everyone else doing. Hopefully you are all well. :)
Wish I was better at art, specifically that I was faster at it, bc this one NPC took Several Days to complete! It's gonna take So Extremely Long to do all of the art for my game, never mind writing it... Anyways, here's my gorgon, Hopernica Sthyxis!

57b88732c7abbcd84981dacf624a98495af61fcc.gifv

Forum statistics

Threads
113,824
Messages
1,077,726
Members
147,883
Latest member
Senppai90
Top