I'll try to explain this the best way I can. So, I'm currently working on a project which is a Dungeon RPG. For those of you familiar with the genre, you know most of the interacting is done through menus. That's what I've been doing for my project as well and most of it has been working fine... Except for quests. I'm encountering a problem with this because normally, in other RPGs, you'd just go talk to the NPC and they would have their very own event, right?
Well, that sort of thing is a bit more difficult in a first person RPG, heh. The entire town, the menu, and everything that goes on within those submenus are all on one event. Right now, that's well over 200 lines of code, dialogue, switches, variables, you name it. Now, I have the quests set up to be accepted at the guild, right? Well, implementing that part was simple enough, but the problem came when I tried to make the first quest. For starters, I have a warning message that pops up whenever the player tries to leave the town before accepting the quest. It simply tells them they need to continue looking around first. That was easy enough.
However, when it came time to teleport back to the dungeon after accepting the quest, the menu (which is constantly looping) stayed on the screen after entering the dungeon. So, I added a break loop command and that got rid of the menu in the dungeon, but as you may have already guessed... My little warning message didn't like that too much, lol. Now, whenever the player clicks on 'Dungeon' before they get the quest, it displays the warning message, then the menu disappears. I finally found a quick solution to this by using 'end event processing' after they teleport to the dungeon so it can still loop the menu if they don't have the quest and get rid of the menu once they're in the dungeon.
"But what happened to the town?" you ask? Well, in the dungeon, there's actually an event which takes place in front of the door to the town (which initiates all of this). Seeing as that was a one time event anyway, that's why I'm able to get away with wiping the entire event once you leave (don't worry, this ties into my current problem). Well, I created a new event on the wall (basically how I open and close doors in my project) to allow the player to access the town again with all of the menus and such intact. Now here's where my problem comes in.
[IMG]http://i.imgur.com/YHLG435.png[/IMG]
[IMG]http://i.imgur.com/PeJpUNU.png[/IMG]
Event 1 is where we accept the quest and it lets the game know it should only be run once to avoid repeating itself (like any one time event). However, due to me having to "split the town" earlier, the events aren't tying together. Basically, Event 1 has self-switch A active, yet in Event 2, all of this isn't present (since they've already accepted the quest earlier). When I created a test quest before this, it seemed fairly simple. I just added Self-Switch A when they accepted the quest, then Self-Switch B after they obtained the reward(s) and that was that. They couldn't repeat the quest or get the reward(s) again.
Now, here is Event 2:
[IMG]http://i.imgur.com/RUWy7TW.png[/IMG]
Unfortunately, despite Self-Switch B being active during this, any time I click on the 'Quests' submenu after turning in the quest, it simply repeats the process and the player can repeat it as many times as they want. Here's what I'm wanting to accomplish:
A. When the player originally accepts the quest, they can click on 'Quests' and have the game check to see if they have completed the task yet. If they haven't, they will be told to do so.
B. When the player turns the quest in, they should only receive the reward(s) one time, as well as the conversation which takes place with it.
B2. In this particular instance, another NPC is congratulating them on a job well done and tells them to come back when they're ready to take on a real job/quest (this should be the point where when the player clicks on 'Quests', it will initiate the new quest available).
C. A greater understanding of how quests can work with menus would be greatly appreciated.
After attempting a few more ideas over the course of two, almost three, hours... I finally found a solution to my problem here.
[IMG]http://i.imgur.com/xiHrowU.png[/IMG]
[IMG]http://i.imgur.com/NkNXQzj.png[/IMG]
Okay, so basically what I did here was remove the conditional branch to have the NPC check to see if you had completed the task. As it stands, my town event is on page 1 and 2 of the second event. The only difference is, the first page doesn't have the variable active, so when you go to the guild to access 'Quests', the NPC will know you haven't completed it yet. However, when you do complete the quest and return back to town, that's when the magic happens!
Page 2 will load instead which does have the variable active because it knows you have the key item. So, what I did tonight was I simply edited the conditional branch on page 2 since I didn't feel the need to have the NPC tell you that you hadn't completed the quest yet since page 2 only loads if you have completed it, so that was pointless to keep in the event. Instead, I replaced that section by including another conditional branch with dialogue and a quest event that takes place by determining if the previous quest is now OFF (which normally isn't what you'd need to do since a simple Self-Switch would do just fine, but not in my project's case because I've got too much going on in one event, lol).
I've also realized that I can store up to 99 pages for one event and each quest will probably take 2-3 pages. Unless I'm mistaken, I'll basically have to copy the entire page for the town and paste it every time I want to start an event, then paste it on the next page and have that one load when the quest is completed. I'm assuming since it's all running under one event, that Self-Switch A/B/C/D will work on every page as long as it's active on 4 pages (basically, I won't need to make a new page for A/B/C/D and page 89, for example, could still use the Self-Switch from page 3 even though page 1 already used it before for its event). This entire project, even from the beginning, has been way too complicated when it really shouldn't be, but I've had to work with what I've got here and basically hold everything together with bubblegum and duct tape, lol.
Now I know exactly why most DRPG projects I've heard of either died due to lack of interest or frustration. People told me before that making a DRPG in RPG Maker is difficult because it's simply not designed for it. Oh how I wish they were wrong, lol.
Alright, so apparently my plan to put a new quest on each page didn't work. Now when I go back to the dungeon to complete the first quest, then go back to town to turn it in, the NPC is already asking me if I've completed the second quest. I'll try just slapping on some more conditional branches to see if that helps.
4+ hours of additional testing and I still can't seem to get one quest to run after another properly in my project. The first quest finishes fine, then you can begin the second quest when you access the 'Quests' menu again. After accepting it though, if you click 'Quests' again, it repeats and I have no idea how to stop it from doing so since I have so many switches, conditional branches, and variables in place that they all basically rely on one another.
Basically...
When you finish the first quest, it flips a switch to turn that off since the quest is done. The second quest begins with a conditional branch to check to see if that switch is flipped off. Since it is, the quest can begin. However, since I need the switch flipped off to end the previous quest and initiate the next quest, I can't really move forward here without having the second quest initiation constantly repeat.
So yeah, I'm hosed for the time being. I'll bang my head against it some more after I wake up and see what happens.
Well, that sort of thing is a bit more difficult in a first person RPG, heh. The entire town, the menu, and everything that goes on within those submenus are all on one event. Right now, that's well over 200 lines of code, dialogue, switches, variables, you name it. Now, I have the quests set up to be accepted at the guild, right? Well, implementing that part was simple enough, but the problem came when I tried to make the first quest. For starters, I have a warning message that pops up whenever the player tries to leave the town before accepting the quest. It simply tells them they need to continue looking around first. That was easy enough.
However, when it came time to teleport back to the dungeon after accepting the quest, the menu (which is constantly looping) stayed on the screen after entering the dungeon. So, I added a break loop command and that got rid of the menu in the dungeon, but as you may have already guessed... My little warning message didn't like that too much, lol. Now, whenever the player clicks on 'Dungeon' before they get the quest, it displays the warning message, then the menu disappears. I finally found a quick solution to this by using 'end event processing' after they teleport to the dungeon so it can still loop the menu if they don't have the quest and get rid of the menu once they're in the dungeon.
"But what happened to the town?" you ask? Well, in the dungeon, there's actually an event which takes place in front of the door to the town (which initiates all of this). Seeing as that was a one time event anyway, that's why I'm able to get away with wiping the entire event once you leave (don't worry, this ties into my current problem). Well, I created a new event on the wall (basically how I open and close doors in my project) to allow the player to access the town again with all of the menus and such intact. Now here's where my problem comes in.
[IMG]http://i.imgur.com/YHLG435.png[/IMG]
[IMG]http://i.imgur.com/PeJpUNU.png[/IMG]
Event 1 is where we accept the quest and it lets the game know it should only be run once to avoid repeating itself (like any one time event). However, due to me having to "split the town" earlier, the events aren't tying together. Basically, Event 1 has self-switch A active, yet in Event 2, all of this isn't present (since they've already accepted the quest earlier). When I created a test quest before this, it seemed fairly simple. I just added Self-Switch A when they accepted the quest, then Self-Switch B after they obtained the reward(s) and that was that. They couldn't repeat the quest or get the reward(s) again.
Now, here is Event 2:
[IMG]http://i.imgur.com/RUWy7TW.png[/IMG]
Unfortunately, despite Self-Switch B being active during this, any time I click on the 'Quests' submenu after turning in the quest, it simply repeats the process and the player can repeat it as many times as they want. Here's what I'm wanting to accomplish:
A. When the player originally accepts the quest, they can click on 'Quests' and have the game check to see if they have completed the task yet. If they haven't, they will be told to do so.
B. When the player turns the quest in, they should only receive the reward(s) one time, as well as the conversation which takes place with it.
B2. In this particular instance, another NPC is congratulating them on a job well done and tells them to come back when they're ready to take on a real job/quest (this should be the point where when the player clicks on 'Quests', it will initiate the new quest available).
C. A greater understanding of how quests can work with menus would be greatly appreciated.
After attempting a few more ideas over the course of two, almost three, hours... I finally found a solution to my problem here.
[IMG]http://i.imgur.com/xiHrowU.png[/IMG]
[IMG]http://i.imgur.com/NkNXQzj.png[/IMG]
Okay, so basically what I did here was remove the conditional branch to have the NPC check to see if you had completed the task. As it stands, my town event is on page 1 and 2 of the second event. The only difference is, the first page doesn't have the variable active, so when you go to the guild to access 'Quests', the NPC will know you haven't completed it yet. However, when you do complete the quest and return back to town, that's when the magic happens!
Page 2 will load instead which does have the variable active because it knows you have the key item. So, what I did tonight was I simply edited the conditional branch on page 2 since I didn't feel the need to have the NPC tell you that you hadn't completed the quest yet since page 2 only loads if you have completed it, so that was pointless to keep in the event. Instead, I replaced that section by including another conditional branch with dialogue and a quest event that takes place by determining if the previous quest is now OFF (which normally isn't what you'd need to do since a simple Self-Switch would do just fine, but not in my project's case because I've got too much going on in one event, lol).
I've also realized that I can store up to 99 pages for one event and each quest will probably take 2-3 pages. Unless I'm mistaken, I'll basically have to copy the entire page for the town and paste it every time I want to start an event, then paste it on the next page and have that one load when the quest is completed. I'm assuming since it's all running under one event, that Self-Switch A/B/C/D will work on every page as long as it's active on 4 pages (basically, I won't need to make a new page for A/B/C/D and page 89, for example, could still use the Self-Switch from page 3 even though page 1 already used it before for its event). This entire project, even from the beginning, has been way too complicated when it really shouldn't be, but I've had to work with what I've got here and basically hold everything together with bubblegum and duct tape, lol.
Now I know exactly why most DRPG projects I've heard of either died due to lack of interest or frustration. People told me before that making a DRPG in RPG Maker is difficult because it's simply not designed for it. Oh how I wish they were wrong, lol.
Alright, so apparently my plan to put a new quest on each page didn't work. Now when I go back to the dungeon to complete the first quest, then go back to town to turn it in, the NPC is already asking me if I've completed the second quest. I'll try just slapping on some more conditional branches to see if that helps.
4+ hours of additional testing and I still can't seem to get one quest to run after another properly in my project. The first quest finishes fine, then you can begin the second quest when you access the 'Quests' menu again. After accepting it though, if you click 'Quests' again, it repeats and I have no idea how to stop it from doing so since I have so many switches, conditional branches, and variables in place that they all basically rely on one another.
Basically...
When you finish the first quest, it flips a switch to turn that off since the quest is done. The second quest begins with a conditional branch to check to see if that switch is flipped off. Since it is, the quest can begin. However, since I need the switch flipped off to end the previous quest and initiate the next quest, I can't really move forward here without having the second quest initiation constantly repeat.
So yeah, I'm hosed for the time being. I'll bang my head against it some more after I wake up and see what happens.