Quest event broken - can't return an item to an NPC

Raze334

Villager
Member
Joined
Apr 4, 2021
Messages
18
Reaction score
0
First Language
English
Primarily Uses
N/A
I'm new to RPG Maker. Followed a tutorial on YouTube on making a quest, tried to implement my own quest with a different flow with what I learnt. It isn't working as expected.

Can someone please take a look?
Why doesn't NPC event 2 trigger?

Goal:
I find a book. I retrieve the book to the NPC. NPC gives me gold. Quest is complete.

Current flow:

I approach the NPC
I accept the quest
I walk into the hut
The book is present
I interact with the book
I receive the correct text and events
I approach the NPC again
NPC Event 2 is ignored.
Game gives me the NPC Event 3 response.

Screenshots below:

NPC EVENT 1

NPC event 1.png

NPC EVENT 2 (this doesn't trigger)

NPC event 2.png

NPC event 3

NPC event 3.png

Book retrieved event 1

Book retrieved event 1.png

Book retrieved event 2

Book retrieved event 2.png
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,121
Reaction score
1,571
First Language
Dutch
Primarily Uses
RMMV
most likey because page 3 is triggered, "variable Find Book = 1" is triggered,
same as page 2, so page 3 takes priority.
sp make event page 2, bottom is find book = 2, and page 3 as well.
 

Raze334

Villager
Member
Joined
Apr 4, 2021
Messages
18
Reaction score
0
First Language
English
Primarily Uses
N/A
most likey because page 3 is triggered, "variable Find Book = 1" is triggered,
same as page 2, so page 3 takes priority.
sp make event page 2, bottom is find book = 2, and page 3 as well.
Thanks for the help! I removed NPC Event 3 and it works now!
I have a new problem where I can keep giving him the book. Endless free coins! Haha. I'll make him disappear once the quest is done.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,121
Reaction score
1,571
First Language
Dutch
Primarily Uses
RMMV
like I said, if the bottom is find book = 2 or +1, and page 3 = variable 2
it should stop, otherwise, use a selfswitch A, B, C, D and page 3 with this
switch triggered and it's done too :)
 

ATT_Turan

Forewarner of the Black Wind
Veteran
Joined
Jul 2, 2014
Messages
1,274
Reaction score
676
First Language
English
Primarily Uses
RMMV
What ShadowDragon is saying is that RPG Maker checks your event pages in descending order. So it looks at the highest number page (page 3) first, and if that condition is true, it does that, and it will never look at the other pages. So you just need to change which order your event pages are in.

Also, as a bit of a logic tip - you are making things more complicated than they need to be (and causing yourself confusion) by using multiple variables for this. For a quest like this, you only need to use one variable. For example:
Variable = 1: quest received
Variable = 2:book picked up
Variable= 3: book returned, quest complete

If you use two different variables for this, you're just increasing the number of things you need to track and reference. So your quest-giving NPC would have event pages, in order, that directly correspond to those numbers.
Event page 1, no condition: gives them the quest
Event page 2, Variable = 1: asks them if they've gone to look for the book
Event page 3, Variable = 2: accepts the book and gives a reward
Event page 4, Variable = 3: says I love my book, thank you again for your help

You can even continue to use that same variable, if it's appropriate. For example, in my project, I have a single variable that tracks the progress of the player through the main storyline. I would then have separate variables for the side quests (except I've moved to using a quest journal plugin for that).
 

Latest Threads

Latest Profile Posts


I fixed the lips and noses for MZ! The files have been updated.
qQwgk8C.png

Everything below!
Ugh, I opened MV after a few weeks and I'm completely lost on what I was working on.
Does it happen to someone else or am I the only disorganized one around? :kaoswt:
xH5Fk2f.jpg
Today was not a really productive day, but at least i got some bust sketches going <3
E7QXZHNXoAIkpG8
hmm in exploring MZ with FOSSIL... I see I'll probably need to stick with MV for now as none of the menu altering plugins I use work on MZ lol. and I don't have the money to dump into what I would need in some cases to update plugins to their MZ versions. Everytime I think of converting, 5 or more reasons popup on why I shouldn't.
Hmm... Game has 91 views, 25 downloads, 5 reviews and netted me 7 additional followers. Meanwhile the image I posted just yesterday on Imgur to showcase it has 45,197 views. Interesting, I think I have a new advertising idea. Also Twitter? The post got 16 retweets, 20 likes, and 1,683 views.... And a whole 3 hits to my game, completely valueless. I am glad I did this game jam, this information is quite valuable.

Forum statistics

Threads
113,661
Messages
1,076,505
Members
147,681
Latest member
antales
Top