VXAce Help on this one

I am making a choice like in Kingdom Hearts, where you choose one weapon and sacrifice another to progress the tutorial?
1769567599170.png


Update: I decided to fool around with the variables with a few youtube tutorials.
1769895631193.png

1769895646762.png

1769895663449.png

It seem to have worked on test, is there a way to make this into the demo game I am working on?

Update two: there's another issue. Go to timestamp 1:01 to see.

Might wanna say what your actual problem is.
A local switch only affects the event that triggered it.
You need to use a normal (Global) switch that can trigger the second page on the other event.
Or better yet, use a single variable for each part of the tutorial:

Weapon 1
Code:
@>Text:-,-, Normal, Bottom
:        : Take the Spear of Achilles?
@>Show Choices: Yes, No
  :   When [Yes]
      @>Change Equipment: [Erik], Weapon = [Spear of Achilles]
      @>Control Variables: [0005:Tutorial] += 1
      @>
  :   When [No]
      @>
      Branch End
@>

Weapon 2:
Code:
@>Text:-,-, Normal, Bottom
:        : Take the Sword of Perseus?
@>Show Choices: Yes, No
  :   When [Yes]
      @>Change Equipment: [Erik], Weapon = [Sword of Perseus]
      @>Control Variables: [0005:Tutorial] += 1
      @>
  :   When [No]
      @>
      Branch End
@>

Then you just need to activate the second page with the minimum value for the next step of the tutorial, considering that it's the first part, so it's 1 or greater and the event cannot be repeated.
1769572279822.png

1769572251880.png
A local switch only affects the event that triggered it.
You need to use a normal (Global) switch that can trigger the second page on the other event.
Or better yet, use a single variable for each part of the tutorial:

Weapon 1
Code:
@>Text:-,-, Normal, Bottom
:        : Take the Spear of Achilles?
@>Show Choices: Yes, No
  :   When [Yes]
      @>Change Equipment: [Erik], Weapon = [Spear of Achilles]
      @>Control Variables: [0005:Tutorial] += 1
      @>
  :   When [No]
      @>
      Branch End
@>

Weapon 2:
Code:
@>Text:-,-, Normal, Bottom
:        : Take the Sword of Perseus?
@>Show Choices: Yes, No
  :   When [Yes]
      @>Change Equipment: [Erik], Weapon = [Sword of Perseus]
      @>Control Variables: [0005:Tutorial] += 1
      @>
  :   When [No]
      @>
      Branch End
@>

Then you just need to activate the second page with the minimum value for the next step of the tutorial, considering that it's the first part, so it's 1 or greater and the event cannot be repeated.
View attachment 359179
View attachment 359178
Like this?
1769880317006.png

Edit: Umm...
They're gone when I played the test.
1769881434774.png
The event will never appear on the screen if you put a Switch on page 1.

Edit:
I injured my right eye because of a strong wind that hit it with something small, and I couldn't see the image clearly.
You set Page 1 to activate only when the variable is 1, but as we know the variable starts at zero, the image is quite different from what I showed.

Please look at the examples.
The event will never appear on the screen if you put a Switch on page 1, besides, I said not to use Switch but Variable instead.
Ok. Should I fix this?
The event will never appear on the screen if you put a Switch on page 1.

Edit:
I injured my right eye because of a strong wind that hit it with something small, and I couldn't see the image clearly.
You set Page 1 to activate only when the variable is 1, but as we know the variable starts at zero, the image is quite different from what I showed.

Please look at the examples.
Alright, like to share how I could fix this in video form?
Create page 2 as I said before, it doesn't exist and you read that I instructed to have a new page in the event, please, I'm not going to make a 2-second video showing how to click the New Page button, help me...
Disable the Variable Condition on page 1 and enable it on page 2.

Spoiler: How page logic works
  • If you don't create page 2 in the events, how do you expect it to be activated?
  • If you set a condition for page 1 to exist, how do you expect it to start without the condition required by your programming being met, OR without the player reaching those conditions?

This applies to every item on the map:
Good lucky
Wait... Oh, I'm so sorry; I had misread what your first answer. 😅
Create page 2 as I said before, it doesn't exist and you read that I instructed to have a new page in the event, please, I'm not going to make a 2-second video showing how to click the New Page button, help me...
Disable the Variable Condition on page 1 and enable it on page 2.

Spoiler: How page logic works
  • If you don't create page 2 in the events, how do you expect it to be activated?
  • If you set a condition for page 1 to exist, how do you expect it to start without the condition required by your programming being met, OR without the player reaching those conditions?

This applies to every item on the map:
Good lucky
No problem 😉

Solved now?
The event will never appear on the screen if you put a Switch on page 1.

Edit:
I injured my right eye because of a strong wind that hit it with something small, and I couldn't see the image clearly.
You set Page 1 to activate only when the variable is 1, but as we know the variable starts at zero, the image is quite different from what I showed.

Please look at the examples.

No problem 😉

Solved now?
Yeah, :eswt: I solved it but three out of four weapons had ninja-vanished after selected one of them, before that, the two first weapons were not available but the spear is.
There was no need to create another topic for a problem related precisely to the knowledge of page usage.

But let's continue there, no need to reply, just click report and let the moderator know it's been resolved.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/help-on-this-one.182170/