eliaelia123

Regular
Regular
Joined
Mar 24, 2023
Messages
59
Reaction score
26
First Language
Deutsch/German
Primarily Uses
RMMV
Hey,

i'm new to RPG Maker (i have MV). I want to create a "timed" event. Not sure if you would actually call it like that in english so i'll explain what i mean.
I have an NPC in a house, who gives you the task to find something. What i want to happen is you leave, do other stuff, look for it, can't find it and when you go back and talk with him, he will say he already found it and give you some gold.

I came up with solutions how to do this, but none which whom i'm really happy.

1.) You put an event outside the House, if player steps on it, an variable/switch changes and when you talk with him again, dialog changes. Problem is, if the player knows that, he can just leave and go in again and kinda "cheese" the quest.

2.) Make variable, that if you talk with enough other npcs, his dialog changes. Problem, then if the player meets other npc first, it kind of has the same problem as the first.


Couldn't find a thread about it, but i wasn't sure how to search on english for it either.
Anyone got an idea how to solve this?
Hope you can help me and thanks in advance!
 

Shaz

Keeper of the Nuts
Global Mod
Joined
Mar 2, 2012
Messages
46,153
Reaction score
16,959
First Language
English
Primarily Uses
RMMV

I've moved this thread to MV Support. Thank you.



Let's say you want the NPC to have found the item 10 minutes after asking the player to search for it.

On event page 1, the NPC will give the player the quest. Use Control Variables to set a variable to the current game time (that's in Game Data > Other > Play Time). Turn on self switch A (or a regular switch, if you want other things to change their behaviour when the player has the quest).

On event page 2, set self switch A as the condition. Use Control Variables to set a different variable to the current game time. Then use Control Variables again to subtract the first variable from the second. The result will be how many seconds have elapsed since the quest was given.
Then do a Conditional Branch saying if the second variable is 600 or more (60 seconds * 10 = 10 minutes), you can do the "I found it myself" stuff.
 

eliaelia123

Regular
Regular
Joined
Mar 24, 2023
Messages
59
Reaction score
26
First Language
Deutsch/German
Primarily Uses
RMMV
@Shaz
Ok, thats like a perfect solution, thanks!

Where exactly do i find Game Data>Other?
Or do i need a plugin?
I found something called Databse, but there is no other.


Nevermind, found it.
 
Last edited:

Latest Threads

Latest Profile Posts

Is it okay to post links to your game when its completed in the profile posts here? I'm wondering because I've never done it out of concern it may come off as gauche, or may be against some rule or something, but I've seen others do it.
ezgif.com-video-to-gif.gif
Okay... I went and got examined... apparently I have had 'cardiac events'. But the current problem is a bit of inflammation around my heart, and in airways. So... got some medication and two days off work. Yay. :p
image.png

A lil concept for chara portraits!
I know what's about to happen, but I wanna say it anyway... why do people laugh react the most general of statements? like I saw someone on here ask about something and get laugh reacted. reminds of facebook. I'll see someone say "I had a sandwich for lunch." and you'll see 5 likes a like 2 laugh reacts. the internet is an odd space.

Forum statistics

Threads
134,796
Messages
1,250,728
Members
177,588
Latest member
Bomazius
Top