RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[Resolved!][VX] Yanfly's Custom Skills (ReDONE) makes me wanna kill myself.

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 84
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
Code: [Select]
      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?
« Last Edit: December 23, 2010, 05:26:07 PM by Organ House »

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
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:

Code: [Select]
class Scene_Battle < Scene_Base
 
  def apply_custom_cost(battler, skill)

Change the first line to class Scene_Base instead, so:

Code: [Select]
class Scene_Base

  def apply_custom_cost (battler, skill)

**
Rep: +0/-0Level 84
That worked! Thanks for the help!!

*puts the cyanide away*