Making Reputation Locked Equipment

JoelMarler

Veteran
Veteran
Joined
Jun 30, 2018
Messages
61
Reaction score
11
First Language
English
Primarily Uses
RMMV
I want to make some equipment in my game useable only if you have a positive or negative reputation, which is tracked with a variable. Does anyone know how to do this? Preferably any equipped equipment would unequip itself as well if your party's reputation suddenly switched from being positive to negative and vice-versa too.
 

Animebryan

Need more resources!
Veteran
Joined
Jul 31, 2012
Messages
444
Reaction score
226
First Language
English
Primarily Uses
RMMZ
Yanfly's Equip Requirements http://yanfly.moe/2016/02/27/yep-75-equip-requirements/ can make that possible. It requires his Equip Core http://yanfly.moe/2015/10/15/yep-10-equip-core/.

Assuming that your 'Party's Reputation' is set to a single variable (rather than variables for each member), then you simply need to add a custom condition notetag to the piece of equipment like so:

Code:
<Custom Equip Requirement Condition>
 *    if ($gameVariables.value(x) >= n) {
 *      condition = true;
 *    } else {
 *      condition = false;
 *    }
 *   </Custom Equip Requirement Condition>
Replace x with the variable number for your party's rep & replace n with the value required (it checks if the variable is equal or greater than n).
 

JoelMarler

Veteran
Veteran
Joined
Jun 30, 2018
Messages
61
Reaction score
11
First Language
English
Primarily Uses
RMMV
Yanfly's Equip Requirements http://yanfly.moe/2016/02/27/yep-75-equip-requirements/ can make that possible. It requires his Equip Core http://yanfly.moe/2015/10/15/yep-10-equip-core/.

Assuming that your 'Party's Reputation' is set to a single variable (rather than variables for each member), then you simply need to add a custom condition notetag to the piece of equipment like so:

Code:
<Custom Equip Requirement Condition>
 *    if ($gameVariables.value(x) >= n) {
 *      condition = true;
 *    } else {
 *      condition = false;
 *    }
 *   </Custom Equip Requirement Condition>
Replace x with the variable number for your party's rep & replace n with the value required (it checks if the variable is equal or greater than n).
Thank you very much, that should work perfectly!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

"You can thank my later", "But you haven't done anything", "Well, that's why ..."
Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

Forum statistics

Threads
105,884
Messages
1,017,240
Members
137,609
Latest member
shododdydoddy
Top