Clone Events

Discussion in 'JS Plugin Releases (RMMV)' started by Shaz, Jan 13, 2018.

  1. Shaz

    Shaz Veteran Veteran

    Messages:
    35,086
    Likes Received:
    9,626
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Clone Events
    2018.01.13
    by Shaz

    Introduction
    This plugin allows you to copy events from a base map onto the current map. It is NOT an event spawning plugin - it replaces a 'placeholder' event on the current map with a 'source' event from the cloned map. All event content except location and id are replaced.

    How to use
    Add plugin to your js/plugins folder - name must be Shaz_CloneEvents.js
    Enable in plugin manager, and enter the map id where all the source events will be held into the plugin parameter.
    Create your source events on the clone map with all the event pages and content required. Give it a unique name (no two events on this map should have the same name - one will overwrite the other if that happens).
    Create your placeholder events on the game map. Put <clone:eventName> into the note box. eventName is the unique name of the event from the source map that you want to clone. This is the only thing you should do to the placeholder event.

    When playing the game, when the map is loaded, the source event will be copied from the clone map and placed at the placeholder event's location.

    Plugin
    Download from pastebin
    make sure to save it as Shaz_CloneEvents.js

    Credit
    - Shaz

    Terms
    - free for use in commercial games

    Notes
     
    Last edited: Jan 13, 2018
    #1
    Dreadshadow, Frogboy, kovak and 2 others like this.
  2. EpicFILE

    EpicFILE Epic Member Veteran

    Messages:
    295
    Likes Received:
    1,135
    Location:
    Bogor
    First Language:
    Indonesia
    Primarily Uses:
    RMMV
    Hello! I already tried this one out, but I can't really get it to work.
    I've created an original event and typed Snake in the name box.
    I put it on the base map. (set the base map ID as 6, because that's where I put the events)
    Tried to clone the event by typing <clone:Snake> on the notetags of new event.
    But I can't seem to get it to work.

    Is there something I'm missing?
    Thank you in advance! :D
     
    #2
  3. Shaz

    Shaz Veteran Veteran

    Messages:
    35,086
    Likes Received:
    9,626
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Did you save the plugin with the correct name?
    If you hit F8 and go to the console tab, are there any error messages?

    Could you please provide screenshots of your plugin manager, with this plugin selected, your event named Snake, and the event where you have <clone...> in the note box?
     
    #3
  4. EpicFILE

    EpicFILE Epic Member Veteran

    Messages:
    295
    Likes Received:
    1,135
    Location:
    Bogor
    First Language:
    Indonesia
    Primarily Uses:
    RMMV
    I'll put the screenshots inside the spoilers.

    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]

    [​IMG]
     
    #4
  5. Shaz

    Shaz Veteran Veteran

    Messages:
    35,086
    Likes Received:
    9,626
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Yes, your plugin is not named correctly. The effect is that the game behaves as if it isn't even installed (and you got some errors in the console for the same reason).

    It must be called Shaz_CloneEvents.js as per the instructions in the first post.

    The pastebin page shows a more readable name, but unfortunately when you download, it gives it a slightly altered version of that name.

    To fix, delete the plugin from the plugin list, go to your plugin folder and rename the file, then add back to the plugin manager.
     
    #5
  6. EpicFILE

    EpicFILE Epic Member Veteran

    Messages:
    295
    Likes Received:
    1,135
    Location:
    Bogor
    First Language:
    Indonesia
    Primarily Uses:
    RMMV
    Thanks! Works like a charm.
    This is a very useful plugin to easily recreate complex, repeated events.
     
    #6
    Shaz likes this.
  7. Shaz

    Shaz Veteran Veteran

    Messages:
    35,086
    Likes Received:
    9,626
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Like common events, but with event pages, conditions, and sprites :)
     
    #7
  8. Dreadshadow

    Dreadshadow Moderator Moderator

    Messages:
    2,991
    Likes Received:
    1,803
    First Language:
    Greek
    Primarily Uses:
    RMMV
    Just noticed! Thank you squirrel for making this for MV <3
     
    #8
    Shaz likes this.

Share This Page