Main Menu

[Resolved!][VX] Yanfly's Custom Skills (ReDONE) makes me wanna kill myself.

Started by Organ House, December 23, 2010, 03:58:36 PM

0 Members and 1 Guest are viewing this topic.

Organ House

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?

modern algebra

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)

Organ House