# ResourceMid battle dialogue port (temporary version) 3.0

#### grogro

##### Novice
Member
grogro submitted a new resource:

Mid battle dialogue for v20 (temporary version) - A port of Mid battle dialogue from Golisopod User to v20

This is a temporary port of Mid battle dialogue for v20. This post will be deleted as soon as an official version is released.
In the downloaded folder, you have a folder that need to go in your plugin folder and two pictures that need to go in the graphics/battle animation folder.
Then you need to add this line: \$PokemonTemp=PokemonTemp.new()
somewhere in the code where it's called whenever you start the game.
I personnaly put it in main in the def pbcalltitle function.
[ATTACH...

#### CelestialFearow

##### Venipede User
Member
The game say "PBMoves" don't exist.

"battle.pbAnimation(getID(PBMoves,:HOWL),battle.battlers[1],battle.battlers[0])"

Also I think this don't work.

battle.battlers[1].pbOwnSide.effects[PBEffects::Safeguard] = 99

Last edited:

#### grogro

##### Novice
Member
The game say "PBMoves" don't exist.

"battle.pbAnimation(getID(PBMoves,:HOWL),battle.battlers[1],battle.battlers[0])"
You are right for this one, it's something I left and forgot to remove. The correct synthax is
battle.pbAnimation(:HOWL,battle.battlers[1],battle.battlers[0])

But the second one works for me (It doesn't throw any message, that's normal)

#### CelestialFearow

##### Venipede User
Member
You are right for this one, it's something I left and forgot to remove. The correct synthax is
battle.pbAnimation(:HOWL,battle.battlers[1],battle.battlers[0])

But the second one works for me (It doesn't throw any message, that's normal)

Ok thanks!

#### TheRedeemedGamer

##### How do I change this? :P
Member
I ran this script command in a trainer battle event
Code:
BattleScripting.set("lastOpp","text"=>"So, it's come down to this...")
and the dialogue and trainer sprite appeared as expected, but then after the trainer disappeared, this error popped up:

After I clicked "OK", the battle continued, but the databoxes were gone.

#### grogro

##### Novice
Member
interesting, to be honest, I didn't test the single line commands like this.
Until a solution is found, you can comment this line. (line 1107 where the game crash) Idk why it's here and how to properly solve it yet

Replace line 1107 (or 1106 for you, Idk why I have one more line in the new version) by
scene.sprites["trainer_1"].setBitmap(GameData::TrainerType.front_sprite_filename(battle.opponent[0].trainer_type)) if !battle.wildBattle?