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

Pokemon Contests Script 1.5

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?
 
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.
 
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!
 
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:
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:
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

[PokeCommunity.com] Pokemon Contests Script 1.5



Hoenn is going to love this :)
Spoiler:
 
Last edited:
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'
 
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)
[PokeCommunity.com] Pokemon Contests Script 1.5
 
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.
 
Well After a few tries I just changed (in both v15.1 and v16.1)
for i in 0
to
for i in 1
both of them in the script and it worked.
 
Back
Top