The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: fthmdg on September 18, 2010, 01:25:33 AM

Title: [VX] Item quantity to variable NoMethodError
Post by: fthmdg on September 18, 2010, 01:25:33 AM
I'm doing a check within an event to make sure the player has enough ore.

Here's how it's set up[spoiler]
QuoteConditional Branch: [Test Ore] in Inventory
  Control Variables: [0001:Temp] = [Test Ore] in Inventory

  Conditional Branch: Variable [0001:Temp] >=3
     #Does some stuff

  Else
     #Does some other stuff

  Branch End

Else
#Does some other stuff

Branch End

*All the comments are just messages and things like that.  Nothing that effects the variables or anything involved.[/spoiler]

I'm getting that error on line 750 of Game_Interpreter , which reads

"      actor = $game_actors[@parameters[1]]"

I have not modified that script in any way, so I'm not sure why it's pulling that error. Although I am using a good number of scripts, I haven't had any compatibility issues thus far.

Here's a list of my added scripts.
[spoiler]PR ABS [Addons:PR Hud, PR Damage_System, PR LeftHand, PR Many Items, PR AMS] [PR Coders]
Equipment Restraints [Modern Algebra]
Thomas Edison VX [BulletXt]
Jets Alignment & Time systems [Jet]
Neo Save System V [Neo]
Ring Menu [XRXS, Dubealex, & Hypershadow180]
Level Effects [Redyugi]
Item Quality [Leongon][/spoiler]


Any ideas what could cause this, or how I can fix it?
Title: Re: Item quantity to variable NoMethodError
Post by: modern algebra on September 18, 2010, 01:31:35 AM
It's a bug in the default scripts. The fix is located here: http://rmrk.net/index.php/topic,25243.0.html

There are two errors, located in two separate posts. Be sure to fix them both.
Title: Re: Item quantity to variable NoMethodError
Post by: fthmdg on September 18, 2010, 01:40:37 AM
Awesome, fixed it right up! Thanks, and good find to both of you guys.
I overlooked that first error after reading through that section of code probably 4 different times.