Respawn timer for on map encounters?

kennysaurs

Amazing Person
Veteran
Joined
Oct 21, 2015
Messages
54
Reaction score
13
First Language
English
Screen Shot 2015-11-09 at 12.54.56 PM.png

So in my game I am using on map encounters for the battles. Is there a way to set up a respawn timer? I have the events set to "Erase Event" after defeating the monsters. It works well but I don't want the enemies to come back every time I leave the map.
 

KockaAdmiralac

Cube-shaped garbage can
Veteran
Joined
Jun 15, 2015
Messages
570
Reaction score
156
First Language
Serbian
Primarily Uses
N/A
It's very hard to achieve without a plugin...

So, I made you a plugin for this, it's here

Insert it into your project, and for every monster after you beat him add Plugin Command after it :

KockaRespawnEvent start_timer amount_in_seconds self_switch

Where :

amount_in_seconds - The amount of time in seconds when event will be respawned.

self_switch - Self switch that is set to ON when timer starts and set to OFF when timer ends.



And then add an empty event page after that event page with condition : self switch set to what you had in Plugin Command

So, if your Plugin Command looked like :

KockaRespawnEvent start_timer 60 A

You have to add an empty event page with condition : self switch A, and the event will respawn after 60 seconds.





(Sorry if it's not working as intended, this is my first plugin)
 
Last edited:

kennysaurs

Amazing Person
Veteran
Joined
Oct 21, 2015
Messages
54
Reaction score
13
First Language
English
It's very hard to achieve without a plugin...

So, I made you a plugin for this, it's here

Insert it into your project, and for every monster after you beat him add Plugin Command after it :

KockaRespawnEvent start_timer amount_in_seconds self_switch

Where :

amount_in_seconds - The amount of time in seconds when event will be respawned.

self_switch - Self switch that is set to ON when timer starts and set to OFF when timer ends.

 

And then add an empty event page after that event page with condition : self switch set to what you had in Plugin Command

So, if your Plugin Command looked like : 

KockaRespawnEvent start_timer 60 A

You have to add an empty event page with condition : self switch A, and the event will respawn after 60 seconds.

 

 

(Sorry if it's not working as intended, this is my first plugin)
This is amazing! Thank you so much for making this! 

It works as stated and it is very effective. It looks like the only thing I need to add is a spawn animation/transition thing. This is a great first plugin!  :D  You should post this in the Plugin Releases section because others might find it useful too!
 

xumingyuan

Warper
Member
Joined
Oct 26, 2015
Messages
4
Reaction score
1
First Language
Chinese
Primarily Uses
I found this plugin really useful. Thanks for your efforts!

By the way, I activated the timer and turned on the self-switch before I saved the game and quit.

But when I loaded the game, the self-switch was never turned off again. How can I fix this?
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
210
First Language
English
Primarily Uses
Instead of erasing the events, you could always use switches, In one of my dungeons, I need to respawn stuff as well "technically", so that's how I do it, and no plugins/scripts are needed or anything.
 

KockaAdmiralac

Cube-shaped garbage can
Veteran
Joined
Jun 15, 2015
Messages
570
Reaction score
156
First Language
Serbian
Primarily Uses
N/A
@xumingyuan

That's an already reported bug. It's because timers don't save with the savefile. I'll fix this in future release and post it in my plugin thread linked in the signature.

@Zoltor

Yes, but you would need too many parallel process events to count timers.

There are many scripts that were made that can also be done with events, but why would you if you could do it even more easy with plugin?
 

Zoltor

Veteran
Veteran
Joined
Jan 18, 2014
Messages
1,550
Reaction score
210
First Language
English
Primarily Uses
@xumingyuan

That's an already reported bug. It's because timers don't save with the savefile. I'll fix this in future release and post it in my plugin thread linked in the signature.

@Zoltor

Yes, but you would need too many parallel process events to count timers.

There are many scripts that were made that can also be done with events, but why would you if you could do it even more easy with plugin?
While it might lead to a 2% chance of the enemy spawning right after you beat it, I figured there was only a single times to control them all.
 

Solis

Veteran
Veteran
Joined
Oct 24, 2015
Messages
367
Reaction score
84
First Language
English
Seems to be working fine. 

Thanks! This has saved me a super big headache...I was before this creating timers for a re spawn event. Thank god. Works if you want to harvest flowers too :)
 

Shinma

Lurker
Veteran
Joined
Dec 29, 2012
Messages
756
Reaction score
336
First Language
English
Primarily Uses
RMMV
Great plugin, thanks!


You may want to mention the Terms of Service, though! =)
 
Last edited by a moderator:

Tyrael79

Veteran
Veteran
Joined
Jan 10, 2016
Messages
90
Reaction score
15
First Language
english
Primarily Uses
Thanks! I found this plugin useful as well!
 

dexni

Villager
Member
Joined
Mar 13, 2016
Messages
11
Reaction score
2
First Language
english
Primarily Uses
broken link... is there one out there?
 

Kane Hart

Elmlor.com
Veteran
Joined
Jun 27, 2014
Messages
656
Reaction score
166
First Language
English
@KockaAdmiralac 


This is great with @Hudell time events being a bit broken now I might switch to this temp. His is more complex in the sense I wanted to use his for many diff things but for now this should do perfectly and will make it via a comment event for a easy switch.


Do you have a thread I can follow and reply to?
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

It's almost new year, again!
Succesfully finished a quest of saving my kitty who fell from a wall!

+25XP

MrKiwi leveled up!
MrKiwi learned how to save his kitty!
Final sprint for me, although a long one. If everything goes well, I'll graduate by the end of the year. Then I'll have to take the Bar classes and exams (4 months), then I'm off to practicing law (as an intern for 6 months, paid of course, then I'll be a full fledged attorney).
I think there is something wrong with my cat. He is acting CATatonic.
Want to find a quick answer? Say the wrong one and SOMEONE will fall all over themselves to correct you.

Forum statistics

Threads
93,572
Messages
913,586
Members
123,105
Latest member
djag1
Top