iPhone App Directory
RPG Maker VX
 
Gallery Members Search Calendar Help


Welcome Guest ( Log In | Register )

Collapse

>Announcement

Keep an eye out for the upcoming 3rd Quarter Contest!

> ATTENTION!

Do not post questions about Ace in this section. Any and all Ace related support should be posted in the Ace section found here.

 
Closed TopicStart new topic
> Problem with obtaining skill.
zenbonsakura10
post Apr 8 2012, 02:48 PM
Post #1



Group Icon


Type: Writer
Alignment: Lawful Neutral




When my character reaches a level in which he is supposed to learn a new skill, the game crashes after the battle, and I end up with

Script Game_Actor line 442: Argument Error occured

too few arguments.

Here's what my line 442 looks like.

$game_message.add(sprintf(Vocab::ObtainSkill, skill.name))

So I guess it had something to do with a custom skill?
Go to the top of the page
 
+Quote Post
   
zenbonsakura10
post Apr 9 2012, 12:15 AM
Post #2



Group Icon


Type: Writer
Alignment: Lawful Neutral




Also, here is what the entire section of the script looks like

def display_level_up(new_skills)
$game_message.new_page
$game_message.add(sprintf(Vocab::LevelUp, @name, Vocab::level, @level))
new_skills.each do |skill|
$game_message.add(sprintf(Vocab::ObtainSkill, skill.name))
end
end

I need help on what other part of the script to edit. I did not really touch anything from the default script, so I'm wondering what's wrong with the script here.

This post has been edited by zenbonsakura10: Apr 9 2012, 05:26 AM
Go to the top of the page
 
+Quote Post
   
zenbonsakura10
post Apr 9 2012, 05:32 AM
Post #3



Group Icon


Type: Writer
Alignment: Lawful Neutral




Got the solution from someone else. I'll just have thi s topic closed now.
Go to the top of the page
 
+Quote Post
   

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 2nd October 2014 - 07:32 AM

RPGMakerVX.net is an Privacy Policy, Legal.