じ☆ve冰风 发表于 2026-7-16 21:54:08

Items Usage Conditions - Allows you to set conditions for the use of items throu

Title: Items Usage Conditions
Version: 1.0.0
Author: DKPlugins
Description: Allows you to set conditions for the use of items through notes using JavaScript.

Compatibility:

[*]RPG Maker MV: 1.5+
[*]RPG Maker MZ: 1.0+

Instructions:
SpoilerUse item notes to set the condition for using the item!
Use <use_condition>your_javascript_condition</use_condition>
your_javascript_condition - Your JavaScript condition.

Example (you can use an item only when the switches with numbers 1 and 2 are on):
<use_condition>
$gameSwitches.value(1) &&
$gameSwitches.value(2)
</use_condition>

Example (you can use an item only if the value of variable number 1 is greater than 10):
<use_condition>
$gameVariables.value(1) > 10
</use_condition>




"Help" languages: English, Russian

Terms of use
You can:
-To use the plugin for your non-commercial projects
-Change code of the plugin

You cannot:
-Delete or change any information about the plugin
-Distribute the plugin and its modifications

Details on obtaining a commercial license on my website

Plugin page:https://dk-plugins.ru/items-usage-conditions/


本贴来自国际rpgmaker官方论坛作者:DK处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/items-usage-conditions-allows-you-to-set-conditions-for-the-use-of-items-through-notes-using-javascript.156002/
页: [1]
查看完整版本: Items Usage Conditions - Allows you to set conditions for the use of items throu