The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: taleg on January 16, 2006, 03:43:10 AM

Title: Switches, they just don't like me
Post by: taleg on January 16, 2006, 03:43:10 AM
Hey hey hey! I just keep on posting on the same problem. My last topic
was way too complicated and I will narrow it down a bit. So here it is:

There's two events. One trigger a page in the other and then disappears.
So far so good.
The triggered page (second page) finishes and triggers another page (third
page) within the same event.
Now.
I want the commands on the third page to run whenever I reenter the map,
but it always starts off with the second page and THEN run the third one.
I've searched for a solution on this community for about two hours but I've
come up with nothing. I've read that 3rd page dominates 2nd page, which
obviously is not always true, and that I should just set a local switch = ON (in
my case on the second page) and set it as a precondition (in my case on
the third page) and that should do it. But it still doesn't.
Does anyone have any idea as to how this can be?

I'm using the RMXP software.
Title: Switches, they just don't like me
Post by: Blasted_Redoubt on January 16, 2006, 04:16:14 AM
So, if I understand it correctly, your first page sets one switch that enables the second page to run.  Then you set another switch on for the third page to show up.

To get the event running the way you want it to, have the third page use both switches as a condition.
Title: Switches, they just don't like me
Post by: taleg on January 16, 2006, 04:31:53 AM
You understood me almost correctly. There's two events. One event triggers a page of the other event which triggers another page within the same event. But I guess it should work in the same way regardless.

And you almost had me there. But no siree! It did not work.
Title: Switches, they just don't like me
Post by: Dwarra? on January 16, 2006, 05:43:17 AM
try puting page 3 as an autostart that way it starts everytime you enter the page
Title: Switches, they just don't like me
Post by: taleg on January 16, 2006, 01:51:18 PM
I'm using parallel process instead of auto start on this page since I want to be able to move as the event plays out.
Title: Switches, they just don't like me
Post by: Dwarra? on January 16, 2006, 06:33:56 PM
oh...okay,then im stumped
Title: Switches, they just don't like me
Post by: ahref on January 16, 2006, 08:52:04 PM
page one:

preconditions: none

event commands: switch anoying somthing turn on

page 2:

preconditions:
switch 1 is on

event commands turn switch 2 on

page 3:

preconditions: switch 2 is on


altough varibles would save space
Title: Switches, they just don't like me
Post by: Dalton on January 17, 2006, 12:24:39 AM
Use Local (Self) switches, saves even more space.  Anyway seeing as I've never used Parralel Process I wouldn't know... maybe make it in one page (It's possible!! Just takes longer...)
Title: ahref
Post by: taleg on January 17, 2006, 12:15:07 PM
That's what I've done. Except for leaving the first page blank since page two gets activated by another event.
Title: Switches, they just don't like me
Post by: ahref on January 17, 2006, 08:58:20 PM
good good
Title: Switches, they just don't like me
Post by: Zeriab on January 17, 2006, 09:21:50 PM
Have you checked that what ever activates page two on the event don't continue to do so every time you reenter the map?
Title: Switches, they just don't like me
Post by: ahref on January 17, 2006, 09:24:06 PM
page 3 solves that

page 3 is triggered when a switch is turned on as long as that switch is on then whatever on that page will show
Title: ahref
Post by: taleg on January 17, 2006, 10:42:13 PM
It should, but it doesn't!
This is what I've done (I hope someone will read all of this :D)

----------------------
Event #1:
Preconditions: None
Trigger: Hero Touch

<>Variable [0005: AH Crow Attack] += 1
<>Conditional Branch: Variable [0005: AH Crow Attack] <= 1
:<>Move Event: [Attacking Crow]
:<>Proceed with Movement
:<>Wait: 1 Frames
:<>Enemy Encounter : Crow Entrance
:<>Switch [0006 Crow Disappear] = ON
<>Erase Event
<>
:End
<>
----------------------
Event #2

(Page 1)
Preconditions: None
Trigger: Action Key

<>

(Page 2)
Preconditions: Switch [0006: Crow Disappear] = ON
Trigger: Parallel Process

<>Move Event: This Event
<>Wait: 800 Frames
<>Local Switch: A = ON
<>

(Page 3)
Preconditions: Switch [0006: Crow Disappear] = ON
Local Switch A = ON
Trigger: Parallel Process
(Has a predefined route)

<>

--------------------------------
Title: Switches, they just don't like me
Post by: Zeriab on January 17, 2006, 11:06:54 PM
I would suggest you used another switch instead of a local switch so you can make sure it will change if you leave the map before the 800 frames have passed.
Title: Switches, they just don't like me
Post by: taleg on January 17, 2006, 11:22:33 PM
Finally! Thanks alot!
This opens a door to a world of problems, so I guess I have to redo the whole scene, since the mechanics of the game isn't how I thought they were. But this is good to know in the future. Again, thank you!
Title: Switches, they just don't like me
Post by: Inaru on January 18, 2006, 12:40:06 AM
Are you sure that all of the pages, including page 2, is set to Autostart/ParPro.
Title: Switches, they just don't like me
Post by: taleg on January 18, 2006, 10:39:41 AM
Yes. The problem was that the third page wasn't triggered until after 800 frames. I thought the maps were running parallel to eachother but since they aren't, with the commands I used, I'd have to wait for 800 frames before leaving the map if I wanted page 3 to run the next time I enter.