estriole 326 Posted November 27, 2015 (edited) â– Information â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› EST - Clone Transform Delete Event Version: 1.4 By Estriole File name: EST_Clone_Transform_Delete_Event.js â– Introduction â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› Want to Add New Event based on template event in current / other map or Transform Existing Event in current map Based on template event in current / other Map. then maybe you want to delete existing Event in current map? Now it's all possible with this Plugin. This plugin is second part of my Build and Decor Script conversion from ACE - MV â– Features â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› - Add New Event in current map Based on other event in current/other Map. - Transform Existing Event in current map Based on other event in current / other Map. - Delete Existing Event in CURRENT Map. â– Changelog â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› older changelog inside spoiler v1.0 2015.10.29 Initial Release v1.1 2015.11.02 Patch for delete_cur_map from EST_Save_Map_Event plugin to reset selfswitches for event that changed. also method to reinit all map event. v1.2 2015.11.09 fixed bugs when having event with higher index than max index of map in editor removed imported and use other method to recognized this script installed or not. some callibration to make it flow with EST BUILD AND DECOR EX plugins. v1.3 2015.11.12 fix minor bug which 'sometimes' execute rest of event command after tranforming event. i change it so after event REPLACED using 'transform'. all event command after that will be stopped. v1.4 2015.11.27 fixed problem when running game online. and having lots of parallel process that spawn / transform event. then transfer map. it can throw $dataMap null error. this caused by loading map data asynchronously... the 'turnaround' fix is given by hudell. after i pm him for advice. so this plugin now have extra credits you have to add if you use it. â– Plugin Download â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› DOWNLOAD â– Screenshot / Demo â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› Demo (all build and decor series converted plugin will have same demo) â– How to use â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› 1) Add New Event Plugin Command: add_event source_map_id source_event_id x y example: add_event 8 2 3 7 will add new event cloned from Map 8 EventId 2 and will be placed in x = 3 and y = 7. Script Call: $gameMap.add_event(source_map_id, source_event_id ,x , y); example: $gameMap.add_event(8,2,3,7); will add new event cloned from Map 8 EventId 2 and will be placed in x = 3 and y = 7. 2) Transform Existing Event Plugin Command: transform_event target_event_id source_map_id source_event_id example: transform_event 24 8 1 will transform event 24 in current map with event cloned from Map 8 EventId 1 x and y will still use old event value. transform_this_event source_map_id source_event_id example: transform_this_event 8 1 will transform event that called it with event cloned from Map 8 EventId 1 x and y will still use old event value. Script Call: $gameMap.transform_event(target_event_id, source_map_id, source_event_id); example: $gameMap.transform_event(24,8,1); will transform event 24 in current map with event cloned from Map 8 EventId 1 x and y will still use old event value. some tips... if called from script call event command... $gameMap.transform_event(this._eventId,8,1); will transform event that calling it to event cloned from Map 8 EventId 1 x and y will still use old event value. 3) Delete Existing Event Plugin Command: delete_event target_event_id example: delete_event 24 will delete event 24 in current map delete_this_event will delete event that called it Script Call: $gameMap.delete_event(target_event_id); example: $gameMap.delete_event(24); will delete event 24 in current map some tips... if called from script call event command... $gameMap.delete_event(this._eventId); will delete event that CALLED it. â– Dependencies â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› EST_Save_Map_Event.js plugin MUST be INSTALLED for this plugin to work. click link for the plugin topic â– 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. so you can use both script without conflicting. â– Parameters â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› this plugin did not have any parameter to set in plugin manager â– License â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› Free to use in all project (except the one containing pornography) as long as i credited (ESTRIOLE). â– Extra Credit â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› - Hudell - for workaround to fix $dataMap.null problem with browser online. â– Support â•’â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•› While I'm flattered and I'm glad that people have been sharing and asking support for scripts in other RPG Maker communities, I would like to ask that you please avoid posting my scripts outside of where I frequent because it would make finding support and fixing bugs difficult for both of you and me. If you're ever looking for support, I can be reached at the following: [ www.rpgmakervxace.net ] pm me : 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 November 27, 2015 by estriole Share this post Link to post Share on other sites