Home
Help
Search
Calendar
Login
Register
Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Click here to join us on IRC (#charas on irc.freenode.net)!
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
Not sure how to program this puzzle, advice please
« previous
next »
Print
Pages: [
1
]
Author
Topic: Not sure how to program this puzzle, advice please (Read 1462 times)
Dele
Maker of um... Stuff.
Initiate
Posts: 49
Not sure how to program this puzzle, advice please
«
on:
May 08, 2007, 07:23:28 AM »
Ok let me explain this puzzle I'm working on first.
In the Elemental Chamber in my game, you must set the proper orb to the statue's elemental weakness. (Example: Fire Statue to Water orb, Wind Statue to Earth Orb ect.)
This part is complete I had no trouble with it I basically used a ton of switches and Items for each Orb in the room and nothing more (I know there's probably an easier way but that's how I did it and it works as far as I know.)
Anyways, that's not the issue here, The second part is. When all the Orbs are placed on the appropriate statues, it causes the next step in the puzzle to start, in this part of the puzzle you have to push the elemental cube next to the elemental statue with the same elemental property (Example: Fire Cube next to Fire Statue) There's a little slot for each cube next to each statue.
The problem is, I don't know how to get a switch to activate when another switch touches it. (In this situation, when the Fire Cube moves into the Fire Statue's slot next to it) I want it so when all of the Elemental cubes are pushed into there appropriate slots it will activate a switch and drop the chest down into the middle of the room where you recieve your prize.
Can anyone tell me how to do this? I'm not too good with variables or setting event location IDs yet. I read through the stickies they helped but I'm still confused.
Logged
Sig edited by me, original artist Lasaro.
"Cry not for what I am, cry for what I have become..."
-Kaijji
Luminus v1.2
DragonBlaze
A Wild DB Appeared!
Royal
Posts: 3,329
(No subject)
«
Reply #1 on:
May 08, 2007, 01:53:17 PM »
yeah, you pretty much need to use variables.
I dont have much time now, so ill make this quick.
Anyway you need a parallel process event, record the x and y possition of each of the blocks and the locations into variables with the variable options. After that, make fork conditions and test if the fire block x possition matches the slot x possition, and then the same for the y. Do the same for all the other ones.
Ok, that probably didn't help at all, I can give you a better explanation later, but thats how you gotta do it
Logged
Hell Yeah! Just recovered all my old rm2k/3 games from my 10 year old, broken laptop hard drive that had been formatted and had a new OS installed on it. Oh, and I did all of this from my phone. WIN
game_maniac
Member
Acolyte
Posts: 350
(No subject)
«
Reply #2 on:
May 08, 2007, 03:59:37 PM »
Wait is this for 2k/2k3 or xp? If it's for xp, I remember some guy posted a demo fo how to do it without scripting.
Logged
Um, not to sound stupid or anything but what's castration? Is it like a food or something?" -vannypegasus, Pokémon board (6/14/05)
BlackRose203: There are only 21 hours in a day. Go to school more. -_-
Dele
Maker of um... Stuff.
Initiate
Posts: 49
(No subject)
«
Reply #3 on:
May 08, 2007, 05:59:36 PM »
This is for 2k3, and thanks dragonblaze I'll try tinkering with it while I wait for your full answer. =)
Edit: ok I got the cube variables to work in part 2 of the puzzle, I've only got 1 working switch so far, I seem to be having trouble making more than one of the switches to work
Currently I have this:
Fire Cube event:
Switch: [4/4Part 2 ON] [On] (This is the switch that activates the second part of the puzzle)
Action Key
<>Move Event: This Event, Move away from Hero, Sound Effect (The sound of fire is made when moving the block)
Proceed with Movement
Fire Button event: (Placed in the slot where the Fire Cube should go)
Switch: None (Because it does nothing, just a marker)
Action Key
Earth Cube event:
Switch: [4/4Part 2 ON] [On] (This is the switch that activates the second part of the puzzle)
Action Key
<>Move Event: This Event, Move away from Hero, Sound Effect (The sound of fire is made when moving the block)
Proceed with Movement
Earth Button event: (Placed in the slot where the Fire Cube should go)
Switch: None (Because it does nothing, just a marker)
Action Key
I have a event that processes all the coordinates for all the elemental switches and elemental cubes:
Coordinate Switch event:
Switch: [4/4Part 2 ON] [On]
Parallel Process
<>Variable Oper.: [0013: Fire Cube X] Set, Fire Cube X Coord.
<>Variable Oper.: [0014: Fire Cube Y] Set, Fire Cube Y Coord.
<>Variable Oper.: [0015: Fire Button X] Set, Fire Button X Coord.
<>Variable Oper.: [0016: Fire Button Y] Set, Fire Button Y Coord.
<>Variable Oper.: [0017: Earth Button X] Set, Earth Button X Coord.
<>Variable Oper.: [0018: Earth Button Y] Set, Earth Button Y Coord.
<>Variable Oper.: [0019: Earth Cube X] Set, Earth Cube X Coord.
<>Variable Oper.: [0020: Earth Cube Y] Set, Earth Cube Y Coord.
There is currently only 2 Cubes and Buttons I'm doing them one switch at a time so the other 2 (Ice, Wind) are not created yet.
This is where I begin to have problems, I can get the first button to work, but beyond that it will not work.
Ok next event, this part works:
Cube Processing event:
Switch: [4/4Part 2 ON] [On]
Parallel Process
<>Branch if Var [0013: Fire Cube X] is V[0015] Equal
--<>Branch if Var [0014: Fire Cube Y] is V[0016] Equal
---<>Play Sound: Key
---<>Switch Operation: [PyuPyu Egg 1/4] ON
---<>Switch Operation: [Fire Cube] ON
---<>
- :End
-<>
:End
Page 2 of Cube Processing event:
Switch: [Fire Cube] ON
Action Key
Event Commands: None
Cube Proccessing 2 event:
Switch: [4/4Part 2 ON] [On]
Parallel Process
<>Branch if Var [0019: Earth Cube X] is V[0017] Equal
--
---<>Play Sound: Key
---<>Switch Operation: [PyuPyu Egg 2/4] ON
---<>Switch Operation: [Earth Cube] ON
---<>
- :End
-<>
:End
Page 2 of Cube Processing 2 event:
Switch: [Earth Cube] ON
Action Key
Event Commands: None
The problem I'm having now is when I begin part 2 of the puzzle, the Fire Cube puzzle would work, but then I made the Earth Cube part of it exactly the same with different variables and switches and now as soon as I finish part 1 of the puzzle (the Elemental Orb part) it skips ahead, all the switches from part 2 activate immediately and the puzzle becomes solved automatically. : So what am I doing wrong?
Edit again: Ok I got it now, I just had to set my character's X and Y coordinations in the parallel process. Thanks.
Logged
Sig edited by me, original artist Lasaro.
"Cry not for what I am, cry for what I have become..."
-Kaijji
Luminus v1.2
Print
Pages: [
1
]
« previous
next »
Charas-Project
»
Game Creation
»
Requests
»
RPG Maker Programming
»
Not sure how to program this puzzle, advice please