Battle error

Kioshi Hoshitsuya

Trainer
Member
Joined
Mar 4, 2018
Posts
52
I added some gen 7 moves on my game, I was gonna try Sparkling Aria but i get this error:
---------------------------
Pokemon Unleashed
---------------------------
[Pokémon Essentials version 17.2]
Exception: ArgumentError
Message: wrong number of arguments(0 for 1)
PokeBattle_Move:371:in `hasWorkingAbility'
PokeBattle_Move:371:in `pbTypeModifier'
EliteBattle_3:2907:in `update'
EliteBattle_3:1139:in `pbFightMenu'
EliteBattle_3:1135:in `loop'
EliteBattle_3:1201:in `pbFightMenu'
PokeBattle_Battle:2598:in `pbCommandPhase_ebs'
PokeBattle_Battle:2592:in `loop'
PokeBattle_Battle:2682:in `pbCommandPhase_ebs'
PokeBattle_Battle:2581:in `each'

This exception was logged in
C:\Users\Cristian\Saved Games\Pokemon Unleashed\errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------

Does anyone now how to fix it?
Edit: I found out that the problem has to do with the ability Liquid Voice. When I add the script for it it shows that error, but by removing it the game works perfectly. But I want the ability to work, I don't want to just remove it.
 
Last edited:

MGriffin

Trainer
Member
Joined
May 8, 2017
Posts
95
Code:
Message: wrong number of arguments(0 for 1)
PokeBattle_Move:371:in `hasWorkingAbility'

On that line you're calling hasWorkingAbility without passing which ability you want to check for?
 

Scyl

Ironically Unironic Edgelord Extraordinaire
Member
Joined
Apr 4, 2018
Posts
42
As for making Liquid Voice functional, hit CTRL + Shift + F and find this line in base 17.2.

Code:
  def pbModifyType(type,attacker,opponent)
	if type>=0
	  if attacker.hasWorkingAbility(:NORMALIZE) && hasConst?(PBTypes,:NORMAL)
		type=getConst(PBTypes,:NORMAL)

Then hit the enter button to start a fresh line and copy and paste the following.

Code:
	  elsif attacker.hasWorkingAbility(:LIQUIDVOICE) && isSoundBased?
		type=getConst(PBTypes,:WATER)

If any errors arise from the code, please tell me. :3c They haven't from what I've tested in a fresh copy of 17.2.
 

Kioshi Hoshitsuya

Trainer
Member
Joined
Mar 4, 2018
Posts
52
As for making Liquid Voice functional, hit CTRL + Shift + F and find this line in base 17.2.

Code:
  def pbModifyType(type,attacker,opponent)
	if type>=0
	  if attacker.hasWorkingAbility(:NORMALIZE) && hasConst?(PBTypes,:NORMAL)
		type=getConst(PBTypes,:NORMAL)

Then hit the enter button to start a fresh line and copy and paste the following.

Code:
	  elsif attacker.hasWorkingAbility(:LIQUIDVOICE) && isSoundBased?
		type=getConst(PBTypes,:WATER)

If any errors arise from the code, please tell me. :3c They haven't from what I've tested in a fresh copy of 17.2.
Okay, it works! Thank you very much!
 
Top