【汉化】YEP.169 – Event Morpher

Introduction

WARNING: This plugin is best used with RPG Maker MV 1.5.0 or above! This is because the MV 1.5.0 editor allows for this plugin to be made in an orderly and efficient manner. Please make sure your RPG Maker MV software is up to date before using this plugin to make the most out of it.
警告:此插件最适用于RPG Maker MV 1.5.0或更高版本!

Those familiar with RPG Maker will know that you can change the way events operate through different pages. However, what if you wanted one event to completely change into another, aka morph? By morphing an event into another event, the morphed event will completely replace all of its properties from pages, conditions, event commands, etc. with the event it morphed into.
那些熟悉RPG Maker的人,可以通过不同的页面改变事件的运作方式。但是,如果你想让一个事件完全变成另一个事件,完全替换页面,条件,事件命令等的所有属性,可以使用这个插件。

This can allow for more progressive systems as the player goes through your game. From things like plants to mineral veins to new NPC’s hired to keep a store running afloat, by morphing an event, you give it a new purpose and ongoing functionality.
你可以据此建立更加高级的玩法,从植物采集到矿物开挖,再到新的NPC,通过事件变形,让商店保持运营,你给它一个持续的功能。

Furthermore, this plugin allows you to preserve any morphs you want, so that the next time the player loads your game, revisits the map with the morphed event, or simply comes back from battle, the morph changes remain.
此外,此插件允许您保留所需的任何变形,以便下次玩家加载游戏时,使用变形事件重新访问地图,或者只是从战斗中返回,变形保持动态。

More information will be explained in the Instructions section of this plugin’s help file.
更多信息将在此插件的帮助文件的“说明”部分中说明。

Instructions

Use the plugin parameter ‘Template Maps’ to select which maps your game will preload maps from. These maps will contain the events that you want other events to morph into. Any kind of event can be used as a morph template, from trigger events to auto run events to parallel events.
使用插件参数“模板地图”选择游戏将从中预加载地图的地图。这些地图将包含您希望其他事件变形的事件。任何类型的事件都可以用作变形模板,从触发事件到自动运行事件再到并行事件。

If you are using RPG Maker MV 1.5.0+ and wish to make use of template names, add them through the ‘Template Names’ plugin parameter. The data from the Template Names parameters can be changed and all events in-game that use script calls with the respective Template Name will be updated accordingly.
如果您正在使用RPG Maker MV 1.5.0+并希望使用模板名称,请通过“模板名称”插件参数添加它们。可以更改模板名称参数中的数据,并且可以相应地更新,使用具有模板名称的脚本所调用的事件。

Script Calls

To make events morph and change into something else, use the following script call code:
要使事件变形并更改为其他内容,请使用以下脚本调用代码:
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Morph Event – Script Calls 变形事件 - 脚本调用
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

Yanfly.MorphEvent(targetId, mapId, eventId, preserved)
这将导致目标事件变形为指定的事件。
– This will cause the target event to morph into the designated event.
– Replace ‘targetId’ with the ID of the target event you wish to morph.
– Replace ‘mapId’ with the ID of the map with the event to morph into.
– Replace ‘eventId’ with the ID of the event to morph the target into.
– Replace ‘preserved’ with ‘true’ or ‘false’ to preserve the morph.*

Example: Yanfly.MorphEvent(15, 1, 5, true);
– Event 15 on the current Map will change into Map 1, Event 5’s event.
– This event will be preserved.

Example: Yanfly.MorphEvent(20, 2, 10, false);
– Event 20 on the current Map will change into Map 2, Event 10’s event.
– This event will NOT be preserved.

– – –

Yanfly.MorphEventTemplate(targetId, template, preserved)
这将导致目标事件根据模板名称进行变形。
– This will cause the target event to morph based on the template name.
– Replace ‘targetId’ with the ID of the target event you wish to morph.
– Replace ‘template’ with a name from the ‘Template Names’ plugin param. This must be in ‘string’ form (surround the name with quotes).
– Replace ‘preserved’ with ‘true’ or ‘false’ to preserve the morph.*

Example: Yanfly.MorphEvent(15, ‘StrawberryPlant’, true);
– Event 15 on the current Map will change into event marked by the ‘StrawberryPlant’ template from the plugin parameters.
– This event will be preserved.

Example: Yanfly.MorphEvent(20, ‘MineralVein’, false);
– Event 20 on the current Map will change into event marked by the ‘MineralVein’ template from the plugin parameters.
– This event will NOT be preserved.

– – –

* Note: If a morph is preserved, it will remain morphed the next time the player reenters the map.
注意:如果保留变形,则下次玩家重新进入地图时将保持变形

– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –
Morph Removal – Script Calls 变形移除 - 脚本调用
– – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – – –

Yanfly.RemoveMorph(targetId)
这将删除当前地图上目标的任何变形(和保留)效果。
– This will remove any morphed (and preserved) effects from the target on the current map.
– Replace ‘targetId’ with the ID of the target event to remove morphing.

Example: Yanfly.RemoveMorph(15)
– The current map’s event 15 will have its morphed effects removed.
– All preserved morphing effects for this event will be removed.

– – –

Yanfly.RemovePreserveMorph(targetMapId, targetEventId)
这将从位于不同地图上的目标事件中删除任何保留的变形效果。
– This will remove any preserved morphed effect from a target event located on different map.
– Replace ‘targetMapId’ with the ID of the map the target event is on.
– Replace ‘targetEventId’ with the ID of the target event.

Example: Yanfly.RemovePreserveMorph(10, 20)
– Map 10’s event 20 will have its morphed effects removed.
– All preserved morphing effects for this event will be removed.

Happy RPG Making!

©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 218,036评论 6 506
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 93,046评论 3 395
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 164,411评论 0 354
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 58,622评论 1 293
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 67,661评论 6 392
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 51,521评论 1 304
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 40,288评论 3 418
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 39,200评论 0 276
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 45,644评论 1 314
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 37,837评论 3 336
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 39,953评论 1 348
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 35,673评论 5 346
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 41,281评论 3 329
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 31,889评论 0 22
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 33,011评论 1 269
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 48,119评论 3 370
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 44,901评论 2 355

推荐阅读更多精彩内容