Yanfly's Item Durability Plugin + Skill Cost

Arkaik

Veteran
Veteran
Joined
Apr 25, 2015
Messages
77
Reaction score
13
First Language
Portuguese
Primarily Uses
RMMV
Hi guys! SUPER!

I'm trying to make skills that consumes weapon durability as an additional cost.
Here's the YEP - Item Durability Plugin which gives durability to weapons and armors.
I'd like to make it consumes the durability of specific items instead of doing it to any item.

For exemple:

An actor is equipped with a sword and a dagger (dual wield).
If I set a skill to consume 1 durability to perform a Sword Thrust, using the command <User Weapon Durability: -1> it will consume the dagger durability too.

OR


The actor is equipped with two swords, but I want to select one to perform the Sword Thrust, so how can I set to consume the specific weapon durability instead of both of them?

Help me, please. :kaodes:
 

Uzuki

Kawaii on the streets, Senpai in the sheets
Veteran
Joined
Aug 18, 2012
Messages
1,933
Reaction score
1,326
First Language
English
Primarily Uses
RMMV
Unfortunately it's either for all weapon durability or none. You can't change the type that it should take away a durability from.
 

Arkaik

Veteran
Veteran
Joined
Apr 25, 2015
Messages
77
Reaction score
13
First Language
Portuguese
Primarily Uses
RMMV
Yes, i saw that in the help section of the plugin, but I was hoping if there's some Lunatic Mode that can do it to me. :kaosigh:
 

Maliki79

Veteran
Veteran
Joined
Mar 13, 2012
Messages
797
Reaction score
350
First Language
English
Primarily Uses
N/A
Last edited:

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,088
Reaction score
1,508
First Language
EN
Primarily Uses
RMMZ
I haven't tried it out myself, but something like this may be worth a try:
Code:
<Post-Damage Eval>
var wId = 0;   // 0 for main hand, 1 for off hand
if (user.weapons() && user.weapons()[wId]) {
  var wep = user.weapons()[wId];
  wep.durability -= 1;
  if (wep.durability <= 0) user.durabilityBreakItem(wep);
}
</Post-Damage Eval>
<Post-Damage Eval> is a skill notetag from Yanfly's Skill Core plugin.
 

Arkaik

Veteran
Veteran
Joined
Apr 25, 2015
Messages
77
Reaction score
13
First Language
Portuguese
Primarily Uses
RMMV
Thank you very much @Maliki79 ! I'll test it tomorrow (I wake up 5am to work), but i'm so thankful for your effort!
And about what you said... yes, i'd like to find a way to make the skill/item user choose which one it will damage, despite I know it is so much difficult to do it, but I hope this one help me to do what I want. Thank you! :kaojoy:
 

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

Latest Threads

Latest Posts

Latest Profile Posts

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.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,863
Messages
1,017,053
Members
137,571
Latest member
grr
Top