MV How do you set a monster spawn time? (Sample of my mind)

For me, its advantages are Working within itself Editable in and of itself And can control it through the set ID

First of all, this might not be very useful for some. But I just want to share this simple idea of mine.

It's easy to do, just a few steps.

Just make the image disappear and my 88 switch ID number is always turned off, as well as changing the monster image. It's easy to do without a plugin.


Desktop-2020.08.22-16.17.21.09.gif

9b12a0c57a55d5bb4b68b1266bade814.jpg



After that, yes, I switched on ID number 88 after entering the fight.
And delete the image of the monster

caabfdd799d6e0f74909e4fbe3fe0c84.jpg


Further, I tried creating a monster control translator. Same thing, but I divide the group by the ID switch.
Yes, it starts at 88-100, I made more and tried turning the switch on, it made it possible to spawn differently and fix the problem anytime through the switch translator, it looked good, yes, just change the picture and set the encounter condition. Found by the of that ID

eb518e7ebd829dea3914ec1a2a9572e9.jpg
There is simpler way to do it and allows for more complex behaviours. I eat dinner and I'll show you
I run a parallel common event that handles respawns. It loops every so many frames, and counts down the respawn of a monster that was recently defeated, and if at 0, puts it back on the map.
I run a parallel common event that handles respawns. It loops every so many frames, and counts down the respawn of a monster that was recently defeated, and if at 0, puts it back on the map.

That means everything within that event. And affect all over the world So I used this to make it happen within itself and divide into many groups.
But it works as well This is only a comment.

There is simpler way to do it and allows for more complex behaviours. I eat dinner and I'll show you
I don't think my idea is the best either, I want it. Your opinion as well That will allow me to build on my thoughts
Use variable to determine enemy look and behaviour:



and there is no need to use change picture with set movement event. 🙂
Similar to your method, but that way you have more complex control on event, just change value of variable to determine different enemy spawn type. But remember, event has limit to 20 pages.
Use variable to determine enemy look and behaviour:



and there is no need to use change picture with set movement event. 🙂
Similar to your method, but that way you have more complex control on event, just change value of variable to determine different enemy spawn type. But remember, event has limit to 20 pages.

So how do you define the change in variables?

That's what I think, my way works similar to yours, but not limited by page count. But depending on the settings to change the image However, my scheme uses a lot of switches as well to call Different monsters came out and did not affect other groups.
In different event like this:

You can trigger it via npc chat, parallel event or whatever you want.
In different event like this:

You can trigger it via npc chat, parallel event or whatever you want.
How do you count time? To turn it into bedtime Do you use events in parallel?
Timer event would be enough, because in parallel event runs in frames, not seconds.
So I would take this approach:
this is event to control daytime in game - https://prnt.sc/u3xpla
and this is how you trigger timer (here you can use parallel event)

Please note that this time control event may be not perfect and might not work properly, because I don't have any of this type events in my project. I dare you to experiment on your own and I'm sure you will find something interesting, now, why I used script call instead "Wait" event:

"Wait" event gives a delay of executing next event not in seconds, but in frames and it is limited to 999
so in order to wait more than 999 frames wich gives in time 16 seconds, we need to give game interpreter more precise value, so let's calculate 60 * 60 * 5
first number 60 represents game's framerate (60 by default)
seconds number 60 is a minute converted to seconds (multiplication 60 * 60 = 3600 wich is one minute)
now third number 5 is actual time delay you want to wait - in my example 5 minutes, so 3600 * 5 = 18000 frames, wich gives our desired time delay, 5 minutes.

You can also use fixed values and this calculator can really help you if you're not good enough in math (another thing worth to remember: any programming language prefers fixed values without doing math, because it saves some tiny resources, one of methods of optimising code, so in short)

this.wait(60 * 60 * 5) - good working fine code
this.wait(18000) - optimized and better code (cpu has less operations to do)
1598091248681.png

In this part of you it calls up a timer. (In this section, I guess it will always appear.) Of course, the above frames are sequential as well. As I use 999 * 4, the result is 3996.Of course, I'm not very good at calculations, but I only shift it during testing. Time to act, as a result, even after entering a battle, events continue to count, for example, I enter a battle. While the frame has been running for 2 minutes and I won it at 2.40 and it reappears immediately after a few seconds, this is a problem but it doesn't matter much as I think the advantage is compared to world time. Games running to collect runes When we collect runes every 3 minutes or sooner, runes will spawn again. After 3 minutes I think it's punctual from testing.


15e970798e5d87545302aca7cbd0cd0b.jpg

Original thread: https://forums.rpgmakerweb.com/threads/how-do-you-set-a-monster-spawn-time-sample-of-my-mind.125477/