Respawn timer for on map encounters?

Discussion in 'RPG Maker MV' started by kennysaurs, Nov 10, 2015.

  1. kennysaurs

    kennysaurs Amazing Person Veteran

    Messages:
    54
    Likes Received:
    13
    Location:
    California
    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.
     
    #1
  2. KockaAdmiralac

    KockaAdmiralac Cube-shaped garbage can Veteran

    Messages:
    570
    Likes Received:
    156
    Location:
    Belgrade
    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: Sep 17, 2019
    #2
    optiprimeful, Yunaly and kennysaurs like this.
  3. kennysaurs

    kennysaurs Amazing Person Veteran

    Messages:
    54
    Likes Received:
    13
    Location:
    California
    First Language:
    English
    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!
     
    #3
  4. xumingyuan

    xumingyuan Warper Member

    Messages:
    4
    Likes Received:
    1
    First Language:
    Chinese
    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?
     
    #4
  5. Zoltor

    Zoltor Veteran Veteran

    Messages:
    1,550
    Likes Received:
    208
    First Language:
    English
    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.
     
    #5
  6. KockaAdmiralac

    KockaAdmiralac Cube-shaped garbage can Veteran

    Messages:
    570
    Likes Received:
    156
    Location:
    Belgrade
    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?
     
    #6
  7. Zoltor

    Zoltor Veteran Veteran

    Messages:
    1,550
    Likes Received:
    208
    First Language:
    English
    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.
     
    #7
  8. Solis

    Solis Veteran Veteran

    Messages:
    366
    Likes Received:
    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 :)
     
    #8
  9. cutegoblingirl

    cutegoblingirl Warper Member

    Messages:
    4
    Likes Received:
    0
    First Language:
    English
    Praise be! That's just what I needed!
     
    #9
  10. Shinma

    Shinma Lurker Veteran

    Messages:
    756
    Likes Received:
    336
    Location:
    Alabama, USA
    First Language:
    English
    Primarily Uses:
    RMMV
    Great plugin, thanks!


    You may want to mention the Terms of Service, though! =)
     
    Last edited by a moderator: Feb 4, 2016
    #10
  11. Tyrael79

    Tyrael79 Veteran Veteran

    Messages:
    90
    Likes Received:
    15
    Location:
    Australia, Sydney
    First Language:
    english
    Thanks! I found this plugin useful as well!
     
    #11
  12. dexni

    dexni Villager Member

    Messages:
    11
    Likes Received:
    2
    First Language:
    english
    broken link... is there one out there?
     
    #12
  13. Kane Hart

    Kane Hart Elmlor.com Veteran

    Messages:
    656
    Likes Received:
    166
    Location:
    Barrie, Ontario, Canada
    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?
     
    #13

Share This Page