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

[转载发布] TAA_EventOffset v1.0.3

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    4 天前
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    4600

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 4 天前 | 显示全部楼层 |阅读模式
    TAA_EventOffset - v1.0.3
    Created by taaspider

    This plugin is compatible with both MV and MZ.

    Terms of Use

    Any plugins developed by taaspider are free for use for both commercial and  noncommercial RPG Maker games, unless specified otherwise. Just remember to credit "taaspider".

    Redistribution of parts or the whole of taaspider plugins is forbidden (which also includes reposting), unless it comes from the official website (linked within the post). You are allowed to edit and change the plugin code for your own use, but you're definitely not allowed to sell or reuse any part of the code as your own. Although not required to use my plugins, a free copy of your game would be nice!

    Introduction

    This is a simple utility plugin that allows you to have more control over the event position in a tile, so that it can have a perfect placement in the scene. For example, it can be used to place the event a few pixels up and make it fit better like it is sitting on a chair, or a few pixels to the right, to hide behind a tree or an ornamental plant.

    Screenshots
    SpoilerView attachment 164475




    How to Use

    WARNING: This plugin requires RPG Maker MV 1.5.0 or above! Please make sure your RPG Maker MV software is up to date before using this plugin.

    First of, download the plugin here.

    The plugin has no parameters and all usage is done through event notes or comment tags. It's important to know that comment tags have precedence over note tags. That means that if you setup an event page with a different offset value then its note field, whenever that page becomes active it will overwrite the note settings.

    Both tagging methods use the same syntax:
    <TAA_EO: x={op}{n}; y={op}{m}>​
    <TAA_EO: x={op}{n}.{w}; y={op}{m}.{k}>​

    {op} can be replaced by one of the following operands: + (sum), - (subtraction), * (multiplication), / (division). You can also omit it entirely, which means the exact coordinate will be used.

    {n} and {m} are integers, while {w} and {k} are used for precision placement  inside the tile itself. If {w} and {k} is omitted or set as zero, it would represent the tile center coordinates, while any value greater than zero (along an operand, like + or -) would describe coordinates inside the same tile.

    Let's say, for example, that you want the event to be placed above its central coordinates, but halfway from the tile upper border:
    <TAA_EO: y=-0.5>​
    or even make it also halfway from the tile left border:
    <TAA_EO: x=-0.5; y=-0.5>​

    You can also replace any of the numeric parameters ({m}, {n}, {w} or {k}) with a variable value. To do that, use the tag v[{var num}]. For example, to use variables one and two to fine tune the event position, considering that their value hold the event position inside the tile:
    <TAA_EO: x=-0.v[1]; y=-0.v[2]>​

    In another example, the event can also be moved to coordinates specified by the same said variables, without the use of operands:
    <TAA_EO: x=v[1]; y=v[2]>​

    Or even use four variables to control every aspect of the event's position:
    <TAA_EO: x=v[1].v[2]; y=v[3].v[4]>​

    If using variables, keep in mind that values must be positive and it is more limited. For example, setting a variable to 1, 10 or 100 and using it as your decimal value (the value after the dot) will provide the same result: in either case it will translate to .1. I might consider changing this behavior in the future if the need arises.

    Spoiler: CHANGE LOG

    • Version 1.0.3:

      • Fixed an issue that could cause offsetted events to have no collision with characters;

    • Version 1.0.2:

      • Fixed an issue that would cause game crash if none of the event pages conditions are met (for example, have an event with a single page to load only when switch 1 is ON. If it is OFF, the game would crash);

    • Version 1.0.1:

      • Fixed an issue which would crash the game if using a "Erase Event" command;

    • Version 1.0.0:

      • Initial release;



    本贴来自国际rpgmaker官方论坛作者:taaspider处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/taa_eventoffset-v1-0-3.128904/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-16 15:50 , Processed in 0.143973 second(s), 57 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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