shininblade

Villager
Member
Joined
Apr 17, 2021
Messages
18
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,100
Reaction score
2,855
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

JRPG Maker
Veteran
Joined
Jun 4, 2021
Messages
82
Reaction score
62
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
263
Reaction score
367
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
18
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

 …I think I might need to switch from standard ATK/DEF up/down buffs to parameter altering states. I just had an actor whose usual attack against an enemy does ~25 do a buffed attack against a debuffed enemy for ~600…
just saw that titan quest is free on steam until the 23rd
Zombie status is now complete. I didn't have to do much in the way of changing how healing is applied to undead targets, was just a simple 3 line code. I thought I had to overhaul Game_Action lol. Everything else was doable by events. So.. Zombie: You turn undead. Your element changes to darkness. You're weak to light, you're strong to physical attacks and healing hurts you and revival items will kill you.
My Overworld might be a mix of inspiration from 2D Final Fantasy games, Breath of Fire, Battlechasers: Nightwar, Super Mario World, and Pillars of Eternity. If I can make it more in-depth than just walking from point A to point B, that might do a lot for the gameplay experience. Hmm...

Forum statistics

Threads
115,226
Messages
1,088,224
Members
149,818
Latest member
JetWentworth
Top