设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 93|回复: 0

[转载发布] EST - EVENT GRAPHIC SHIFT

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    7959

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    29925
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    38778

    灌水之王

    发表于 4 天前 | 显示全部楼层 |阅读模式
    ■ Information      ╒══════════════════════════╛
    EST - Event Graphic Shift NEO
    Version: 1.7
    By Estriole
    File name: EST_Event_Graphic_Shift.js

    ■ Introduction     ╒══════════════════════════╛
        Have charset that need the graphic to be shifted by x pixel?
    for example a building with the door not exactly in the middle of the
    event graphic. just use this plugin

    ■ Features         ╒══════════════════════════╛

      - shift graphic x
      - shift graphic y
      - shift graphic z
      - flip graphic horizontally
      - flip graphic vertically
      - rotate graphic
      - set graphic transparency
      - set graphic zoom / scale
      - set blend / tone color (NOT WORKING IF USING CHROME)


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

    older changelog inside spoiler

    Spoilerv1.0 2015.10.29           Initial Release
    v1.1 2015.10.30           improved regexp so we can also use , to separate the x and y
                                fix bug when erasing event.
    v1.2 2015.11.01     -     fix crash when no event page met condition... v1.3 2015.11.12     -     add z to the graphic shift. so you can make event that on top of other event.
                               fix regexp so it recognize <graphic_shift: 1,2,3> (coma without spaces)
    v1.4 2015.11.23     -     ability to flip / rotate the graphic. using comment tag:
                               <graphic_flip_h> => flip graphic horizontally
                               <graphic_flip_v> => flip graphic vertically
                               <graphic_rotation: x> => rotate graphic by x degree
                               ability to flip / rotate the graphic using script call / plugin call:
                               script call:
                               this.thisEventChangeFlipH(true); //=> will flip graphic horizontally
                               this.thisEventChangeFlipH(false); //=> will cancel flip graphic horizontally
                               this.thisEventChangeFlipV(true); //=> will flip graphic vertically
                               this.thisEventChangeFlipV(false); //=> will cancel flip graphic vertically
                               this.thisEventChangeRotation(x); //=> will rotate graphic by x degree
                               plugin call:
                               this_event_change_fliph true //=> will flip graphic horizontally
                               this_event_change_fliph false //=> will cancel flip graphic horizontally
                               this_event_change_flipv true //=> will flip graphic vertically
                               this_event_change_flipv false //=> will cancel flip graphic vertically
                               this_event_change_rotation x //=> will rotate graphic by x degree
    v1.5 2015.11.23     -     ability to change graphic offset x and y using scriptcall / plugin call:
                               script call:
                               this.thisEventChangeOffsetX(value); //=> will set offset x to value
                               this.thisEventChangeOffsetY(value); //=> will set offset y to value
                               plugin call:
                               this_event_change_offsetx value; //=> will set offset x to value
                               this_event_change_offsety value; //=> will set offset y to value

    v1.6 2015.12.01     -     > ability to change graphic offset z using scriptcall / plugin call:
                               > Notetags/Commenttags to change event zoom (default zoom too), scale x, scale y
                               > ability to change event zoom / scale x / scale y using scriptcall / plugin call:
                               > ability to change event opacity
                               Below CAN be turned OFF if you don't use it...
                               > ability to change blend color(warning: chrome not supported)
                               > ability to change tone color (warning: chrome not supported)



    v1.7 2015.12.18     -     > fix bug with graphic opacity...

    ■ Plugin Download ╒══════════════════════════╛
    Dropbox



                                            www.dropbox.com                               



    (update the dead dropbox link)
    warning: this plugin created using earlier MV version. this might not work in updated MV.
    you can ask other scripter to create compatibility patch since i already retired.
    i only update the link for people who want to make the patch.

    ■ Demo ╒══════════════════════════╛
    Dropbox



                                            www.dropbox.com                               



    (update the dead dropbox link)
    warning: this plugin created using earlier MV version. this might not work in updated MV.
    you can ask other scripter to create compatibility patch since i already retired.
    i only update the link for people who want to make the patch.

    (All EST - Build And Decor Series Conversion plugin will share same dropbox demo)

    ■ How to use       ╒══════════════════════════╛  

    see spoiler

    Spoileradd Comment at the event page you want the graphic to shift
    <graphic_shift: offsetx offsety offset z>
         example:
         <graphic_shift: 32 -32, 2>
             <graphic_shift: 32, -32> (from v1.1 this work too)
             <graphic_shift: 32  , -32> (from v1.1 this work too)
             <graphic_shift: 32  ,-32> (from v1.1 this work too)

         will shift the graphic x by +32 pixel (go to right 32 pixel)
         will shift the graphic y by -32 pixel (go to down 32 pixel)
         will shift the graphic z by adding 2 z level so it will be on top of event with lower z value

    tips by default event z = event priority type * 2 + 1
         > below character = 0 => 0*2+1 = 3
         > same as character = 1 => 1*2+1 = 3
         > above character = 2 => 2*2+1 = 5
         > [Tile] Event (ignore above 3 setting) = 0 => 0*2+1 = 1
    so if you add 2... the final z level will be added by value from default event z
    if you want to reduce z level. use negative value.

    some z level references:
    shadow = 6
    balloon = 7
    animation = 8
    mouse destination sprite = 9
    source : rpg_sprites.js

    if you only want to shift x value you could do fine with not entering the offsety value
    or offset z.
         example:
         <graphic_shift: 32>
    > new comment tag for flipping / rotating event graphic
    give comment tag:
       <graphic_flip_h> => flip graphic horizontally
       <graphic_flip_v> => flip graphic vertically
       <graphic_rotation: x> => rotate graphic by x degree

    > ability to flip / rotate the graphic using script call / plugin call:
    script call:
        this.thisEventChangeFlipH(true); //=> will flip graphic horizontally
        this.thisEventChangeFlipH(false); //=> will cancel flip graphic horizontally
        this.thisEventChangeFlipV(true); //=> will flip graphic vertically
        this.thisEventChangeFlipV(false); //=> will cancel flip graphic vertically
        this.thisEventChangeRotation(x); //=> will rotate graphic by x degree
    plugin call:
        this_event_change_fliph true //=> will flip graphic horizontally
        this_event_change_fliph false //=> will cancel flip graphic horizontally
        this_event_change_flipv true //=> will flip graphic vertically
        this_event_change_flipv false //=> will cancel flip graphic vertically
        this_event_change_rotation x //=> will rotate graphic by x degree

    > ability to change graphic offset x and y using scriptcall / plugin call:
    script call:
        this.thisEventChangeOffsetX(value); //=> will set offset x to value
        this.thisEventChangeOffsetY(value); //=> will set offset y to value
    plugin call:
        this_event_change_offsetx value; //=> will set offset x to value
        this_event_change_offsety value; //=> will set offset y to value

    > ability to change graphic offset z using scriptcall / plugin call:
    script call:
        this.thisEventChangeOffsetZ(value); //=> will set offset z to value
    plugin call:
        this_event_change_offsetz value; //=> will set offset z to value

    > Notetags/Commenttags to change event zoom (default zoom too), scale x, scale y
    to make all event in a map to have specific default zoom level...
    give notetags to MAP NOTE:
    <event_zoom: value>
    will zoom all map event [value] times from normal (can be changed individually
    by comment tag / script call / plugin call)

    to change specific event page zoom level give comment tag:
    <graphic_zoom: value> -> will zoom event by [value] times (both x and y affected)
    <graphic_scalex: value> -> will only affect x zoom (become fat/thin  
    )
    <graphic_scaley: value> -> will only affect y zoom (become short/tall  
    )

    > ability to change event zoom /scale x / scale y using scriptcall / plugin call:
    script call:
    this.thisEventChangeScaleX(value);
    this.thisEventChangeScaleY(value);
    this.thisEventChangeZoom(value);
    change value to any number. if you want to use decimal. use
    1.5 instead of 1,5

    plugin call:
    this_event_change_scalex value
    this_event_change_scaley value
    this_event_change_zoom value
    change value to any number. if you want to use decimal. use
    1.5 instead of 1,5

    > comment tag to set event page opacity
    <graphic_opacity: value>
    change value to number between 0-255 (255 is solid, 0 is transparent)

    > ability to change event opacity using script call / plugin call:
    script call:
    this.thisEventChangeOpacity(value);
    plugin call:
    this_event_change_opacity value

    will set event opacity to value

    WARNING !!! BELOW IS NOT SUPPORTED IN CHROME... it will show black image instead.
    THIS FEATURE CAN ALSO BE TURNED OFF IF YOU DON'T WANT TO USE IT... CHANGE IN PLUGIN PARAMETER
    IF YOU TURN IT OFF THAT MEAN LESS CHECK AND FASTER SPEED.

    > comment tag to set event page blend color (warning: chrome not supported)
    <graphic_blend: red, green, blue, alpha>
    red => 0-255 (need alpha to show effect)
    green => 0-255 (need alpha to show effect)
    blue => 0-255 (need alpha to show effect)
    alpha => 0-255 (strength of the blend... lower value will make it not seen)

    > ability to change blend color by script call / plugin call(warning: chrome not supported)
    script call:
    this.thisEventChangeBlend(red,green,blue,alpha)
    plugin call:
    this_event_change_blend red green blue alpha

    red => 0-255 (need alpha to show effect)
    green => 0-255 (need alpha to show effect)
    blue => 0-255 (need alpha to show effect)
    alpha => 0-255 (strength of the blend... lower value will make it not seen)

    > comment tag to set event page tone color (warning: chrome not supported)
    <graphic_tone: red, green, blue, alpha>
    red => 0-255 (need alpha to show effect)
    green => 0-255 (need alpha to show effect)
    blue => 0-255 (need alpha to show effect)
    alpha => 0-255 (strength of the blend... lower value will make it not seen)

    > ability to change tone color via script call / plugin call (warning: chrome not supported)
    script call:
    this.thisEventChangeTone(red,green,blue,alpha)
    plugin call:
    this_event_change_tone red green blue alpha
    red => 0-255 (need alpha to show effect)
    green => 0-255 (need alpha to show effect)
    blue => 0-255 (need alpha to show effect)
    alpha => 0-255 (strength of the blend... lower value will make it not seen)



    ■ 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       ╒══════════════════════════╛
    > RemoveBlendAndToneCheck
    if this set to true... will remove the blend and tone feature (true/false)
    default false

    ■ 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


    本贴来自国际rpgmaker官方论坛作者:estriole处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/est-event-graphic-shift.48252/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-1 05:46 , Processed in 0.088976 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表