Making Dynamic Requirement for Equip

Grognard

Villager
Member
Joined
Apr 3, 2019
Messages
26
Reaction score
7
First Language
English
Primarily Uses
RMMV
Hi I looked around, but couldn't find any plugins available that really worked for this issue:

I want a character to only be able to equip a certain item if a parameter value is the highest. So, for example, the player can equip the Sword of Attack if his attack is higher than any other parameter.
(IF atk > def AND atk > m.atk AND atk > m.def THEN equip = true).

Does anyone know of anyone know of any plugins or methods to do this? Extra points if an item will auto-unequip if a parameter is no longer the highest.

Thanks!
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
I am unsure if this can be done without a plugin. If those more knowledgeable than me advise that one is required please Report this post and ask for the thread to be moved to JS Plugin Requests.
Thanks.
 

shivaa

Villager
Member
Joined
Jan 2, 2019
Messages
11
Reaction score
0
First Language
French
Primarily Uses
Other
I'm not sure but I think that there's no plugin for this method
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
I didn't test it but you could probably make it work with Yanfly's Equip Requirements.
http://yanfly.moe/2016/02/27/yep-75-equip-requirements/

Make sure to read the help section, and here is a notetag to get you started.
Code:
<Custom Equip Requirement Condition>
if (user.atk > user.def &&
    user.atk > user.mat &&
   // and so on...
) {
    condition = true;
} else {
    condition = false;
}
</Custom Equip Requirement Condition>
Start small to test it works first then add all the conditions.
 

Grognard

Villager
Member
Joined
Apr 3, 2019
Messages
26
Reaction score
7
First Language
English
Primarily Uses
RMMV
Aloe,
Thank you SO much! I tested out a notetag based on your guidance and I think that'll work great! I appreciate your help!
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
[move]JS Plugin Requests[/move]
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,836
Latest member
T62352536256t362
Top