Items Usage Conditions - Allows you to set conditions for the use of items through notes using JavaScript.

DK

Veteran
Veteran
Joined
Mar 30, 2016
Messages
402
Reaction score
377
First Language
Russian
Primarily Uses
RMMZ
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:
Use 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/
 

AquaEcho

Script Kitty
Veteran
Joined
Sep 20, 2021
Messages
532
Reaction score
245
First Language
English
Primarily Uses
RMMV
Nice job. Could be useful for making it so only certain party members can use items or the items can only be used in certain situations, i.e. battle or crafting menus.
 

Latest Threads

Latest Profile Posts

It's Sunday. Stop working and take a break. Relax a little.
Ooops ended up trying out making my own A2 tile page instead of testing doors everywhere. Went well so far I think.
I guess I'm done making a blue squirrel's life difficult for posting new threads on different forums.
That's just for today so don't get used to this, squirrel-ish friend! :p
Got new hard drive, now trying to install the softwares I lost to the dead drive, and more than half of them won't install because they're already installed on the dead drive, and uninstallers won't run because they can't find where their programs are installed. So I take it having a drive die on you screws you in more ways than just data loss. >:\
PC got fixed finally. Back online again. Turns out I have no business trying to self repair pcs because it was getting to like 176F / 80C. Shop installed a totally new cooling system and now it runs fine and is super quiet.

Forum statistics

Threads
131,487
Messages
1,220,217
Members
173,225
Latest member
ZecaVn
Top