Charas-Project

Game Creation => Requests => RPG Maker Programming => Topic started by: elementalhero76 on December 15, 2006, 03:54:18 AM

Title: Switch problem the sequel!
Post by: elementalhero76 on December 15, 2006, 03:54:18 AM
my problem is with those crystal switches like in zelda games where they raise and lower blocks. It seems to work better with opposite switches but I got it to work with one many times but now it doesn't work after one cycle from blue to red and then just makes the red go up and down.

heres what I did:

Four events for the block graphics red and blue (two pieces of ecah block)

two switches red to blue and blue to red on/off toggle

events set at same as hero layer when blocks are up.

three pages for the blocks

four for the switches

the pages of the blue blocks (both pieces):

page one: block graphic and blank page
Page two: block graphic w/ conditions says switch [0547 red to blue is on] block stays up  
Page three: block is in floor graphic w/ conditions says switch [0548 blue to red is on] block lowers in floor (layer below hero)

Red blocks I just reverse the switches and change the graphic to red. These will loop now.

This is not the problem, the problem is my switch that raises and lowers the blocks.

The crystal switch:

Four pages
Layer: same layer as hero on all four
trigger: acton key pressed

Page one has the red crystal graphic
Condition: none
battle graphic blinding flash occurs
and [0547 red to blue] (red blocks go down) activates
then it goes to page 2

Page two has blue crystal and is my loop start page.
Condition: [0547 red to blue is on]
Page is blank

Page three is same in conditions as page two but has
battle graphic blinding flash occurs
and [0548 blue to red] (blue blocks go down) activates
in the text page which on switch 0548 activation brings us to page four

Page four has red crystal again
Condition: [0548 blue to red] is on
battle graphic blinding flash occurs
and [0547 red to blue] (red blocks go down) activates
and is supposed to loop to page 2 then 3.

Now I didn't miss anything here that is in the events and when I test this the red block only rises and falls (coincindentially the crystal stays red) after it loops once according to the switches and their on/off toggle nature. What I ask is going on here?
Title:
Post by: Meiscool-2 on December 15, 2006, 09:12:45 PM
No offence, but it's really hard to understand what you're saying.

People say I'm a good coder, so I guess that makes me a good coder. I can try to help you, but you'll have revise your text.
Title:
Post by: Daetyrnis on December 15, 2006, 09:30:31 PM
If you print screen your event codings, your problem would be easier to understand.

Anyways, it seems that you've made it harder than it needs to be.

Orb Event:
Page 1
Conditions: none
Initiation: Action Key
Graphic: Blue Orb
Layer: Same as Hero
Script:
Play battle animation: Blinding Flash
Toggle switch [XXXX: RedBlueToggle] ON/OFF
Page 2
Conditions: Switch [XXXX: RedBlueToggle] is ON
Initiation: Action Key
Graphic: Red Orb
Layer: Same as Hero
Script:
Play battle animation: Blinding Flash
Toggle switch [XXXX: RedBlueToggle] ON/OFF

Red Block:
Page 1
Conditions: none
Initiation: none
Graphic: Raised Red Block
Layer: Same as Hero
Script:
none
Page 2
Conditions: Switch [XXXX: RedBlueToggle] is ON
Initiation: none
Graphic: Lower Red Block
Layer: Below Hero
Script:
none


Blue Block:
Page 1
Conditions: none
Initiation: none
Graphic: Lower Blue Block
Layer: Below Hero
Script:
none
Page 2
Conditions: Switch [XXXX: RedBlueToggle] is ON
Initiation: none
Graphic: Raised Blue Block
Layer: Same as Hero
Script:
none

*This all is if the orb starts blue, otherwise switch the graphics and such.

EDIT: What?  I forgot that BBCode has to be uppercase on Charas...
Title:
Post by: elementalhero76 on December 18, 2006, 03:59:15 PM
thank you. yeah i should've used printscreen.