Also, if one has...
◆If:var = 0
◆Control Variables:#0001 var += 1
◆
:End
Can it keep increasing on one page? That is, if 1 then +1, if 2 then +1 etc. Would it ignore the first 'if' and go to the second?
Where is the "first" and "second" if?
The Control Variables will only ever get executed once, no matter how many times that page runs, because the variable will only be 0 once. Unless you do something to set it back to 0.
I got something like...
◆If:var = 0
◆Control Variables:#0001 var += 1
◆
:End
◆If:var = 1
◆Control Variables:#0001 var += 1
◆
:End
◆If:var = 2
◆Control Variables:#0001 var += 1
◆
:End
All on one page... would the player trigger it every time so it can go from one to the other? Doesn't seem like it's working, I even tried them nested in an else.
What Is the event trigger set to?
Better yet.. what are you trying to accomplish?
If this event is increasing the variable each time.. forget the if and just +1 end.
If the variable was 0 to begin with, and it encountered all of those conditions exactly as you've got it there, then the variable would go from 1 to 2 to 3 to 4, and all of those blocks would be run.
If that's not what's happening, then either your variable is not 0 to start with, you don't have those conditions in that order, they're nested inside one another, or you have something else changing the variable.
If you want further help, show a screenshot of the event (full event window) so we can see if there's anything else odd there. You could also try a Text right at the start and at the end of the event with \v[1] just to show what it is at the beginning and end of the event.
And no, the player would not be able to trigger it every time - only the first time. Because only the first time would the variable be 0. The second time it would be 4, so none of the conditions would be met. You would have to do something to set it back to 0 before the event triggers again.
Please give screenshots.
Are you using the variable anywhere else? In a plugin? Did you add plugins, and did you check them all to see if they were using variables for anything?
There is nothing at all wrong with that event. You're sure it's being triggered - the text boxes are showing?
Can you edit one of the conditional branches and screenshot that so I can see how you've got it set up? Any of them will be fine.
There's got to be something else changing it then.
Try this ... create a brand new project. Don't add any plugins, and disable the ones that might be there and on by default. Copy this event and paste it onto a map on the new project. Throw in your player, and test play. What does it do?
I made a mistake... but now my problem is that a condition that's supposed to look out for > or = than the quoted number isn't triggering... if there aren't any other if clauses on page 2 that match the number, but a sidebar condition on page 1 presumably it goes to that page?
screenshots ... we can't tell you what you've done wrong, if you don't show us what you've done.
Also, what was the mistake you made?
I kept loading it instead of quitting and restarting... and, I solved the last problem by simply making another if... not sure why it didn't go from page 2, to 1, as that's the correct order priority as far as I know, but it works on the same page...
Also, is v the same as V mentioned in the popup in the text window? It just mentions text being replaced...
It should go from page 1 to 2. The game starts from the highest numbered page and works its way back until it finds one with no conditions, or all conditions met.
So if page 1 is var >= 5 and page 2 has no conditions, page 2 will always be the active one.
If it has no conditions to fulfill it doesn't go to 1? So it'll only go if it's a switch?
Why not make the player touch event run a common event that's increasing the variable by 1 every time the player touches it? Common events run their code once and can be triggered every time.
No need for multiple pages. Just var +1 and whatever else you want to do with it.
As I said it starts from the highest page number and works its way down to the lowest. As soon as it finds a page where all conditions are met, or where there are no conditions, that becomes the active page and it stops looking.
So if you have conditions on page 1, and no conditions on page 2, the active page will be page 2.
Generally, as an event progresses throughout the game, the new stuff will be on higher-numbered pages, not the other way around.