rigbycwts
Hmm, hmm.
- 98
- Posts
- 11
- Years
- Seen Feb 22, 2019
I tried to replicate the "start of Trainer battle" effect from the 6th gen games, but I got this:
What I did is:
First, I add this function to line 1326 of PSystem_Utilities:
I then changed the FOETRAINER_X and FOETRAINER_Y constants to:
In PokeBattle_Scene, line 1888, I changed it to:
How do I fix this? Does it have to do with the @viewport thing?
Edit: I got an error after changing @viewport to a number.
What I did is:
First, I add this function to line 1326 of PSystem_Utilities:
Code:
def pbTrainerMugshotFile(type)
return nil if !type
bitmapFileName=sprintf("Graphics/Characters/trmugshot%s",getConstantName(PBTrainers,type)) rescue nil
if !pbResolveBitmap(bitmapFileName)
bitmapFileName=sprintf("Graphics/Characters/trmugshot%03d",type)
end
return bitmapFileName
end
Code:
FOETRAINER_X = (Graphics.width / 2)
FOETRAINER_Y = (Graphics.height * 3/4)
Code:
trainerfile=pbTrainerMugshotFile(@battle.opponent.trainertype)
Edit: I got an error after changing @viewport to a number.