• 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.

[PBS Question] NPC VS NPC error

50
Posts
4
Years
    • Seen Oct 17, 2023
    I am trying to put the scrip of this link: (broken link removed)
    When I tried it, I got an error. I am working on version 16

    ---------------------------
    Error
    ---------------------------
    Script 'Interpreter' line 276: RuntimeError occurred.

    Script error within event 43, map 110 (Mapa de pruebas):

    Exception: TypeError

    Message: Section050:1169:in `text_size'cannot convert Array into String

    ***Full script:

    trainer1=
    [:POKEMONTRAINER_Brendan,"Brendan"]
    trainer2=[:RIVAL1,"Blue"]
    trainers=[trainer1,trainer2]
    pbNPCBattle(trainers)


    Interpreter:243:in `pbExecuteScript'

    SpriteWindow:1169:in `pbDrawTextPositions'

    SpriteWindow:1168:in `each'

    SpriteWindow:1168:in `pbDrawTextPositions'

    EliteBattle_EntryAnimations:1178:in `vsSequenceElite'

    EliteBattle_EntryAnimations:164:in `pbBattleAnimation'

    NPC VS NPC:161:in `pbNPCBattle'

    (eval):5:in `pbExecuteScript'

    Interpreter:1606:in `eval'

    Interpreter:243:in `pbExecuteScript'
     
    1,403
    Posts
    10
    Years
    • Seen Apr 29, 2024
    Don't you need to give a losing speech for trainer1? (I don't know if that's what your error is, my guess is that v16 is different from v17, which is what RC says this script is for)
     
    Last edited:
    50
    Posts
    4
    Years
    • Seen Oct 17, 2023
    It did not work to add the defeat phrase, maybe the version 17.2 script is incompatible with the version I use that is 16.

    Thanks for replying equally
     
    Back
    Top