【汉化】YEP.182 – Icons on Events

Introduction

Ever wanted to put icons on events and/or the player? With this plugin, you can easily do it through a notetag, comment tag, movement script, or script calls. The icons can be attached to either the target’s head or moved around with buffer values! Placing icons on events can be used for a variety of things, such as puzzles involving holding items or using icons to mark certain objects on the map. The possibilities are endless!
曾经想在事件或者玩家头上放置图标吗?使用此插件,您可以通过notetag,comment,移动脚本、脚本调用等轻松完成此操作。图标可以附加到目标的头部,也可以使用进行移动!在事件上放置图标可用于各种事物,例如谜题或图标来。

Instructions – Notetags and Comment Tags

The easiest way to attach icons to events would be to use notetags and/or comment tags. Using notetags will make the icon always attached to the event while using comment tags will make the icon attached to the event only if the page containing the comment tag is active.
将图标附加到事件的最简单方法是使用备注或注释。使用notetags将使图标附加到事件,而使用comment标记只有在包含comment标记的页面处于活动状态时才会使图标附加到事件。

<Icon on Event: n>
– Replace ‘n’ with the icon you wish to attach to the event.
将“n”替换为您要附加到事件的图标。

<Icon on Event Buffer X: +x>
<Icon on Event Buffer X: -x>
– Replace ‘x’ with the buffer amount for X. For X, a negative number moves it left and a positive one moves it right.
将“x”替换为X的偏移量。对于X,负数将其向左移动而正向右移动。

<Icon on Event Buffer Y: +y>
<Icon on Event Buffer Y: -y>
– Replace ‘y’ with the buffer amount for Y. For Y, a negative number moves it up and a positive one moves it down.
y”替换为Y的偏移量。对于Y,负数将其向上移动,正数向下移动。

<Icon on Event Buffer: +x, +y>
<Icon on Event Buffer: -x, -y>
– Replace ‘x’ and ‘y’ with the respective buffer values you wish to apply. For X, a negative number moves it left and a positive one moves it right. For Y, a negative number moves it up and a positive one moves it down.
将“x”和“y”替换为您要应用的相应偏移值。对于X,负数将其向左移动而正向右移动。对于Y,负数将其向上移动而正向下移动它。

Keep in mind these notetags and comment tags only work for events. They do not work on the player character. If you wish to apply icons to the player character, you’d have to use one of the methods below.
请记住,这些notetags和comment标签仅适用于事件。它们不适用于玩家角色。如果您希望将图标应用于玩家角色,则必须使用以下方法之一。

Instructions – Movement Route – Script

Using a Movement Route event to attach an icon is a bit easier than using a Script Call to attach an icon. Whichever is the target in the Movement Route dropdown list is the target that will have an icon attached to it when the following script command is used:
使用Movement Route事件附加图标比使用脚本调用附加图标要容易一些。运动路线下拉列表中的目标是使用以下脚本命令时将附加图标的目标:

this.setIconOnEvent(n)
– Replace ‘n’ with the icon index you wish to use.
将“n”替换为您要使用的图标索引。

If you wish to change the X and Y buffers on the icon, use the following script commands:
如果要更改图标上的X和Y偏移值,请使用以下脚本命令:

this.setIconOnEventBufferX(n)
this.setIconOnEventBufferY(n)
– Replace ‘n’ with the positioning buffer you wish to alter X or Y by. For X, a negative number moves it left and a positive one moves it right. For Y, a negative number moves it up and a positive one moves it down. To clear the icon or to reset the X and Y buffers, use the following script commands:
将'n'替换为您想要改变X或Y的偏移值。对于X,负数将其向左移动而正向右移动。对于Y,负数将其向上移动而正向向下移动它。要清除图标或重置X和Y偏移,请使用以下脚本命令

this.clearIconOnEvent()
– This will clear the icon on the event.
这将清除事件上的图标。

this.resetIconOnEventBuffers()
– This will reset the X and Y buffers to what they are in the plugin parameter settings.
这会将X和Y重置为插件参数设置中的偏移值。

Instructions – Script Calls

Using script calls are a little bit more difficult but they’re more flexible to use than Movement Route scripts.
使用脚本调用有点困难,但使用它们比运动路径脚本更灵活。

var target = $gameMap.event(i);
target.setIconOnEvent(j);

– This will grab event ‘i’ from the map and place icon ‘j’ on it.
这将从地图中抓取事件'i'并在其上放置图标'j'。

var target = $gamePlayer;
target.setIconOnEvent(j);

– This will place icon ‘j’ on the player character.
这会在玩家角色上放置“j”图标。

var target = $gamePlayer.followers().follower(i);
target.setIconOnEvent(j);

– This will target follower ‘i’ and place icon ‘j’ on that follower.
这将针对跟随者'i'并在该跟随者上放置图标'j'。

To adjust the buffer values of the targets, try the following script calls.
要调整目标的偏移,请尝试以下脚本调用。

var target = $gameMap.event(i);
target.setIconOnEventBufferX(x);
target.setIconOnEventBufferY(y);

– The target becomes event ‘i’. The ‘x’ and ‘y’ values will determine the X and Y buffers of the icon on the target.
标成为事件'i'。'x'和'y'值将决定目标上图标的X和Y偏移。

var target = $gamePlayer;
target.setIconOnEventBufferX(x);
target.setIconOnEventBufferY(y);

– The target becomes the player. The ‘x’ and ‘y’ values will determine the X and Y buffers of the icon on the target.
目标成为玩家。'x'和'y'值将决定目标上图标的X和Y偏移。

var target = $gamePlayer.followers().follower(i);
target.setIconOnEventBufferX(x);
target.setIconOnEventBufferY(y);

– The target becomes follower ‘i’. The ‘x’ and ‘y’ values will determine the X and Y buffers of the icon on the target.
目标成为追随者'我'。'x'和'y'值将决定目标上图标的X和Y偏移。

To clear the icon or to reset the X and Y buffers, use the following script calls:
要清除图标或重置X和Y偏移,请使用以下脚本调用:

var target = $gameMap.event(i);
target.clearIconOnEvent();

– The target becomes event ‘i’. Clears the icon on the target.

var target = $gamePlayer;
target.clearIconOnEvent();

– The target becomes the player. Clears the icon on the target.

var target = $gamePlayer.followers().follower(i);
target.clearIconOnEvent();

– The target becomes follower ‘i’. Clears the icon on the target.

var target = $gameMap.event(i);
target.resetIconOnEventBuffers();

– The target becomes event ‘i’. Resets the X and Y buffers.

var target = $gamePlayer;
target.resetIconOnEventBuffers();

– The target becomes the player. Resets the X and Y buffers.

var target = $gamePlayer.followers().follower(i);
target.resetIconOnEventBuffers();

– The target becomes follower ‘i’. Resets the X and Y buffers.

Happy RPG Making!

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

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 7,096评论 0 10
  • The Inner Game of Tennis W Timothy Gallwey Jonathan Cape ...
    网事_79a3阅读 10,989评论 2 18
  • 她是张祎琳,她长着长长的头发。她还有一双明亮的眼睛,有一天我们在一座公园相遇。后来,我们就成了朋友。我们玩过许多游...
    张祎琳阅读 344评论 1 1
  • 每每被这世间美好的事物吸引,都很想告诉全世界我有多欢喜,我有多热爱这美好,但羞于表达,我分享出来的都只是照片,没有...
    暖树听风阅读 666评论 9 9
  • 不管人群是多么庞大,相对于宇宙都是孤独的。 我们在用什么而为,显然我们是在用创新而为。当我们生存的时候,在我们的实...
    写写罢了阅读 159评论 0 0