Main Menu
  • Welcome to The RPG Maker Resource Kit.

Switches, they just don't like me

Started by taleg, January 16, 2006, 03:43:10 AM

0 Members and 1 Guest are viewing this topic.

taleg

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.

Blasted_Redoubt

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.

taleg

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.

Dwarra?

try puting page 3 as an autostart that way it starts everytime you enter the page

taleg

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.

Dwarra?


ahref

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

Dalton

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...)

taleg

That's what I've done. Except for leaving the first page blank since page two gets activated by another event.

ahref


Zeriab

Have you checked that what ever activates page two on the event don't continue to do so every time you reenter the map?

ahref

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

taleg

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)

<>

--------------------------------

Zeriab

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.

taleg

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!

Inaru

Are you sure that all of the pages, including page 2, is set to Autostart/ParPro.

taleg

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.