RMMV Removing Item Costs in Yanfly's Skill Cost Item Plugin

epson777341

Veteran
Veteran
Joined
Oct 10, 2014
Messages
34
Reaction score
2
First Language
English
Primarily Uses
Hello there. I'm trying to make it so that at certain levels, certain skills cost different items. Like, a Raise spell costing a revive herb until level 10, then requiring a miracle stone after that. I've got the whole thing set, except that I wanted to not show the item costs if they're 0. Like, in my example, when you reach level 10, it would show Miracle Stones, but not Revive herbs.

I'm using Yanfly's Skill Cost Item plugin, and I know there's no way in the plugin parameters to do it, So, I was wondering if anyone knew where in the code I could just add a conditional statement to check for amount, and if 0, then don't draw the cost?

Thanks in advance, or, if somebody has a better solution then what I came up with, I thank you for that, as well.
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
658
Reaction score
283
First Language
english
Primarily Uses
RMMV
different approach idea, lv1-9 revive skill has <hide if learn skill: X> (yanfly skill core)
where X is a different revive skill with same name learn at lv10 with the different cost notetag.
(since using the same name X will have to be ID number and cannot use name (which is usually better to use ID numbers always for these kinda things anyways))
 

epson777341

Veteran
Veteran
Joined
Oct 10, 2014
Messages
34
Reaction score
2
First Language
English
Primarily Uses
I was planning on doing a bunch of skills like this, and some of them have like, 4 different item costs, so, not making hundreds of duplicate skills would be preferable, although I appreciate the idea, I was also kinda gonna go with that, and then I saw the custom costs eval in the plugin and thought this would be a more apt choice.

EDIT: As an update, I used a state to replace the costs and made the state be conditional to your level. I believe I used Yanfly's Conditional Passives and Skill Cost Items to get the intended effect.
 
Last edited:

Latest Threads

Latest Profile Posts

I haven't been on here in forever wow(missed my forum birthday T-T). Anyways, I'm dabbling in BGMs, here's something I'm actually willing to share.

Binge-watched 6 episodes of the Erased anime... And that means I've watched half of it?! Sigh...
I'm bad at base-building games (looking at other players created an aesthetically beautiful base compared to me), but IDK why I keep playing the game and seek more of it.
Pyra and Mythra in smash ultimate are way too OP. They're basically Smash 4 Bayonetta 2.0, and not in a good way. Very toxic and unfair. At least they're hot tho.
attack on titan keep reaching a new height with each episode, aaa I can't wait another week for a new episode at this point

Forum statistics

Threads
109,197
Messages
1,042,962
Members
141,699
Latest member
pride98
Top