Hi, I am making a game for University using RPG Maker XP and I have ran into an issue. I have it set up so that when the player uses the action button on a certain tile it brings up the option to talk to an NPC that is not currently visible. When you choose to, it turns a switch on that switches the NPC's events, making them visible and takes the player into a dialogue with the NPC. The problem that I have is that you can't get out of the dialogue. When you reach the end of the dialogue it will loop back to the beginning where you can choose to talk to the NPC, if you then choose no, it just asks again.
Event keeps repeating
RPG Maker XP SupportThat's because you don't have a Switch that turns the event off after you finish it, so it will just loop to the beginning again. You either need that or make sure the event is switched to Action Button or Touch. A simple Self-switch will work too. ((haven't worked with ACE though, so I don't know if it has the Self Switch feature.))
Hey, welcome! Always good to see another XP user.
Could you send a screenshot of your event window(s)? Usually something looping in a way that you can't get out of means an autorun is still going somewhere, but from your description I can't quite figure where. Omnislash's suggestion of turning on a switch or self switch at the end of the dialogue is a good one, but I'm really curious to see how you've set it up!
Alternately, it sounds like you might be using a Loop in there somewhere, which you shouldn't need.
If you can send those screenshots (of the entire event window, please, including the conditions and movement/trigger settings) I can try to be more helpful!
Could you send a screenshot of your event window(s)? Usually something looping in a way that you can't get out of means an autorun is still going somewhere, but from your description I can't quite figure where. Omnislash's suggestion of turning on a switch or self switch at the end of the dialogue is a good one, but I'm really curious to see how you've set it up!
Alternately, it sounds like you might be using a Loop in there somewhere, which you shouldn't need.
If you can send those screenshots (of the entire event window, please, including the conditions and movement/trigger settings) I can try to be more helpful!
There is a lot of dialogue so I had to split the NPC events into two screenshots, but nothing was missed, the first 2 lines in the second is the last 2 in the first
So this is the trigger for the NPC and is what gets repeated at the end of all the dialogue
Empty event so the NPC stays hidden
NPC event 1
NPC event 2
The only option that stops it is the very end one that turns off the Not Started switch that's on the first event but I would like the player to be able to turn down helping and still be able to carry on.
I have other characters in the game, and talking to them is fine, you can leave when you choose to leave, but specifically this one just wont work.
I hope these screenshots are helpful :3
There is a self switch feature but im not sure how to use it properly. The event is already on Action Button so I am at a loss there...
Weird, it's not letting me see the attachments! It says "oops! the requested page could not be found."
It sounds like a self-switch wouldn't do what you need--but regular switches probably would. You could add two switches--for the sake of demonstration, let's call your switches 01: NPC Visible, 02: NPC Dialogue Complete, and 03: NPC Bypassed.
When the player finishes talking to the NPC, turn on Switch 02: NPC Dialogue Complete. Make a new page on the problem event that's blank, and set it to Condition If Switch: 02 is ON--that should stop the dialogue running.
If the player chooses not to talk to the NPC, turn on Switch 03: NPC Bypassed, and same thing--create a new, blank event page with the condition If Switch: 03 is ON. That should stop the dialogue running on that branch.
It's not the world's most elegant solution--if you can try including the images of the attachments in your post, I can take another stab at it that might be a little more efficient/elegant!
(Self-switches are switches that only affect the event that they're located in--extremely useful for things like chests! You can open the chest and then turn on Self Switch A, then set page 2 to condition if Self-Switch A is ON, and give it the opened chest graphic--no need to have individual switches for Treasure Chest 1, Treasure Chest 2, etc!)
It sounds like a self-switch wouldn't do what you need--but regular switches probably would. You could add two switches--for the sake of demonstration, let's call your switches 01: NPC Visible, 02: NPC Dialogue Complete, and 03: NPC Bypassed.
When the player finishes talking to the NPC, turn on Switch 02: NPC Dialogue Complete. Make a new page on the problem event that's blank, and set it to Condition If Switch: 02 is ON--that should stop the dialogue running.
If the player chooses not to talk to the NPC, turn on Switch 03: NPC Bypassed, and same thing--create a new, blank event page with the condition If Switch: 03 is ON. That should stop the dialogue running on that branch.
It's not the world's most elegant solution--if you can try including the images of the attachments in your post, I can take another stab at it that might be a little more efficient/elegant!
(Self-switches are switches that only affect the event that they're located in--extremely useful for things like chests! You can open the chest and then turn on Self Switch A, then set page 2 to condition if Self-Switch A is ON, and give it the opened chest graphic--no need to have individual switches for Treasure Chest 1, Treasure Chest 2, etc!)
I think I just fixed the problem of the attachments not showing up if you could have another look I would appreciate it
There we go! Thank you, that's a huge help! I do see what's causing the problem.
Nessie's dialogue is set to Autorun--that's what's causing it to loop when the player chooses to leave! You could turn on a switch of some sort there to stop it--exactly what that switch does will depend on whether or not you want the player to be able to come back later and help Nessie then.
But! There is actually an easier way: instead of putting Nessie's dialogue on the event with Nessie's sprite and using autorun, take all of that dialogue and other event commands and move them under the "Yes" conditional branch of the "yell out to the lake" event. Switches work outside of their events, so turning on the "Revealed" switch will still make Nessie's graphic show up when you want it to! But nothing will be set to autorun, so there won't be risk of anything looping unexpectedly.
I hope that makes sense! Give it a try and let me know how it goes.
Nessie's dialogue is set to Autorun--that's what's causing it to loop when the player chooses to leave! You could turn on a switch of some sort there to stop it--exactly what that switch does will depend on whether or not you want the player to be able to come back later and help Nessie then.
But! There is actually an easier way: instead of putting Nessie's dialogue on the event with Nessie's sprite and using autorun, take all of that dialogue and other event commands and move them under the "Yes" conditional branch of the "yell out to the lake" event. Switches work outside of their events, so turning on the "Revealed" switch will still make Nessie's graphic show up when you want it to! But nothing will be set to autorun, so there won't be risk of anything looping unexpectedly.
I hope that makes sense! Give it a try and let me know how it goes.
That worked! I moved all of it over and it works perfectly fine! Thank you so much!
I'm glad it worked! You're very welcome. Good luck, and have fun!
The one snag that I might have left for you is to be sure you take Nessie's page off autorun or it will hang up on trying to run an event with nothing in it over and over--but it sounds like you avoided that trap!
(and for the record, I would love to bring Nessie a fish XD)
The one snag that I might have left for you is to be sure you take Nessie's page off autorun or it will hang up on trying to run an event with nothing in it over and over--but it sounds like you avoided that trap!
(and for the record, I would love to bring Nessie a fish XD)
Just for you to learn more about how to use switches and self switches, I'm gonna let you in on a 101 secret.
While Nessie is supposed to be hidden, don't ever use any kind of switch. [You're done this! Yay!]
Use a self switch like A to make Nessie show up and talk its way out of her empty stomach issue.
Use 2 other self switches, B for helping Nessie get some food and C for Nessie to get the heck out of there or it will get hunted down by a ferocious protagonist. 😮
Obviously, each new page gets one of those self switches.
You could still use global switches (No. 20 or 100, etc.) if the outcome of this little chat has a lot more implications for the lead character than we've seen so far. (Like getting his ass kicked out of a saloon for helping an alleged monster for no good reason or being questioned by some environment activist, for instance.)
OK, this wasn't a secret at all. 😅
While Nessie is supposed to be hidden, don't ever use any kind of switch. [You're done this! Yay!]
Use a self switch like A to make Nessie show up and talk its way out of her empty stomach issue.
Use 2 other self switches, B for helping Nessie get some food and C for Nessie to get the heck out of there or it will get hunted down by a ferocious protagonist. 😮
Obviously, each new page gets one of those self switches.
You could still use global switches (No. 20 or 100, etc.) if the outcome of this little chat has a lot more implications for the lead character than we've seen so far. (Like getting his ass kicked out of a saloon for helping an alleged monster for no good reason or being questioned by some environment activist, for instance.)
OK, this wasn't a secret at all. 😅
That is super helpful, thank you, I will keep that in mind for when Nessie is fed or meets an unruly end...
Original thread: https://forums.rpgmakerweb.com/threads/event-keeps-repeating.163776/