v18 Crashing using Golisopod User's Mid Battle Dialogue/Scripted Battles

This thread pertains to v18 of Pokémon Essentials.

King_Waluigi

Trainer
Member
Joined
Jan 2, 2021
Posts
88
Age
14
I'm using the Mid Battle Dialogue/Scripted Battles thing by Golisopod User, and it keeps crashing! I'm trying to make my Gym Leaders have a thing they say when their last pokemon is sent out. Also the music is supposed to change. This first thing is the scripting, the second thing is the error.
LillyLast = Proc.new{|battle|
battle.scene.appearBar
battle.scene.pbShowOpponent(0)
TrainerDialogue.changeTrainerSprite(["trainer059"],battle.scene)
pbMessage("This is my last Pokemon!")
pbBGMPlay("Last Pokemon")
TrainerDialogue.changeTrainerSprite(["trainer059"],battle.scene,2)
battle.scene.pbHideOpponent
TrainerDialogue.changeTrainerSprite(["trainer059"],battle.scene)
battle.scene.disappearBar
}
---------------------------
Pokemon Odyssey
---------------------------
[Pokémon Essentials version 18.1]

Exception: RuntimeError

Message: Script error within event 7 (coords 12,4), map 87 (Otnorot Gym):

Exception: SyntaxError

Message: (eval):2:in `pbExecuteScript'compile error
(eval):2: syntax error
("lastOpp",:LillyLast)
^

***Line '("lastOpp",:LillyLast)' shouldn't begin with '('. Try

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

or using 'extendtext.exe'.



***Full script:

BattleScripting.setInScript
("lastOpp",:LillyLast)




Backtrace:





Backtrace:

Interpreter:246:in `pbExecuteScript'

Interpreter:1458:in `command_355'

Interpreter:359:in `execute_command'

Interpreter:155:in `update'

Interpreter:102:in `loop'

Interpreter:158:in `update'

Scene_Map:162:in `update'

Scene_Map:160:in `loop'

Scene_Map:169:in `update'

Scene_Map:229:in `main'



This exception was logged in

C:\Users\USERNAME\Saved Games\Pokemon Odyssey\errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
 
Top