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.
'Battle Manager' Script Error

0 Members and 1 Guest are viewing this topic.

**
Rep: +0/-0Level 65
RMRK Junior
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.

Code: [Select]
  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!

*
my name is Timothy what's yours
Rep:
Level 79
Hello
2014 Best IRC Quote2014 Zero to Hero2014 Most Missed Member2012 Zero To HeroSecret Santa 2012 ParticipantContestant - GIAW 9For frequently finding and reporting spam and spam bots2011 Zero to Hero
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:
Code: [Select]
  ObtainGold      = "%s\\G found!"
it's like a metaphor or something i don't know

**
Rep: +0/-0Level 65
RMRK Junior
Thank you very much Timothy! It worked like a charm! God bless!