Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Closed TopicStart new topic
> Working on A puzzle, Solved
gizmosandgames
post Sep 22 2012, 04:16 AM
Post #1


Level 1
Group Icon

Group: Member
Posts: 9
Type: Developer
RM Skill: Skilled




I have been working on A puzzle that works like this ..

Puzzle activated upon reading A poetic message one must decipher in order to have a clue on what to do next .
Upon Landing on the initial switch , > Will activate second switch to activate if > initial switch was landed on first .
Then if the player steps on the wrong switch , the cycle resets itself ( and maybe has consequences if wrong )

The trouble I am having is , deactivating switches , when the proper switch was not active
Go to the top of the page
 
+Quote Post
   
Shaddow
post Sep 22 2012, 08:35 AM
Post #2


The Eventer Inventor
Group Icon

Group: Local Mod
Posts: 1,250
Type: Event Designer
RM Skill: Masterful
Rev Points: 90




Well, I'm not sure which maker you are using this for, but in most of them you can set up a conditional branch that looks like this.

CODE
@conditional branch=switch 1 is on
switch 2 = on
else
switch 2 = off
switch 3 = off
change player hp - 50
flash screen


basically what it's doing is checking if the needed switches are on, if they are not it turns off all switches, and I also slipped some hp damage to the player for getting it wrong. For more than one switch being on you simply set it up like this.

CODE
@conditional branch = switch 1 is on
@conditional branch = switch 2 is on
switch 3 = on
  else
switch 3 = off
switch 1 = off
      else
switch 3 = off
switch 1 = off
end branch
  end branch


Sorry if that one was a little confusing, but basically what it does is check if switch 1 is on, if it is then it immediately checks if switch 2 is on. If switch one is off it goes to the first else, if switch one is on but switch 2 is off it goes to the second else, if both are on it goes to the first section and turns on switch 3. You can just repeat this for as many switches as needed.

I hope this made sense, if you are still struggling or confused, I'll make the event for you and post a screen shot, just let me know.


__________________________




I support these projects! -------------





Go to the top of the page
 
+Quote Post
   
gizmosandgames
post Sep 22 2012, 01:28 PM
Post #3


Level 1
Group Icon

Group: Member
Posts: 9
Type: Developer
RM Skill: Skilled




I uderstand t perfectly , thank ! Pretty simple ... I tend to make events more difficult , and draught out than they shoe ... I will work on this later . What I wanted is a 4 direction puzzle, and each time someone stood in the center without the right triggers would either cause them to fall in a trap door , or trigger a monster , so I suppose I should use the conditional on the center tile , and also for ease direction ...
Go to the top of the page
 
+Quote Post
   

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st May 2013 - 08:22 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker