Hello everybody
Let’s say there is one quest giver, and he gives you 20 quests at the same time. You can do these quests in any order you like. The quest giver is always at the same place.
You start with for example quest 6.
When quest 6 is done, you talk to the same quest giver and he comments a bit on quest 6. So that quest is fulfilled. That’s basic stuff.
After that you choose quest 2, and again, when the quest is finished, the quest giver comments a bit on quest 2 and so on.
But the way I have set it up, the quest giver also repeats his same line from quest 6 when you talk to him after finishing quest 2. And that's not the idea.
And he will also repeat his lines for quest 6 and 2 when I talk to him when I finished quest 14.
I have tried conditional branches, self switches, using a lot of event pages (one event page for each quest) but I feel I am not handling it the right way.
Hence my question: is there a smarter, more efficient way to do make the quest giver comment on only the finished quest, and not repeat the other finished quest(s) ?
If so, please elaborate and keep in mind I am still a novice. I have learned a lot the last 2 months, but at the same time I am definitely still struggling with certain things. A visual example is always appreciated.
PS: I don’t use a quest journal plugin because I want to keep it simple, and the Visustella Quest Journal System seems too much hassle for something I think should be pretty simple.
Thanks in advance !
It's basically impossible to say what you should correct without seeing your event.
Logically, you'd use something to indicate that he has already commented on you finishing a quest (e.g. a switch). So the conditional branch that checks for you having completed quest 6 also checks for switch 42 to be off; if so, he says his thing, then turns on switch 42 so that will never be true again.
it depends how you set up your event, from there, we can see what
you did and how to correct it, as we cannot guess how you did it.
my guess is you did a conditional branch,
if: switch is off
not compleeted
else
compleeted
end
and continue to do so for all 20 quests, of course this will repeat
each quest over and over (compleeted and uncompleeted).
but to correct those, we need to see what you did and how to solve it.
as there are some methods to fix this, specially evented way can this
be trouble some, but there are some ways to pull it off.
from my view, 20 switches, and maybe large choices /hidden/disabled
because you can jump to the right quest and exit event process or
jump to label to the bottom of the page to exit the quest once complete
if it is.
HIME_LargeChoice is ideal to turn in the quest you want to complete,
but you can do this also without that plugin, but we need to see screenshots
what you did and how to improve it.
The way I would do it is to have a "completed quest" variable. In each quest, when you hand it in, it sets the variable to the ID of that quest. Then I'd have a set of conditions where the value of that variable would determine what comment the NPC makes.
This would result in the quest you'd completed being overwritten every time you hand a quest in, which would also update the commentary, but wouldn't allow for multiple quests to be commented on at once.
Quest staging, quest staging!
If you use switches, you are going to have a mess of switches to manage.
Quest staging is using a variable to control the progress of a quest, including all states that quest can be.
So Let's use your quest 2 example:
Create a variable, Quest2. It will start at 0.
When the player picks up the quest, set Quest2 to 1. 1 means the quest has been started.
At each point of the quest, either set the variable up 1 or add 1 to the variable. (I recommend setting if the quest is linear. If the quest might require the player to do multiple things before moving on to the next part, use the add 1 instead)
Once the player has done all of the quest tasks (but HAS NOT talked to the quest giver yet), let's say the quest variable is at stage 3.
So the NPC will have a conditional:
If Quest2 = 3
"Good job obliterating the local rabbit population, now all those pesky wolves will finally starve and die off!"
Set Quest2 to 4
Here, 4 represents the quest is complete.
Because I may need to revise the quest later and add new stages to the quest, I usually actually like to set the "complete" value to something much higher, such as 20; that way if I ever add new stages in the future, I won't need to worry about the stages overlapping the complete stage.
It may also help, as Trihan said, to have a "CompletedQuest" variable to track how many have been completed, but it's not necessary in my quest staging example. It's just useful data that can be applied in other scenarios; such as having the man remark "Oh thanks for doing 4 of my 20 pieces of busy work, young basement dweller!"
Thanks for the help and tips. I think it is important to know that once the quest has started, there is no turning back, the player has to end the quest in one go.
After that he returns to the quest giver.
This means that the setup involving switches or variables shouldn’t be very complex.
Like I said, the quests can be done in any order, but the problem is that the quest giver always references to the older, finished quests instead of only focusing on the latest.
I tried what you suggested, but it’s not very clear. Can you please point me in the right direction ? I know very well that the printscreens are wrong, but I don’t know how to fix them and maybe you can use them to correct me.
Thanks in advance.
The basic structure in your first screenshot is correct. But then you're doing weird things.
Why are you checking if test quest 1 = 1...and then setting it to 1? That does nothing. You would set it to 2 so that next time you talk to him that conditional is false.
And then it's worse in the other branches, because it looks like you copied and pasted the same mistake without even changing which variable it is, so you're asking if test quest 2 = 1 and then changing test quest 1.
I think I got it. No, let me rephrase that: I know I got it. It works like a charm.
Thanks everybody for their advice and their patience ! It is not that difficult if you know it, but I wouldn't have found it on my own.