• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Error] Can't approach trainer

  • 3
    Posts
    11
    Years
    • Seen Mar 17, 2019
    Hi,
    I recently downloaded Luka's Elite Battle System into my game and now everytime i want a trainer to approach me for battle it comes up with this:

    [Pokémon Essentials version 17.2]
    Exception: RuntimeError
    Message: Script error within event 1 (coords 25,4), map 48 (Route 1):
    Exception: ArgumentError
    Message: Sprite_AnimationSprite:18:in `animation'wrong number of arguments(3 for 2)
    ***Full script:
    pbTrainerIntro(:YOUNGSTER)
    Kernel.pbNoticePlayer(get_character(0))

    Interpreter:243:in `pbExecuteScript'
    Sprite_AnimationSprite:18:in `initialize'
    Sprite_AnimationSprite:49:in `new'
    Sprite_AnimationSprite:49:in `addUserAnimation'
    PSystem_Utilities:651:in `pbExclaim'
    PSystem_Utilities:662:in `pbNoticePlayer'
    (eval):2:in `pbExecuteScript'
    Interpreter:1606:in `eval'
    Interpreter:243:in `pbExecuteScript'
    Interpreter:1606:in `command_355'

    Does anybody know what, i need to do?
    (I would greatly appreciate the help)
     

    Attachments

    • new 1.txt
      708 bytes · Views: 4

    WolfPP

    Spriter/ Pixel Artist
  • 1,309
    Posts
    5
    Years
    in `animation'wrong number of arguments(3 for 2)

    There are 3 instead 2 arguments.

    Also, did you put EBS script in order:
    LukaUtilities;
    [Settings];
    EliteBattle_Battle;
    EliteBattle_Scene;
    EliteBattle_Animation;
    EliteBattle_UI;
    EliteBattle_Sprites;
    EliteBattle_BitmapWrapper;
    EliteBattle_Math;
    EliteBattle_EntryAnimations.

    ?
     
  • 3
    Posts
    11
    Years
    • Seen Mar 17, 2019
    Yes, i've put theme in the exact order, when i downloaded them they were first named as Elitebattle_0, Elitebattle_1, Elitebattle_2 etc. until i renamed them, i'm not sure if i put them in the wrong place in the scripts.
     

    Attachments

    • Can't approach trainer
      Error.png
      60.8 KB · Views: 5
  • 178
    Posts
    10
    Years
    Just curious, why did you put the elite battle scripts above debug/editor/compiler scripts?
    As far as I know, you are supposed to put it right above the Main script unless the instructions tell you otherwise (only a few resources do need that).
     
  • 3
    Posts
    11
    Years
    • Seen Mar 17, 2019
    I did have the scripts right above the main script and it showed the exact same error, i thought i maybe i put it in the wrong place so i changed the position a bit...
    But it stills makes the same issue.
     
    Back
    Top