物品使用限制插件的特定使用方式示范 #26

Closed
opened 2 years ago by LZR1838 · 1 comments
Owner

将物品067“《卖萌秘籍》”设置为“当使用者已学会技能183‘卖萌I’时可使用”
物品使用限制插件备注截图

将物品067“《卖萌秘籍》”设置为“当使用者已学会技能183‘卖萌I’时可使用” ![物品使用限制插件备注截图](/attachments/caa360e2-2b14-4cd9-b7f3-392239f4ad6b)
LZR1838 added the
内测前完成
label 2 years ago
Owner

For those with JavaScript experience, you can create your own custom
requirements for whether or not items can be used using the following
notetag setup:

Item Notetags:

condition = battler.level >= item.price;
  • The 'condition' variable will determine whether or not the item will be
    enabled/disabled. If the 'condition' variable returns true, then the item
    is enabled provided all other conditions (if any) are also met. Otherwise,
    the item is disabled and cannot be used. The 'battler' variable will refer
    to the battler using the item. The 'item' variable will refer to the item
    being checked.

参考插件说明。

<Custom Enable Requirement>
    condition = a.isLearnedSkill(183);
</Custom Enable Requirement>
> For those with JavaScript experience, you can create your own custom > requirements for whether or not items can be used using the following > notetag setup: > > Item Notetags: > > <Custom Enable Requirement> > condition = battler.level >= item.price; > </Custom Enable Requirement> > > - The 'condition' variable will determine whether or not the item will be > enabled/disabled. If the 'condition' variable returns true, then the item > is enabled provided all other conditions (if any) are also met. Otherwise, > the item is disabled and cannot be used. The 'battler' variable will refer > to the battler using the item. The 'item' variable will refer to the item > being checked. 参考插件说明。 ``` <Custom Enable Requirement> condition = a.isLearnedSkill(183); </Custom Enable Requirement> ```
LZR1838 closed this issue 2 years ago
Sign in to join this conversation.
Loading…
There is no content yet.