RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Switches, they just don't like me

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 89
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.

**
Rep: +0/-0Level 89
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.

**
Rep: +0/-0Level 89
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.

*
Rep:
Level 97
Secret Santa 2013 ParticipantSecret Santa 2012 Participant2011 Most Successful Troll
try puting page 3 as an autostart that way it starts everytime you enter the page

**
Rep: +0/-0Level 89
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.

*
Rep:
Level 97
Secret Santa 2013 ParticipantSecret Santa 2012 Participant2011 Most Successful Troll
oh...okay,then im stumped

*
Resident Cloud
Rep:
Level 91
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

***
Rep:
Level 90
~
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...)

**
Rep: +0/-0Level 89
That's what I've done. Except for leaving the first page blank since page two gets activated by another event.

*
Resident Cloud
Rep:
Level 91

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
Have you checked that what ever activates page two on the event don't continue to do so every time you reenter the map?

*
Resident Cloud
Rep:
Level 91
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

**
Rep: +0/-0Level 89
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)

<>

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

*
? ? ? ? ? ? ? ? ? The nice kind of alien~
Rep:
Level 92
Martian - Occasionally kind
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.

**
Rep: +0/-0Level 89
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!

****
Rep:
Level 91
Are you sure that all of the pages, including page 2, is set to Autostart/ParPro.

**
Rep: +0/-0Level 89
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.