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

[Error] [CODE][Pokémon Essentials version 20.1] Script error in event 5 (coords 26,8), map 3 (Red's house) Exception: TypeError Message: nil can't be coerced

  • 428
    Posts
    5
    Years
    Hey, so this isn't working even though it should be working. Let me know if any of you figure out how to make your engine work properly.

    Code:
    [Pokémon Essentials version 20.1]
    
    Script error in event 5 (coords 26,8), map 3 (Red's house)
    Exception: TypeError
    Message: nil can't be coerced into Integer
    
    ***Full script:
    setBattleRule("3v6")
    WildBattle.start(:PIKACHU, 42, :IVYSAUR, 17, :GEODUDE, 25, :GEODUDE, 25, :GEODUDE, 25, :GEODUDE, 25)
    
    Backtrace:
    191:Battle_Scene_Menus:489:in `-'
    191:Battle_Scene_Menus:489:in `block in initialize'
    191:Battle_Scene_Menus:477:in `initialize'
    191:Battle_Scene_Menus:477:in `new'
    191:Battle_Scene_Menus:477:in `initialize'
    188:Scene_Initialize:48:in `new'
    188:Scene_Initialize:48:in `pbInitSprites'
    221:BugContestBattle:8:in `pbInitSprites'
    188:Scene_Initialize:21:in `pbStartBattle'
    148:Battle_StartAndEnd:282:in `pbStartBattleCore'
     
    Back
    Top