Why hello PokeCommunity! I've missed you so.
I'm sure that most of you are not running on Essentials V13 like your boy, but this is for that one guy who might be looking for something like this.
I'm working on my GSC styled game using COMBOY's Essentials GS V1.1, and I noticed that there wasn't an EV/IV summary page; So I made one!
This will replace page five on the summary screen with EVs and IVs of that Pokemon.
Replace your "def drawPageFive(pokemon)" block with this:
def drawPageFive(pokemon)
overlay=@sprites["overlay"].bitmap
overlay.clear
@sprites["background"].setBitmap("Graphics/Pictures/summary5")
imagepos=[]
if pbPokerus(pokemon)==1 || pokemon.hp==0 || @pokemon.status>0
status=6 if pbPokerus(pokemon)==1
[email protected] if @pokemon.status>0
status=5 if pokemon.hp==0
imagepos.push(["Graphics/Pictures/statuses",144,16,0,16*status,44,16])
end
if pokemon.isShiny?
imagepos.push([sprintf("Graphics/Pictures/shiny"),128,0,0,0,-1,-1])
end
if pbPokerus(pokemon)==2
imagepos.push([sprintf("Graphics/Pictures/summaryPokerus"),128,16,0,0,-1,-1])
end
[email protected] ? @pokemon.ballused : 0
ballimage=sprintf("Graphics/Pictures/summaryball%02d",@pokemon.ballused)
imagepos.push([ballimage,144,76,0,0,-1,-1])
pbDrawImagePositions(overlay,imagepos)
base=Color.new(0,0,0)
shadow=Color.new(255,255,255)
statshadows=[]
for i in 0...5; statshadows=shadow; end
if !(pokemon.isShadow? rescue false) || pokemon.heartStage<=5
natup=(pokemon.nature/5).floor
natdn=(pokemon.nature%5).floor
statshadows[natup]=Color.new(0,0,0) if natup!=natdn
statshadows[natdn]=Color.new(255,255,255) if natup!=natdn
end
pbSetSystemFont(overlay)
abilityname=PBAbilities.getName(pokemon.ability)
abilitydesc=pbGetMessage(MessageTypes::AbilityDescs,pokemon.ability)
itemname=pokemon.item==0 ? _INTL("NONE") : PBItems.getName(pokemon.item)
[email protected]
if @pokemon.name.split('').last=="{" || @pokemon.name.split('').last=="}"
[email protected][0..-2]
end
textpos=[
[_INTL("EVs/IVs"),0,120,0,base],
[pokename,144,-8,0,base],
[_ISPRINTF("Lv.{1:d}",pokemon.level),224,8,0,Color.new(0,0,0)],
[_INTL("ITEM"),144,40,0,base],
[itemname,320,56,1,Color.new(0,0,0)],
[_INTL("HP"),0,152,0,base],
[_ISPRINTF("{1:3d}/{2:3d}",@pokemon.ev[0],@pokemon.iv[0]),320,152,1,Color.new(0,0,0)],
[_INTL("ATTACK"),0,168,0,base],
[_ISPRINTF("{1:3d}/{2:3d}",@pokemon.ev[1],@pokemon.iv[1]),320,168,1,Color.new(0,0,0)],
[_INTL("DEFENSE"),0,184,0,base],
[_ISPRINTF("{1:3d}/{2:3d}",@pokemon.ev[2],@pokemon.iv[2]),320,184,1,Color.new(0,0,0)],
[_INTL("SP. ATTACK"),0,200,0,base],
[_ISPRINTF("{1:3d}/{2:3d}",@pokemon.ev[3],@pokemon.iv[3]),320,200,1,Color.new(0,0,0)],
[_INTL("SP. DEFENSE"),0,216,0,base],
[_ISPRINTF("{1:3d}/{2:3d}",@pokemon.ev[4],@pokemon.iv[4]),320,216,1,Color.new(0,0,0)],
[_INTL("SPEED"),0,232,0,base],
[_ISPRINTF("{1:3d}/{2:3d}",@pokemon.ev[5],@pokemon.iv[5]),320,232,1,Color.new(0,0,0)],
]
if pokemon.gender==0
textpos.push([_INTL("{"),304,-6,0,Color.new(0,0,0)])
elsif pokemon.gender==1
textpos.push([_INTL("}"),304,-6,0,Color.new(0,0,0)])
end
pbDrawTextPositions(overlay,textpos)
drawTextEx(overlay,0,288,282,2,abilitydesc,Color.new(0,0,0),Color.new(255,255,255))
drawMarkings(overlay,224,32,72,20,pokemon.markings)
if pokemon.hp>0
hpcolors=[
Color.new(0,184,0),Color.new(0,184,0), # Green
Color.new(248,168,0),Color.new(248,168,0), # Orange
Color.new(248,0,0),Color.new(248,0,0) # Red
]
hpzone=0
hpzone=1 if pokemon.hp<=(@pokemon.totalhp/2).floor
hpzone=2 if pokemon.hp<=(@pokemon.totalhp/4).floor
# overlay.fill_rect(204,150,pokemon.hp*96/pokemon.totalhp,4,hpcolors[hpzone*2])
end
end
I'm sure that most of you are not running on Essentials V13 like your boy, but this is for that one guy who might be looking for something like this.
I'm working on my GSC styled game using COMBOY's Essentials GS V1.1, and I noticed that there wasn't an EV/IV summary page; So I made one!
This will replace page five on the summary screen with EVs and IVs of that Pokemon.
Replace your "def drawPageFive(pokemon)" block with this:
Spoiler:
def drawPageFive(pokemon)
overlay=@sprites["overlay"].bitmap
overlay.clear
@sprites["background"].setBitmap("Graphics/Pictures/summary5")
imagepos=[]
if pbPokerus(pokemon)==1 || pokemon.hp==0 || @pokemon.status>0
status=6 if pbPokerus(pokemon)==1
[email protected] if @pokemon.status>0
status=5 if pokemon.hp==0
imagepos.push(["Graphics/Pictures/statuses",144,16,0,16*status,44,16])
end
if pokemon.isShiny?
imagepos.push([sprintf("Graphics/Pictures/shiny"),128,0,0,0,-1,-1])
end
if pbPokerus(pokemon)==2
imagepos.push([sprintf("Graphics/Pictures/summaryPokerus"),128,16,0,0,-1,-1])
end
[email protected] ? @pokemon.ballused : 0
ballimage=sprintf("Graphics/Pictures/summaryball%02d",@pokemon.ballused)
imagepos.push([ballimage,144,76,0,0,-1,-1])
pbDrawImagePositions(overlay,imagepos)
base=Color.new(0,0,0)
shadow=Color.new(255,255,255)
statshadows=[]
for i in 0...5; statshadows=shadow; end
if !(pokemon.isShadow? rescue false) || pokemon.heartStage<=5
natup=(pokemon.nature/5).floor
natdn=(pokemon.nature%5).floor
statshadows[natup]=Color.new(0,0,0) if natup!=natdn
statshadows[natdn]=Color.new(255,255,255) if natup!=natdn
end
pbSetSystemFont(overlay)
abilityname=PBAbilities.getName(pokemon.ability)
abilitydesc=pbGetMessage(MessageTypes::AbilityDescs,pokemon.ability)
itemname=pokemon.item==0 ? _INTL("NONE") : PBItems.getName(pokemon.item)
[email protected]
if @pokemon.name.split('').last=="{" || @pokemon.name.split('').last=="}"
[email protected][0..-2]
end
textpos=[
[_INTL("EVs/IVs"),0,120,0,base],
[pokename,144,-8,0,base],
[_ISPRINTF("Lv.{1:d}",pokemon.level),224,8,0,Color.new(0,0,0)],
[_INTL("ITEM"),144,40,0,base],
[itemname,320,56,1,Color.new(0,0,0)],
[_INTL("HP"),0,152,0,base],
[_ISPRINTF("{1:3d}/{2:3d}",@pokemon.ev[0],@pokemon.iv[0]),320,152,1,Color.new(0,0,0)],
[_INTL("ATTACK"),0,168,0,base],
[_ISPRINTF("{1:3d}/{2:3d}",@pokemon.ev[1],@pokemon.iv[1]),320,168,1,Color.new(0,0,0)],
[_INTL("DEFENSE"),0,184,0,base],
[_ISPRINTF("{1:3d}/{2:3d}",@pokemon.ev[2],@pokemon.iv[2]),320,184,1,Color.new(0,0,0)],
[_INTL("SP. ATTACK"),0,200,0,base],
[_ISPRINTF("{1:3d}/{2:3d}",@pokemon.ev[3],@pokemon.iv[3]),320,200,1,Color.new(0,0,0)],
[_INTL("SP. DEFENSE"),0,216,0,base],
[_ISPRINTF("{1:3d}/{2:3d}",@pokemon.ev[4],@pokemon.iv[4]),320,216,1,Color.new(0,0,0)],
[_INTL("SPEED"),0,232,0,base],
[_ISPRINTF("{1:3d}/{2:3d}",@pokemon.ev[5],@pokemon.iv[5]),320,232,1,Color.new(0,0,0)],
]
if pokemon.gender==0
textpos.push([_INTL("{"),304,-6,0,Color.new(0,0,0)])
elsif pokemon.gender==1
textpos.push([_INTL("}"),304,-6,0,Color.new(0,0,0)])
end
pbDrawTextPositions(overlay,textpos)
drawTextEx(overlay,0,288,282,2,abilitydesc,Color.new(0,0,0),Color.new(255,255,255))
drawMarkings(overlay,224,32,72,20,pokemon.markings)
if pokemon.hp>0
hpcolors=[
Color.new(0,184,0),Color.new(0,184,0), # Green
Color.new(248,168,0),Color.new(248,168,0), # Orange
Color.new(248,0,0),Color.new(248,0,0) # Red
]
hpzone=0
hpzone=1 if pokemon.hp<=(@pokemon.totalhp/2).floor
hpzone=2 if pokemon.hp<=(@pokemon.totalhp/4).floor
# overlay.fill_rect(204,150,pokemon.hp*96/pokemon.totalhp,4,hpcolors[hpzone*2])
end
end