Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

[Resolved] Switches/Event Page Order?

Now, I'm fairly apt at events but I can't seem to think of a way to get this to work.
First off, RPGXP and using Near's DNS.
Secondly, here are the switches involved:
s1.jpg
s2.jpg
The script, if you didn't catch, checks a time frame and sets switch. I know that part works fine.
But what I would like to set-up is an NPC speakable with at both time frames.

Here is what I have: Page1/2
s3.jpg
s4.jpg
The problem I am having is that the 2nd page doesn't appear to work. I assume it's because that it simply doesn't go to the 2nd page so when the switch turns off, so does the event.
Alas, I am a little unsure about the priority of event pages. But I thought that if the first page's conditions weren't met, it would just go to the 2nd page and check its conditions?

If not, then how could I go about doing this?
If I used conditional branches, the said event would only fire if the user pressed the action button. So it wouldn't check the conditional branch untill then and causing the event to change randomly depending on the current switch that is on and since I am using text, parallel process will not work.

Appreciate any help :)
 
This might be tied in to issues with the script, which I can't really help with.

That said, does page one need conditions? Page two will take priority when that condition is true, after all.
 
As far as I know this has nothing to do with the script.
All the call script does is set a switch. I did check it in game to see if it was on and it is on.
So like I said, I doubt it has any meaning.
It's the event that doesn't make sense if what you're saying is true.
The first page of the event does have a condition in which the switch is set. It fires fine with no problems. But if the 2nd page does take priority I have no idea why it's not working because the switch that triggers page 1 does turn off and the switch that triggers page 2 turns on.

EDIT: Actually, it does appear to be a problem with my script. I apologize. I can figure it out from here.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top