• 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!
  • It's time to vote for your favorite Pokémon Battle Revolution protagonist in our new weekly protagonist poll! Click here to cast your vote and let us know which PBR protagonist you like most.
  • 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] Making a trainer Pokemon use a form isn't working

  • 11
    Posts
    6
    Years
    • Seen Aug 27, 2019
    I'm making a trainer battle against Arceus and all the Pokemon on Arceus' team have a different form however when I make it so the Pokemon are in a different form I get this error.

    ---------------------------
    Pokemon Tanzanite
    ---------------------------
    [Pokémon Essentials version 17.2]

    Exception: RuntimeError

    Message: Script error within event 8 (coords 10,3), map 119 (Arceus Palace):

    Exception: TypeError

    Message: PSystem_Utilities:855:in `[]'cannot convert true into Integer

    ***Full script:

    pbTrainerBattle(:GOD,"Arceus",_I("Impressive Mortal."),false,0,false,0)

    Interpreter:243:in `pbExecuteScript'

    PSystem_Utilities:855:in `pbGetFSpeciesFromForm'

    Pokemon_Forms:28:in `fSpecies'

    PokeBattle_Pokemon:850:in `baseStats'

    PokeBattle_Pokemon:886:in `calcStats'

    Pokemon_Forms:24:in `formNoCall='

    PTrainer_NPCTrainers:51:in `pbLoadTrainer'

    PTrainer_NPCTrainers:46:in `each'

    PTrainer_NPCTrainers:46:in `pbLoadTrainer'

    PTrainer_NPCTrainers:32:in `each'



    Interpreter:276:in `pbExecuteScript'

    Interpreter:794:in `command_111'

    Interpreter:320:in `execute_command'

    Interpreter:193:in `update'

    Interpreter:106:in `loop'

    Interpreter:198:in `update'

    Scene_Map:163:in `update'

    Scene_Map:161:in `loop'

    Scene_Map:170:in `update'

    Scene_Map:234:in `main'

    Where I defined the trainer's Pokemon it shows this.

    #-------------------------------
    GOD
    Arceus
    5
    MEW,999,ALPHACRYSTAL,PSYCHIC,ENERGYBALL,ELECTROBALL,BLIZZARD,,,1,,,31,255,,,1
    RAYQUAZA,999,ALPHACRYSTAL,DRAGONRUSH,FLY,INCINERATE,EARTHQUAKE,,,1,,,31,255,,,1
    REGIGIGAS,999,ALPHACRYSTAL,PRIMALPOWER,ZENHEADBUTT,HEAVYSLAM,THUNDERPUNCH,,,1,,,31,255,,,1
    GIRATINA,999,ALPHACRYSTAL,DRACOMETEOR,SHADOWFORCE,FAKEOUT,DARKPULSE,,,2,,,31,255,,,1
    KYUREM,999,ALPHACRYSTAL,GLACIATE,FUSIONFLARE,FUSIONBOLT,DRAGONRUSH,,,3,,,31,255,,,1

    I already defined the forms, item, trainer type, and have a different level cap.
     
    I reccomend you use the code tags for your PBS entries and error message; makes it easier to read

    Code:
    Message: PSystem_Utilities:855:in `[]'cannot convert true into Integer
    
    ***Full script:
    
    pbTrainerBattle(:GOD,"Arceus",_I("Impressive Mortal."),false,0,false,0)

    means you may have messed up the forme calls.

    according to the essentials docs wiki,

    Form - Default is 0.

    You have everything as 1. Regigas and Mew do not have forms so it should be returning a error. That fight is against an unknown glitch form mew, glitch for regigas, mega rayquaza without dragon ascent, kyurem black, origin forme giratina without its griseous orb, and fighting type arceus without a fist plate or fightnium z,
     
    I made new forms for those Pokemon and even defined them. I made the trainer Arceus. I also don't have any Pokemon past gen 5 including mega Pokemon so there is no Mega Rayquaza. Here are the New Pokemon forms defined.

    #-------------------------------
    [REGIGIGAS-1]
    FormName=Alpha Form
    BaseStats=500,300,210,30,160,220
    Abilities=HUGEPOWER
    Height=4.9
    Weight=700.0
    Shape=12
    BattlerEnemyY=9
    BattlerAltitude=0
    #-------------------------------
    [GIRATINA-2]
    FormName=Alpha Form
    BaseStats=666,666,666,666,666,666
    Abilities=LEVITATE
    Height=4.5
    Weight=750.0
    Shape=10
    BattlerEnemyY=9
    BattlerAltitude=0
    #-------------------------------
    [KYUREM-3]
    FormName=Alpha Form
    BaseStats=235,200,150,70,200,150
    Abilities=PRESSURE
    Height=6
    Weight=700.0
    BattlerEnemyY=24
    BattlerAltitude=0
    #-------------------------------
    [RAYQUAZA-1]
    FormName=Alpha Form
    BaseStats=350,350,350,350,350,350,
    Abilities=AIRLOCK
    Height=9.0
    Weight=256.5
    Shape=2
    BattlerEnemyY=4
    BattlerAltitude=6
    #-------------------------------
    [MEW-1]
    FormName=Alpha Form
    BaseStats=300,300,300,300,300,300
    Abilities=SYNCHRONIZE
    Height=0.4
    Weight=4.0
    Shape=6
    BattlerEnemyY=20
    BattlerAltitude=13
     
    Last edited:
    That's a known issue with a known fix!
    Scroll down to Maruno's reply, or just look at this quote!
    I suggest you undo that change, and instead go into script section "PTrainer_NPCTrainers" and find the two lines which mention "poke[TPFORM]". Make the first line say "pokemon.forcedForm = poke[TPFORM] if " and delete the second line.



    Then go to script section "PokeBattle_Battle" and find the mention of "forcedForm". Make it say "pokemon.forcedForm = nil if " instead.
     
    Back
    Top