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

Pokemon Contests Script 1.5

Maruno

Lead Dev of Pokémon Essentials
5,286
Posts
16
Years
    • Seen May 3, 2024
    Wouldn't it be better to make sure this add-on is compatible with Essentials, rather than telling people to change parts of Essentials to make the add-on work?
     
    1,224
    Posts
    10
    Years
  • Wouldn't it be better to make sure this add-on is compatible with Essentials, rather than telling people to change parts of Essentials to make the add-on work?

    I told them what to change in my coding as a temporary fix, it will stop the error. I provided the code difference that was causing it, not really trying to recommend they revert it. I'll edit it to make that more clear though. Fixing this for v14 isn't really a priority at this point though, I've only had about 15 people download it, not really interested into putting more time into this for so few users.
     

    Derxwna Kapsyla

    Derxwna "The Badman" Kapsyla
    437
    Posts
    12
    Years
  • I intend to make use of the contest scripts once I reach the point in my game where I'll need them, otherwise I don't want to keep reading it every time I update versions and fixing stuff without needing it right away. It's also such a niche thing, that not many people really understand stuff about, and/or have little interest in. That being said, I can't wait to actually make use of the contest scripts, since I find contests fun!
     
    46
    Posts
    10
    Years
    • Seen Jan 19, 2017
    i have some problem with this, how to fix it?
    Code:
    Exception: RuntimeError
    Message: Script error within event 21, map 92 (Contest Hall):
    Exception: TypeError
    Message: Section063:33:in `pos='cannot convert String into Integer
    ***Full script:
    pbContest(50,PBSpecies::PIKACHU,20,PBSpecies::CLEFABLE,20,PBSpecies::GRANBULL,20,1)
    
    Interpreter:243:in `pbExecuteScript'
    PBContestMove:33:in `initialize'
    Main Contest:2004:in `new'
    Main Contest:2004:in `pbAI'
    Main Contest:1993:in `each'
    Main Contest:1993:in `pbAI'
    Main Contest:201:in `pbTurn'
    Main Contest:117:in `pbStartContest'
    Main Contest:2480:in `pbStartContest'
    Main Contest:2491:in `pbContest'
    
    Interpreter:276:in `pbExecuteScript'
    Interpreter:1606:in `command_355'
    Interpreter:494:in `execute_command'
    Interpreter:193:in `update'
    Interpreter:106:in `loop'
    Interpreter:198:in `update'
    Scene_Map:103:in `update'
    Scene_Map:101:in `loop'
    Scene_Map:114:in `update'
    Scene_Map:68:in `main'
    and other problem
    Code:
    Exception: RuntimeError
    Message: Script error within event 21, map 92 (Contest Hall):
    Exception: NoMethodError
    Message: (eval):2:in `pbExecuteScript'undefined method `showSpeciesIntro' for #<Interpreter:0x7afefb0>
    ***Full script:
    Kernel.pbMessage(_INTL("First up is Gary's Butterscortch!"))
    showSpeciesIntro(PBSpecies::CHARIZARD,"","Butterscortch")
    pbAddContestMove(2,1,2,3,7)
    pbChangeContestName(2,"Butterscortch")
    pbContest(50,PBSpecies::CHARIZARD,20,PBSpecies::SQUIRTLE,20,PBSpecies::HITMONTOP,20,1)
    
    Interpreter:243:in `pbExecuteScript'
    Interpreter:1606:in `eval'
    Interpreter:243:in `pbExecuteScript'
    Interpreter:1606:in `command_355'
    Interpreter:494:in `execute_command'
    Interpreter:193:in `update'
    Interpreter:106:in `loop'
    Interpreter:198:in `update'
    Scene_Map:103:in `update'
    Scene_Map:101:in `loop'
    
    Interpreter:276:in `pbExecuteScript'
    Interpreter:1606:in `command_355'
    Interpreter:494:in `execute_command'
    Interpreter:193:in `update'
    Interpreter:106:in `loop'
    Interpreter:198:in `update'
    Scene_Map:103:in `update'
    Scene_Map:101:in `loop'
    Scene_Map:114:in `update'
    Scene_Map:68:in `main'
     
    Last edited:

    FoxySeta

    (Trainer)
    11
    Posts
    9
    Years
  • Well I'm using Pokémon Essentials 15.1.
    I only didn't changed def "Kernel.pbMessageDisplay" (because I also would like to edit it for Caramaniac's Speech Buble pack, so I have to mix them) and I renamed variables 35 and 36.
    It says there's a syntax error here, in line 757 of PItem_ItemEffects:
    pokemon.cool=255 if pokemon.cool>255 pokemon.sheen+=17
    I guess there're also syntax errors for other PokéBlock, but I don't know RGSS at all.
     
    Last edited:

    Zeak6464

    Zeak #3205 - Discord
    1,101
    Posts
    11
    Years
  • This works for Essentials 15.1 , but the issue i ran into is the "Contest" script needs updated.. which is here
    also make sure you copy the "Contest Map" !
    1: Make sure you read the 1st post !
    2: Enter Each Script Manually
    3: Make sure you have all the GFX & PBS

    Picture_2015_06_20_13_33_05.png



    Hoenn is going to love this :)
    Spoiler:
     
    Last edited:
    1
    Posts
    8
    Years
    • Seen Apr 24, 2016
    Hi, that's my problem. I want to change the Pokémon in contest. I think is the script in more than one line but I'm not sure and don't know the solution. Thanks.


    Exception: RuntimeError

    Message: Script error within event 21, map 89 (Ciudad Mentada):

    Exception: SyntaxError

    Message: (eval):4:in `pbExecuteScript'compile error
    (eval):3: syntax error
    (50,PBSpecies::FARFETCHD,20,PBSpecies::SQUI
    ^
    (eval):3: syntax error
    (50,PBSpecies::FARFETCHD,20,PBSpecies::SQUI
    ^
    (eval):4: syntax error
    RTLE,20,PBSpecies::HITMONTOP,20,1)
    ^
    (eval):4: syntax error
    RTLE,20,PBSpecies::HITMONTOP,20,1)
    ^

    ***Line '(50,PBSpecies::FARFETCHD,20,PBSpecies::SQUI' shouldn't begin with '('. Try

    putting '(' at the end of the previous line instead,

    or using Extendtext.

    ***Full script:

    pbChangeContestName(2,"Farfi")
    pbContest
    (50,PBSpecies::FARFETCHD,20,PBSpecies::SQUI
    RTLE,20,PBSpecies::HITMONTOP,20,1)




    Interpreter:276:in `pbExecuteScript'

    Interpreter:1600:in `command_355'

    Interpreter:494:in `execute_command'

    Interpreter:193:in `update'

    Interpreter:106:in `loop'

    Interpreter:198:in `update'

    Scene_Map:103:in `update'

    Scene_Map:101:in `loop'

    Scene_Map:114:in `update'

    Scene_Map:68:in `main'
     
    46
    Posts
    10
    Years
    • Seen Jan 19, 2017
    hi @mej71, how can i add some more move in contest moves? i know that i need to add in contestmoves.txt but i dont know the red number mean
    Code:
    460,PSYBEAM,Psybeam,Beauty,3,0,[COLOR="Red"][B]024[/B][/COLOR],"Scrambles the order of appeals on the next turn."

    and i have a bug, Berry Mixer doesn't work (like @Richard PT's bug)
    mixer_10.png
     

    mewlover22

    Pokemon Creator
    455
    Posts
    15
    Years
  • so could we make this work for version 14 all parts i really love this script and would love to have the player have the option to do this at any point in time by going to the hall in each city i put it in and participate in it. Also can we set up more than just a beginner style contest like ruby did?
     
    31
    Posts
    8
    Years
  • I would really love to make this work for v16.1
    I have it working for v15.1, but I rather stay up to date...
    I got the berry mixer script working on my own and I have figured out a few things to change, but I am still learning how to do this and if I can get it working I will be very happy.
    So the error I have is:
    Script 'Interpreter' line 276: RuntimeError occurred.

    Script error within event 21, map 78 (Contest Hall):

    Exception: NoMethodError

    Message: Section176:369:in `pbSpriteSetAnimFrame'undefined method `battleIndex' for #<PokemonSprite:0xa051218>

    ***Full script:

    Kernel.pbMessage(_INTL("First up is Gary's Butterscortch!"))
    showSpeciesIntro(PBSpecies::CHARIZARD,"","Butterscortch")
    pbAddContestMove(2,1,2,3,7)
    pbChangeContestName(2,"Butterscortch")
    pbContest(50,PBSpecies::CHARIZARD,20,PBSpecies::SQUIRTLE,
    20,PBSpecies::HITMONTOP,20,1)


    Interpreter:243:in `pbExecuteScript'

    Main Contest:2750:in `update'

    Main Contest:2735:in `each'

    Main Contest:2735:in `update'

    Main Contest:1977:in `pbAnimationCore'

    Main Contest:1927:in `pbAnimation'

    Main Contest:1923:in `pbSaveShadows'

    Main Contest:1929:in `pbAnimation'

    Main Contest:244:in `pbTurn'

    Main Contest:126:in `pbStartContest'

    If I don't get help it will be alright. I am sure with time I will see what needs to be done as I learn this code.
     
    Back
    Top