The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Organ House on December 23, 2010, 03:58:36 PM

Title: [Resolved!][VX] Yanfly's Custom Skills (ReDONE) makes me wanna kill myself.
Post by: Organ House on December 23, 2010, 03:58:36 PM
I'm using the old version of this Yanfly script because I started this project over a year ago and have no intention of switching over to the new complicated fancy version and having to change all the custom variables all over again.

I've made a custom skill cost (items) using the template provided in the script. The skill should use [X] item in and out of combat to cast a healing spell. It works 100% fine in-combat, but out of combat I get a NoMethodError (for line 2954 to be exact.) Which is       if skill.cost_custom > 0
        apply_custom_cost(actor, skill)

It's the "apply_custom_cost" part that's the problem. Anyone know how to solve this/and/or should I post the entire script here?
Title: Re: [VX] Yanfly's Custom Skills (ReDONE) makes me wanna kill myself.
Post by: modern algebra on December 23, 2010, 05:22:51 PM
Killing yourself would be unadvisable.

Well, we probably have different versions of the script since the line number I have for that is quite different, but try finding the following lines:


class Scene_Battle < Scene_Base
 
  def apply_custom_cost(battler, skill)


Change the first line to class Scene_Base instead, so:


class Scene_Base

  def apply_custom_cost (battler, skill)
Title: Re: [VX] Yanfly's Custom Skills (ReDONE) makes me wanna kill myself.
Post by: Organ House on December 23, 2010, 05:25:46 PM
That worked! Thanks for the help!!

*puts the cyanide away*