EST - EVENT SIZE AND TRIGGER

Discussion in 'JS Plugin Releases (RMMV)' started by estriole, Nov 2, 2015.

    Tags:
  1. estriole

    estriole Veteran Veteran

    Messages:
    1,030
    Likes Received:
    334
    First Language:
    indonesian
     ■ Information      ╒══════════════════════════╛
     EST - Event Size And Trigger
     Version: 1.2
     By Estriole
     File name: EST_Event_Size_And_Trigger.js

     ■ Introduction     ╒══════════════════════════╛
        This script can give Size to event. Event size is not passable by player. the size adding method
     also have lots of freedom. for example we can add 2 tiles up, 1 tiles left, 1 tiles right.
     There's also extra trigger feature. which add another coordinate where we can activate that event.
     you could also make every event size can activate the event.

     ■ Features         ╒══════════════════════════╛
     - Event Size (LARGE EVENT !!!)
     - Extra Fix Size => fixed coordinate on map where you want to become size
     - Extra Dynamic Size => dynamic coordinate on map based on event xy where you want to become size
     - Extra Fix Trigger => fixed coordinate on map where you can activate the event.
     - Extra Dynamic Trigger => dynamic coordinate on map based on event xy where you can activate the event.

     ■ Changelog       ╒══════════════════════════╛

    older changelog in spoiler

       v1.0 2015.11.02           Initial Release
       v1.1 2015.11.09           - more code tweak...
                                 - added temporary compatibility patch with Galenmereth MouseSystem Ex
                                 hopefully in his next update he add the feature i requested so i don't
                                 need overwrite and just use alias.
                                 - improved code to make it flow with EST - BUILD AND DECOR EX plugin
       v1.3 2015.11.10           - fix compatibility patch for Galenmereth MouseSystem Ex.
                                 which will crash if that script not installed.
                                 - fix dependency to Yanfly Core.
                                 (i create the plugins with Yanfly Core active. and didn't realize it fix MV bugs)
                                 now it should be ok without yanfly core. (i advise still using his core though
                                 it have many other bugfixes)

     ■ Plugin Download ╒══════════════════════════╛
      Download  Demo Download (All Build and Decor series share the same demo)

     ■ How to use       ╒══════════════════════════╛
     1) Give Event Size:

          place COMMENT tag on event page:        <event_size: top left right down>        example

            <event_size: 2 2 2 0>        will add size 2 tiles up, 2 tiles left, 2 tiles right.
              XXXXX
              XXXXX
              XXOXX     X = size, O = event position
     2) beside above method you can Add Extra Size in case you have different shape of event graphic beside
     rectangular... there's two method. first is FIXED coordinate. second is DYNAMIC coordinate;
        -> Fixed Coordinate (static coordinate):
        give comment tag          <extra_fix_size: [x1,y1]; [x2,y2]; [x3,y3]; [x4,y4];.......>    every coordinate (array) MUST be separated by ;   (semicolon)
        example:

        <extra_fix_size: [10,4]; [3,5]; [2,1]; [3,4]>    will add extra size on coordinate above.

        -> Dynamic Coordinate (array) (based on event position. example event x +10, etc):
        give comment tag

              <extra_dynamic_size: [x1,y1]; [x2,y2]; [x3,y3]; [x4,y4];.......>    every coordinate (array) MUST be separated by ;   (semicolon)
        example:

        <extra_dynamic_size: [1,3]; [-1,4]; [1,2]; [3,4]>    will add extra sizes in coordinate event x + dynamic size above...
     3) we can make every event SIZE can also trigger the event...
     give comment tag<size_trigger> 4) number 3 not enough... ??? you can also add Extra Fix Trigger and Extra Dynamic Trigger

       -> Fixed Coordinate (static coordinate):
        give comment tag         <extra_fix_trigger: [x1,y1]; [x2,y2]; [x3,y3]; [x4,y4];.......>    every coordinate (array) MUST be separated by ;   (semicolon)
        example:

        <extra_fix_trigger: [10,4]; [3,5]; [2,1]; [3,4]>    will make we can trigger that event in 10, 4 coordinate, etc.

        -> Dynamic Coordinate (array) (based on event position. example event x +10, etc):
        give comment tag

                       <extra_dynamic_trigger: [x1,y1]; [x2,y2]; [x3,y3]; [x4,y4];.......> 
        every coordinate (array) MUST be separated by ;   (semicolon)
        example:

        <extra_dynamic_trigger: [1,3]; [-1,4]; [1,2]; [3,4]>    will make we can trigger that event in  EVENT x & y position + coordinate above.
     
    Both Dynamic size and Dynamic Trigger coordinate will updated WHEN THE EVENT change places (moving, jump, etc)

    while fix size and trigger will remain static in that coordinate.

     ■ 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.

     ■ Parameters       ╒══════════════════════════╛
     None

     ■ License          ╒══════════════════════════╛
     Free to use in all project (except the one containing pornography)
     as long as i credited (ESTRIOLE).

     ■ 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:
     [ http://forums.rpgmakerweb.com/ ]
     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
     
    Last edited by a moderator: Nov 20, 2015
    #1
    Jonforum, MysticSong, DangDut and 4 others like this.
  2. Tommy Gun

    Tommy Gun ♩ ♪ ♫ ♬ Veteran

    Messages:
    385
    Likes Received:
    120
    First Language:
    English
    So with this plug-in I could make a giant lake with one event, and then the player could click ANYWHERE on the lake and it would trigger? Is that right? And I could have a giant monster walking around, and the player wouldn't be able to walk "through" the sides of it?
     
    #2
  3. estriole

    estriole Veteran Veteran

    Messages:
    1,030
    Likes Received:
    334
    First Language:
    indonesian
    for clicking... you need to move the player to that coordinate though... i will try to make

    http://forums.rpgmakerweb.com/index.php?/topic/46511-mouse-system-ex/

    compatible... so we can click on trigger from a far to activate the trigger.

    for large monster... yes... this is one of the purpose of this plugin. i use it for buildings though... i create charset containing buildings... so i can animate it using move route... see the demo's pokemon center is animated... also house with chimney smoke... etc. but the problem is without this plugin... we can walk through wall :D .
     
    #3
  4. MikeMakes

    MikeMakes Veteran Veteran

    Messages:
    159
    Likes Received:
    41
    First Language:
    English
    Thank you, estriole! This is really helpful for large charsets. 

     
     
    #4
  5. Tommy Gun

    Tommy Gun ♩ ♪ ♫ ♬ Veteran

    Messages:
    385
    Likes Received:
    120
    First Language:
    English
    Sorry, that's what I meant -- click with the keyboard by walking to it. Very cool!
     
    #5
  6. estriole

    estriole Veteran Veteran

    Messages:
    1,030
    Likes Received:
    334
    First Language:
    indonesian
    now we can click it using http://forums.rpgmakerweb.com/index.php?/topic/46511-mouse-system-ex/

    place my plugin below it...

    updated the script to v1.1

    changelog:

       v1.1 2015.11.09           - more code tweak...

                                 - added temporary compatibility patch with Galenmereth MouseSystem Ex

                                 hopefully in his next update he add the feature i requested so i don't

                                 need overwrite and just use alias.

                                 - improved code to make it flow with EST - BUILD AND DECOR EX plugin

    Currently in final phase on Build And Decor EX plugin... still working on adding plugin command. i guess tonight the plugin could be released...

    stay tuned :D .

    the plugin is will be conversion of my ACE script:

    http://www.rpgmakervxace.net/topic/15689-est-build-and-decor-series/

    it will be EST - Build and Decor + Decor Movement conversion in one plugin
     
    #6
  7. estriole

    estriole Veteran Veteran

    Messages:
    1,030
    Likes Received:
    334
    First Language:
    indonesian
    another update... in response of Galenmereth MouseSystem Ex update:

    i already posted EST - Build And Decor EX plugin but it's awaiting moderation.

    updated the plugin to v.1.2

    changelog:

       v1.2 2015.11.10           - changed compatibility patch for Galenmereth MouseSystem Ex.
                                 since he add the feature i requested... i can use alias now.

    edit: updated the demo... if you want to take a peek at EST - Build And Decor EX

    just download the demo. it already contain that plugin :D
     
    Last edited by a moderator: Nov 10, 2015
    #7
  8. estriole

    estriole Veteran Veteran

    Messages:
    1,030
    Likes Received:
    334
    First Language:
    indonesian
    updated the script to v. 1.3

       v1.3 2015.11.10           - fix compatibility patch for Galenmereth MouseSystem Ex.
                                 which will crash if that script not installed.
                                 - fix dependency to Yanfly Core.
                                 (i create the plugins with Yanfly Core active. and didn't realize it fix MV bugs)
                                 now it should be ok without yanfly core. (i advise still using his core though
                                 it have many other bugfixes)
     

    this remind me to turn off all other plugins before testing it. >.<

    i got yanfly core installed and didn't realize MV have bugs which then affect my plugin. now it should be ok without yanfly core...

    although i still advise using yanfly core. since it fix bugs from original MV.

    btw demo updated...

    i put my next plugin there...

    EST - REGIONMAPLOADER

    but it still have bugs when loading savefile... so i will try to fix the bugs before releasing it.

    don't use it yet. :D .

    also... it might be slow process. since a storm recently hit my hometown. and got some power lines broken.

    our electricity is damaged. and take turn on having electricity. (24 hour off 6 hour on). that's why that plugin is not finished yet.

    EDIT: EST - RegionMapLoader is finished... fixed all the bugs...

    currently awaiting moderation for the plugin post... if you're not patient... just grab from the demo :D .

    demo is updated with the final version of that plugin
     
    Last edited by a moderator: Nov 16, 2015
    #8
    Mattchaby likes this.
  9. Mattchaby

    Mattchaby Villager Member

    Messages:
    15
    Likes Received:
    3
    First Language:
    French
    Hello! I'm trying to mix together this plugin with your Build and Decor Ex and the DMV Map Buttons.

    Everytime I'm placing a furniture (event+1X size) using the map button (using a touch screen), it's automatically placed over my main character and I cannot move the event. Therefore, when moving my character away, it causes a crash "boolean is not a function" related to the passability check of Event Size and Trigger plugin :

    448:11

       at Array.forEach (native)

       at Game_Player.startMapEvent

    445:21

       at Game_Player.checkEventTriggerHere

    (sorry for no screenshot nor copy/paste, a bit stuck at the moment)

    Maybe it's a bit too much asked of the plugins at the moment, but I'd love be able to place large events that can automatically check passability on terrain, while using a touchscreen :D
     
    #9
    estriole likes this.
  10. estriole

    estriole Veteran Veteran

    Messages:
    1,030
    Likes Received:
    334
    First Language:
    indonesian
    i really thank you for your post

    why? when i add above feature to also 'check size' when moving decoration in EST - Build and Decor Ex... i manage to do that plus this other thing:

    -) remove the need to placeholder event for decor movement... which also accidently make me found next problem...

    -) found a bug in EST - Clone Transform Delete Event

    -) add limitRegion so you can limit where you can place your decoration when you move them...

    -) add transparency if event cannot be placed which make me found next problem

    -) found a bug in EST - Graphic Shift EVO

    so it's bugs combo finding. :D . one bug fixed lead to finding another bug. :D

    above changes is finished... but i will post the update tonight...

    going to dinner with my wife first. when i get home i will update 3 plugin above:

    i also have to update the plugin documentation and demo for all this plugin:

    EST - BUILD AND DECOR EX

    EST - CLONE TRANSFORM DELETE EVENT

    EST - GRAPHIC SHIFT
     
    Last edited by a moderator: Dec 18, 2015
    #10
  11. Mattchaby

    Mattchaby Villager Member

    Messages:
    15
    Likes Received:
    3
    First Language:
    French
    Wow glad this could help :)  

    I'm waiting for your updates then!

    Thanks again
     
    #11
  12. estriole

    estriole Veteran Veteran

    Messages:
    1,030
    Likes Received:
    334
    First Language:
    indonesian
    #12
  13. Mattchaby

    Mattchaby Villager Member

    Messages:
    15
    Likes Received:
    3
    First Language:
    French
    #13
  14. estriole

    estriole Veteran Veteran

    Messages:
    1,030
    Likes Received:
    334
    First Language:
    indonesian
    This plugin didn't updated... other plugin of the decor series is the one that get updated. Since the bug is from that other plugin...

    Can you tell me what version your:

    EST-Save Map Event

    EST-Clone Transform Delete Event

    EST-Build Decor Ex

    EST-Event Size and Trigger

    I will look at the for each that throwing error from your screenshot.

    There's also possibility of plugin incompatibility. Since my demo work fine. I can place pokemon center / rtp house without crashing.
     
    #14
  15. Mattchaby

    Mattchaby Villager Member

    Messages:
    15
    Likes Received:
    3
    First Language:
    French
    My versions:

    1.6 EST-Save Map Event

    1.9 EST-Clone Transform Delete Event

    1.5 EST-Build Decor Ex

    1.2 (but 1.3 in changelog) EST-Event Size and Trigger

    I'm also using EST_RegionMapLoader 1.1

    My user case is that I'm using the on-screen button shortcut to call a large event while using a touchscreen, so my screen doesn't have any mouse cursor. Maybe it's related? I'll have to test on a proper computer to reproduce the issue. 
     
    #15
  16. estriole

    estriole Veteran Veteran

    Messages:
    1,030
    Likes Received:
    334
    First Language:
    indonesian
    Hmmm... all is the newest version...

    Do you use online browser to run that in your touchscreen device? Or you create apk/ipa?

    If you use online browser...

    How do you 'host' the game? Since i have read someone getting cached version of his game when using certain way to host the game. So even he update the plugin... it will still use old version which cached.

    Does it also happen from editor - playtest in your pc?

    Also... try downloading my demo and host the way you host yours... does it throw error?

    I cannot replicate the bug you post... my demo also work fine without crashing... >.<
     
    #16
  17. estriole

    estriole Veteran Veteran

    Messages:
    1,030
    Likes Received:
    334
    First Language:
    indonesian
    updated plugin to v1.4

    changelog:

       v1.4 2015.12.27           - fix compatibility patch for Galenmereth MouseSystem Ex to work with newest version
     

    i also update EST - BUILD AND DECOR EX plugin... check it out :D .
     
    #17
    DangDut likes this.
  18. takuantoono

    takuantoono Villager Member

    Messages:
    7
    Likes Received:
    1
    First Language:
    Japanese
    That's great plugin which I wanted for!


    I have a small problem with using your plugin " Event Size and Trigger ".


    If "Trigger" of an event is set as "2(Event Touch)", the event contents cannot be activated in enlarged range by touching with player from the event's moving.


    (It can be activated by touching from player though.)


    It will be greatly appreciated if this issue is fixed. 

    pic.png
     
    #18
  19. TombaLaBomba

    TombaLaBomba Villager Member

    Messages:
    16
    Likes Received:
    2
    First Language:
    German
    Hi Estriole


    Really cool plugin! Could you make Event Size and Trigger compatible with Quasi Movement?
     
    #19
  20. Timaden

    Timaden Warper Member

    Messages:
    2
    Likes Received:
    0
    Hey EST, thks for your plugin. can you help me, i keep getting error 26 property undefined when i run the game with the new size
     
    #20

Share This Page