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

[PBS Question] NPC VS NPC error

  • 50
    Posts
    5
    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'
     
    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:
    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