Jump to content
Sign in to follow this  
estriole

EST - SAVE MAP EVENTS

Recommended Posts

â–  Information      â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•›
 EST - Save Map Event
 Version: 1.4
 By Estriole
 File name: EST_Save_Map_Event.js
 
  â–  Changelog       â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•›
Earlier changelog inside spoiler...


 v1.0 2015.10.25           Initial Release
 v1.1 2015.10.28     - minor change in unerase method
 v1.2 2015.10.31     - add notetags for event you want the page to "reset" upon reentering the map...
                       give comment
                       <reinit_event>
                       so the event page will be reseted to prior activating the page when transfering to map.
                       if you create door manually without move route > this event > Through ON...
                       or with through on but also with through OFF... you need to add above comment tag.
                       if you use auto door... see below:

                     - add auto door event detection... (in editor right click quick event creation > door)
                     since it's tedious work to edit ALL your auto door...
                     i detect it like this:
                     if there's Event Command > Move Route > This Event > Through ON
                     AND
                     if there's NO Event Command > Move Route > This Event > Through OFF

                     i assume it's auto door event...
                     
                     - although it's "RARE"... is there a scenario that event like above is NOT an autodoor event?
                     if yes... don't worry... you could add comment at the "RARE EVENT" page:
                     <not_auto_door>
                     and it won't reset the page.
 v1.3 2015.11.01     - fix crash when no event page met condition...


 v1.4 2015.11.02     - new method to delete saved event so it will reload the map next time entering the map
                       Plugin parameter format change. so it's okay to rename the .js files.
 
 â–  Introduction     â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•›
 This plugin can make us save the map events so  it won't be reloaded
 from database when entering new map. it will use saved event instead

 â–  Features         â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•›
 - save map events
 - not reload event at map enter but use saved event
 - option to reset event page prior entering the map
 
 â–  Plugin Download â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•›
dropbox
Demo  (All Build And Decor share the same demo)

 

 â–  How to use       â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•›
 1) Saving map events to memory
 Plugin Command:

    save_cur_map

   or Script Call:

  $gameMap.save_cur_map()

 (also in case you want to use this from other plugin)

 IF you have event which change it's graphic (example Door)
 and you need to revert the changes back when doing transfer...
 add this COMMENT in the door event page

 <reinit_event>

 warning it won't reinit self switch!!!. this just change the page to state prior
 activating the page...

 if you use AUTO DOOR (in editor > right click > quick event creation > Door)
 i include some automatic detection. and you don't have to add any comment tags.
 the detection work like this:

 

 if there's Event Command > Move Route > This Event > Through ON
 AND
 if there's NO Event Command > Move Route > This Event > Through OFF
 i assume it's auto door event...

                   
 although it's "RARE"... is there a scenario that event like above is NOT an autodoor event?
 if yes... don't worry... you could add comment at the "RARE EVENT" page:

 <not_auto_door>

 and it won't reset the page.
 
 2) Deleting map events from memory (it will reload map event from editor next time reenter map)
 self switch is left as it is though... so if any changes on self switch will be remain there.
 if you don't want this behavior use number 3) method below

 Plugin Command:

  delete_cur_map

   or Script Call:

    $gameMap.delete_cur_map()

 3) RESETING map events to editor (all self switch also will be set to false)  
 Plugin Command:

    reset_cur_map

   or Script Call:

    $gameMap.reset_cur_map()

 â–  Dependencies     â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•›
 none
 
â–  Compatibility    â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•›
 I'm new in JS... and MV is new engine... so i cannot say for sure.
 but it should be compatible with most things. this even compatible with
 Hudell - Custom Event
 
 â–  Parameters       â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•›
 Auto Save = true / false
 true => will automatically save the map event when entering the map
 false => will not automatically save the map event when entering the map
 (false mean you need to do it manually)

  ALSO... if the map have note

  <no_auto_save_event>

  this setting will NOT take effect.
  (in case you want some map to not auto saving event at entering the map)
 
Credit and Thanks
- Estriole
 

 â–  Author's Notes   â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•›
 This is part of the EST - DECOR AND BUILD SERIES.

  EST - SAVE MAP EVENTS

  EST - CLONE TRANSFORM DELETE EVENT

  EST - EVENT GRAPHIC SHIFT

  EST - EVENT SIZE AND TRIGGER

  EST - BUILD AND DECOR EX

  EST - REGIONMAPLOADER

Edited by estriole

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted