Catnerd

Warper
Member
Joined
Mar 4, 2018
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMVXA
First off, sorry if this is the wrong thread. I'm new to the site. Second, I need some help, whether it be an simple fix or a script. I'm making a game strongly based off gathering resources, and I want them to respawn over time using the wait command, but I've noticed an issue. Once you've gathered a resource, if you click on that space, you cannot move until it respawns, which is 5-10 minutes depending on the plant, which is just too much of a bug for me. If anyone can help I would be grateful. Also, I cannot use a script that negates the wait command effects on the player because it's used in cutscenes and gathering.
 

Guiguimu

Walking Disaster
Veteran
Joined
Oct 1, 2015
Messages
609
Reaction score
7,296
First Language
Portuguese
Primarily Uses
RMVXA
You have the wait command on an Action Button triggered event? If so, that's the cause and it isn't a bug, it's just how it works. If you set an Action Button trigger to the event, the player will be forced to wait those minutes until the event ends.
Use the wait command on a Parallel Event, that way I believe it will work. After the item is collected, set a switch to activate that Parallel event. After the Parallel Event, turn off that switch. This might not be a good idea if you have tons of events tho.
A script may be your best option to handle this...
About scripts to make your life easier even if this isn't a script request... I know this one, I never worked with it but it seems to do what you need:
https://galvs-scripts.com/2013/02/23/respawn-timer/
Hope it helps somehow ^^
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,088
Reaction score
2,681
First Language
Greek
Primarily Uses
RMMZ
What Guiguimu said is correct. You should create a Parallel Proccess to handle that and maybe you should make a good use of Common Events too, since what you wanna do is a harvesting system, which is complex enough to need common events involved.

Alternative, you can make a Self switch on (let's say A) and make a second Page on that very event that shows the ground empty. THAT event page must be set to Parallel Process and it must have a timer. Do not overdo it with many Parallel Processes though, or it might make your game laggy. That's why I recomment ONE event doing the job, but do as you please.
 

Catnerd

Warper
Member
Joined
Mar 4, 2018
Messages
2
Reaction score
0
First Language
English
Primarily Uses
RMVXA
You have the wait command on an Action Button triggered event? If so, that's the cause and it isn't a bug, it's just how it works. If you set an Action Button trigger to the event, the player will be forced to wait those minutes until the event ends.
Use the wait command on a Parallel Event, that way I believe it will work. After the item is collected, set a switch to activate that Parallel event. After the Parallel Event, turn off that switch. This might not be a good idea if you have tons of events tho.
A script may be your best option to handle this...
About scripts to make your life easier even if this isn't a script request... I know this one, I never worked with it but it seems to do what you need:
https://galvs-scripts.com/2013/02/23/respawn-timer/
Hope it helps somehow ^^
It is on Parallel Process. But if you click on it whole it's respawning, your forced to wait though the rest of the time. It runs by itself otherwise though. Everything else works perfectly fine, and I have all my harvesting systems set up fine. This is the only problem. I'll check out the script though tonight
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
41,302
Reaction score
14,278
First Language
English
Primarily Uses
RMMV
I wouldn't use a parallel process event at all - too many of them will slow down your game.

Use a script. I wrote one, but just went to the thread now to grab a link, and the first page is gone. So use Glav's.
 

_Shadow_

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
4,088
Reaction score
2,681
First Language
Greek
Primarily Uses
RMMZ
I wouldn't use a parallel process event at all - too many of them will slow down your game.
You can make complex eventing and use only one Parallel Process to control all the events, but hey! It is better to use a script whatsoever, you are right! Makes sense, since keeps things more neat.
 

Latest Threads

Latest Posts

Latest Profile Posts

I am playing Momodora today and OMG this game is hard! o.o
Really happy to see people from Brazil doing an amazing game :3
Just noticed... I'm now called a Veteran not just Member...
Effervesce Fallacy™ - PV - C'est La Vie, for the best viewing experience, run the EXE, and adjust the audio via Options. The footsteps sounds are once again, barely audible. :frown: The PV only sounds as intended, if BGM Volume is set to 20%, or 40%, depending on your audio hardware.

Stream will be live shortly with some Gex 3! Tonight, I get revenge on the Buccaneer Program! Feel free to drop by!
-Updated- Lowered fog / found more problems :kaoswt2:

Forum statistics

Threads
109,214
Messages
1,043,111
Members
141,728
Latest member
kKKES
Top