The RPG Maker Resource Kit

Other Game Creation => Program Troubleshooting => Topic started by: abitsicamica on April 08, 2012, 03:40:27 AM

Title: 'Battle Manager' Script Error
Post by: abitsicamica on April 08, 2012, 03:40:27 AM
Hello RMRK community,

I'm having trouble right after I finish a battle. I keep getting the following error message:

Script 'BattleManager' line 318: AugmentError occurred.

too few arguments

Here is the code encompassing line 318 for a glance at the code itself. Note that I haven't altered that line or any other line in the original script regarding the BattleManager script.

  316. def self.gain_gold
    317. if $game_troop.gold_total > 0
      318. text = sprintf(Vocab::ObtainGold, $game_troop.gold_total)
      319. $game_message.add('\.' + text)
      320. $game_party.gain_gold($game_troop.gold_total)
    321. end
    322. wait_for_message
  323. end


If there is anyone out there capable of accommodating me in fixing this problem, please let me know. Comment below, PM me, do whatever just please let me know so I can continue creating this game. Thank you in advance!
Title: Re: 'Battle Manager' Script Error
Post by: pacdiggity on April 08, 2012, 07:00:39 AM
In Vocab, go to line 39, which should be the line defining the constant ObtainGold. Make sure that there's only one %s in that line. If there's not, just replace it with this:
  ObtainGold      = "%s\\G found!"
Title: Re: 'Battle Manager' Script Error
Post by: abitsicamica on April 08, 2012, 07:07:00 AM
Thank you very much Timothy! It worked like a charm! God bless!