Yanfly Equip Core - Affecting Accuracy with Variables

Status
Not open for further replies.

Morpheus

Jack-of-Trades
Veteran
Joined
Mar 14, 2012
Messages
231
Reaction score
85
First Language
english
Primarily Uses
N/A
So I see with YEP Equip Core you can add Custom Code to affect stats.
<Custom Parameters>
atk = $gameVariables.value(1);
mat = atk / 2;
all = $gameParty.members().length;
</Custom Parameters>

I was wondering if it would be possible, with my game, to have weapon accuracy(HIT) be affected by a variable(Like if I made a variable called 'Swords Proficiency')?

I'm not entirely sure where I would start with this. I assume I would need to copy/paste the whole command into every weapon which is fine with me if need be, I'm just not sure of any other plugin that affects stats, especially HIT, based on variables.

Edit: After scouring on google for awhile I came across a steam post that said something about adding a variable to an EX-Parameter, I tried changing it to 'HIT' but it still doesn't affect my players accuracy in battle. anyone have any idea? My players base HIT is 50% + v441/2 (Goes up to 100)

<Custom Parameters>
var bonusValue = $gameVariables.value(441)/2;
hit = bonusValue;
</Custom Parameters>
 
Last edited:

JamesRyan

Game Designer
Veteran
Joined
Sep 13, 2014
Messages
696
Reaction score
215
First Language
Vietnamese
Primarily Uses
RMMV
According to Yanfly, only the following parameters in this plugin are defined: 'maxhp', 'maxmp', 'atk', 'def', 'mat', 'mdf', 'agi', 'luk', and 'all'. The 'all' parameter will affect all parameters.

HIT is not on the list, so you cannot manipulate it.
 

Morpheus

Jack-of-Trades
Veteran
Joined
Mar 14, 2012
Messages
231
Reaction score
85
First Language
english
Primarily Uses
N/A
According to Yanfly, only the following parameters in this plugin are defined: 'maxhp', 'maxmp', 'atk', 'def', 'mat', 'mdf', 'agi', 'luk', and 'all'. The 'all' parameter will affect all parameters.

HIT is not on the list, so you cannot manipulate it.
Dang, thank you for letting me know...

I don't suppose you know any way I could accomplish my task, huh?
 

JamesRyan

Game Designer
Veteran
Joined
Sep 13, 2014
Messages
696
Reaction score
215
First Language
Vietnamese
Primarily Uses
RMMV
Yanfly has two plugins that allow you to manipulate Ex and Special parameters. However, you need to add/subtract parameters manually via script calls. The lunatic mode of Equip Core does not have a feature to check when the equipment is unequipped, so if you use those two plugins, you can only add parameters to the actor, but cannot subtract when the equipment is unequipped.
 

mlogan

Global Moderators
Global Mod
Joined
Mar 18, 2012
Messages
15,354
Reaction score
8,533
First Language
English
Primarily Uses
RMMV

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,585
Latest member
Reversinator
Top