【汉化】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.