• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • 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
    12
    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
    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.

    ?
     
    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

    • [PokeCommunity.com] Can't approach trainer
      Error.png
      60.8 KB · Views: 5
    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).
     
    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