My event isn't showing up.
RPG Maker VXAce SupportI don't use self switches so I hesitate to try and help you with this. But from what it looks like your event page has two trigger conditions. Self Switch A is On and Wood Chunk >= 5. So unless both of these conditions exists beforehand, I don't think the event will appear.
Two things.
You have the self switch set to ON
And your variables for wood chunk set to 5.
The event will not appear, unless these variables/switches are met.
In other words. He is not standing there because the switch needs to be ON before hand. And also. He will not stand there unless you already have 5 wood chunks. Try using a second event page and perhaps reconfiguring the way your variables work.
You have the self switch set to ON
And your variables for wood chunk set to 5.
The event will not appear, unless these variables/switches are met.
In other words. He is not standing there because the switch needs to be ON before hand. And also. He will not stand there unless you already have 5 wood chunks. Try using a second event page and perhaps reconfiguring the way your variables work.
I could be wrong on this, but from what I see (I am still a beginner) all you need to do is turn off the self-switch and variable switch and it should work fine.
EDIT: And maybe change the first Condition Variable. Right now, if I am reading it correctly, it will reset the variable to 0 each time you talk to the NPC.
EDIT: And maybe change the first Condition Variable. Right now, if I am reading it correctly, it will reset the variable to 0 each time you talk to the NPC.
Yes what AplhaSilvr is saying is true.
You will need to add a 'conditional branch' there which will be something like.
@> Conditional branch - when wood chunks = 0.
@> Show text
@> else (*meaning if it does not = 0)
@> Show text
The eventing system is a demanding program which requires a lot of attention to detail :|
That is one way to do it, but not the only one.
It is possible to use the variable condition for displaying NPCs after a quest is completed - you just need another event page to give that quest.
Doing every check with conditional branches can clutter up your events.
What is not possible is making a single page event conditioned on a self-switch. Because only the event itslef can turn on the self-switch, that event needs to have a page that has no self-switch-condition, and may turn on the self-switches on that page.
I suggest reading several tutorials on switches and variables before continuing. Follow the link in my signature for the most important ones.
If that screenshot came from a tutorial, you either forgot one event page or mistook the description of that tutorial - or that tutorial was wrong, because the way you set it up on the screenshot can never work.
You have the self switch set as a condition on the page where the self switch is turned on.
When you use self switches, you normally turn it on on one page, then have another page that uses it as a condition. So get rid of Self Switch A is ON from the conditions on the left, then add a new event page and add that condition back in. That second page would have a different conversation - what you want the NPC to say when you talk to him, after having given him what he needs.
You'll also want to get rid of the variable condition. You're saying not to even show the event unless you have 5 pieces of wood, so he's not even going to be there to ask for them if you don't have that.
Under most circumstances, the first page of an event would have NO conditions listed. It is the default "what will this person say the first time I talk to him, when he hasn't yet asked me for anything, and I haven't done anything for him?"
When you use self switches, you normally turn it on on one page, then have another page that uses it as a condition. So get rid of Self Switch A is ON from the conditions on the left, then add a new event page and add that condition back in. That second page would have a different conversation - what you want the NPC to say when you talk to him, after having given him what he needs.
You'll also want to get rid of the variable condition. You're saying not to even show the event unless you have 5 pieces of wood, so he's not even going to be there to ask for them if you don't have that.
Under most circumstances, the first page of an event would have NO conditions listed. It is the default "what will this person say the first time I talk to him, when he hasn't yet asked me for anything, and I haven't done anything for him?"
So having the PC give him 5 peices of wood should be on another event page? The plan and reason for the self-switch is that after the wood quest he is to just go away and stop blocking the path. How would I do that without the self-switch?
You do use the self switch. But you don't put it as one of the conditions on the first page.
Just remove the conditions on the first page and add a new page with the self switch as a condition.
Just remove the conditions on the first page and add a new page with the self switch as a condition.
I'm having some trouble wrapping my mind around having a flow of conversation across multiple event pages.
OK I've managed to get the main part working on event page 2 but it's skipping straight over the first event page.
Consider the event pages like pages in a book. it's rather rare that a (longer) conversation starts and ends on the same page in books, right?
Each page of the event is one "stepping point" on the way from giving the quest to finishing it, and you need to do those steps in order to make the quest.
First you need to give the quest: text that orders the player to seek for something
After the player returns, the event needs to check wether there is enough collected or not (second page), triggering the third page only if there is enough of the required items.
And then you need the third page where he steps aside...
Edit: If you still have problems, then give us the new screenshots of your event pages.
Did you add the conditional self switch to event page 2? Show us a screenshot of both event pages (include the WHOLE event window, not just the commands)
By moving the text from the first event to the second it seems to be working logically. Now I need to test it with the actual wood peices in play and work on making him leave. Again thank you all so far with your help. I'm still having some trouble understanding why it wasn't working but:
Linck, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
No, you have no conditions on your second page, so it is the one that will be active by default.
The engine looks at the pages, from the highest number to the lowest, and as soon as it finds a page whose conditions are true (including a page with NO conditions), it will make that page active. So if you have two pages with the same conditions, which you do, the highest numbered page will be active.
Here is what I suggest you do. Make sure you know the difference between using a switch or self switch as a condition (in the box in the upper left) and setting it (in the event commands on the right). You seem to be getting them a little mixed up.
Page 1
This page will run until you offer to help the NPC.
Conditions: none
Event Code:
Show Text "I'm sorry, but the boat is damaged. Move on."Show Choices: Anything we can do? Leave alone.When Anything we can do?Show Text: Yes, if you had chunks of wood, we could fix her.Control Self Switches A = ONWhen LeaveBranch EndPage 2This page will run after you've offered to help, and before you give the NPC the wood.
Conditions: Self Switch A is ON
Event Code:
Show Text: "Did you find the chunks of wood yet?"Show Choices: Give wood chunks, LeaveWhen Give Wood ChunksConditional Branch: Variable 0001: Wood Chunk >= 5 Change Items [Wood Chunk] -= 5 Show Text: "Oh, this is perfect. Thank you." Control Self Switches B = ONElse Show Text: "No, that isn't enough."Branch EndWhen LeaveBranch EndPage 3This page will be active after you've given the wood chunks.
Conditions: Self Switch B is ON
this event will have no sprite
Now, if you actually have an object blocking the way as well as the NPC, use an actual switch instead of self switch B, both in the event commands on page 2, and the condition on page 3. And with the event for the object blocking the way, add a second page with the same switch as the condition.
No, you have no conditions on your second page, so it is the one that will be active by default.
The engine looks at the pages, from the highest number to the lowest, and as soon as it finds a page whose conditions are true (including a page with NO conditions), it will make that page active. So if you have two pages with the same conditions, which you do, the highest numbered page will be active.
Here is what I suggest you do. Make sure you know the difference between using a switch or self switch as a condition (in the box in the upper left) and setting it (in the event commands on the right). You seem to be getting them a little mixed up.
Page 1
This page will run until you offer to help the NPC.
Conditions: none
Event Code:
Show Text "I'm sorry, but the boat is damaged. Move on."Show Choices: Anything we can do? Leave alone.When Anything we can do?Show Text: Yes, if you had chunks of wood, we could fix her.Control Self Switches A = ONWhen LeaveBranch EndPage 2This page will run after you've offered to help, and before you give the NPC the wood.
Conditions: Self Switch A is ON
Event Code:
Show Text: "Did you find the chunks of wood yet?"Show Choices: Give wood chunks, LeaveWhen Give Wood ChunksConditional Branch: Variable 0001: Wood Chunk >= 5 Change Items [Wood Chunk] -= 5 Show Text: "Oh, this is perfect. Thank you." Control Self Switches B = ONElse Show Text: "No, that isn't enough."Branch EndWhen LeaveBranch EndPage 3This page will be active after you've given the wood chunks.
Conditions: Self Switch B is ON
this event will have no sprite
Now, if you actually have an object blocking the way as well as the NPC, use an actual switch instead of self switch B, both in the event commands on page 2, and the condition on page 3. And with the event for the object blocking the way, add a second page with the same switch as the condition.
Thank you. That makes alot more sense. It's working now and I do apologize about the forum rules.
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/my-event-isnt-showing-up.16797/


