Main Menu
  • Welcome to The RPG Maker Resource Kit.

'Battle Manager' Script Error

Started by abitsicamica, April 08, 2012, 03:40:27 AM

0 Members and 1 Guest are viewing this topic.

abitsicamica

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!

pacdiggity

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!"
it's like a metaphor or something i don't know

abitsicamica

Thank you very much Timothy! It worked like a charm! God bless!