rigbycwts
Hmm, hmm.
- 98
- Posts
- 12
- Years
- Seen Feb 22, 2019
Okay, so here is how to incorporate the Gen 6-styled Trainer introduction at the start of battles. The only sections that are going to be modified are: PSystem_Utilities, EliteBattle_Scene, and EliteBattle_Sprites, hence this requires Luka S.J.'s Elite Battle System.
Remember that the resource pack I know that contains the Gen 6 mugshots use a 512x256 resolution, so the mugshots that you want to use must be resized to 512x512, with the mugshot taking the upper half of the image file.
In PSystem_Utilities, add this function starting at line 1343:
Note that that function looks for the trainer mugshot's filename.
Next, modify a few lines in EliteBattle_Scene. Under
Replace all instances of pbTrainerSpriteFile with pbTrainerMugshotFile.
Finally, in EliteBattle_Sprites, under the class DynamicTrainerSprite, replace the setTrainerBitmap function with this:
After those few modifications, here are the results:
Single Battle:
Double Battle with two separate Trainers:
Remember that the resource pack I know that contains the Gen 6 mugshots use a 512x256 resolution, so the mugshots that you want to use must be resized to 512x512, with the mugshot taking the upper half of the image file.
In PSystem_Utilities, add this function starting at line 1343:
Code:
def pbTrainerMugshotFile(type)
return nil if !type
bitmapFileName=sprintf("Graphics/Characters/mugshot%s",getConstantName(PBTrainers,type)) rescue nil
if !pbResolveBitmap(bitmapFileName)
bitmapFileName=sprintf("Graphics/Characters/mugshot%03d",type)
end
return bitmapFileName
end
Next, modify a few lines in EliteBattle_Scene. Under
Code:
if @battle.opponent
Finally, in EliteBattle_Sprites, under the class DynamicTrainerSprite, replace the setTrainerBitmap function with this:
Code:
def setTrainerBitmap(file)
@bitmap=AnimatedBitmapWrapper.new(file,TRAINERSPRITESCALE)
@[email protected]
@[email protected]
@sprite.ox=(@bitmap.width/2) + 150
if @doublebattle
if @index==-2
@sprite.ox-=150
elsif @index==-1
@sprite.ox+=150
end
end
@[email protected]/4
self.formatShadow
@shadow.skew(74)
end
Spoiler:
Single Battle:
![[PokeCommunity.com] [Luka's Elite Battle System] Gen 6-style trainer battle intro [PokeCommunity.com] [Luka's Elite Battle System] Gen 6-style trainer battle intro](https://i.imgur.com/KpBqrX2.png)
Double Battle with two separate Trainers:
![[PokeCommunity.com] [Luka's Elite Battle System] Gen 6-style trainer battle intro [PokeCommunity.com] [Luka's Elite Battle System] Gen 6-style trainer battle intro](https://i.imgur.com/OXuNjE9.png)
Last edited: