Resource icon

Tutorial Customization of the Stat Screen

TechSkylander1518

Wiki Dweeb
Member
Posts
291
#1
TechSkylander1518 submitted a new resource:

Customization of the Stat Screen - Customizing the text of the stat screen, including displaying IVs/EVs

This tutorial contains code that will display a Pokemon's Individual Values and Effort Values in the stat screen. It will also describe how these can be modified to suit different backgrounds. (Described by someone with minor experience in coding, intended for people with very little experience in coding. I'm afraid I can't give super advanced help)

If you're just wanting the code, here it is:

[_INTL("STATS"),26,16,0,base,shadow],
[pokename,46,62,0,base,shadow],...
Read more about this resource...
 

Poq

Elite Trainer
Member
Posts
119
#2
Here's what the code needs to look like for version 17.2 starting on line 627, in case anyone is interested:

Ruby:
    textpos = [
      [_INTL("STATS"),26,16,0,base,shadow],
      [_INTL("{1}",@pokemon.level),46,92,0,Color.new(64,64,64),Color.new(176,176,176)],
      [_INTL("Item"),16,320,0,base,shadow],
      [_INTL("HP"),292,76,2,base,shadow],
      [_ISPRINTF("{1:3d}/{2:3d}",@pokemon.hp,@pokemon.totalhp),405,76,1,Color.new(64,64,64),Color.new(176,176,176)],
      [_ISPRINTF("{1:3d}/{2:3d}",@pokemon.iv[0],@pokemon.ev[0]),485,76,1,Color.new(64,64,64),Color.new(176,176,176)],
      [_INTL("Attack"),248,120,0,base,statshadows[0]],
      [_ISPRINTF("{1:d}",@pokemon.attack),385,120,1,Color.new(64,64,64),Color.new(176,176,176)],
      [_ISPRINTF("{1:3d}/{2:3d}",@pokemon.iv[1],@pokemon.ev[1]),475,120,1,Color.new(64,64,64),Color.new(176,176,176)],
      [_INTL("Defense"),248,152,0,base,statshadows[1]],
      [_ISPRINTF("{1:d}",@pokemon.defense),385,152,1,Color.new(64,64,64),Color.new(176,176,176)],
      [_ISPRINTF("{1:3d}/{2:3d}",@pokemon.iv[2],@pokemon.ev[2]),475,152,1,Color.new(64,64,64),Color.new(176,176,176)],
      [_INTL("Sp. Atk"),248,184,0,base,statshadows[3]],
      [_ISPRINTF("{1:d}",@pokemon.spatk),385,184,1,Color.new(64,64,64),Color.new(176,176,176)],
      [_ISPRINTF("{1:3d}/{2:3d}",@pokemon.iv[4],@pokemon.ev[4]),475,184,1,Color.new(64,64,64),Color.new(176,176,176)],
      [_INTL("Sp. Def"),248,216,0,base,statshadows[4]],
      [_ISPRINTF("{1:d}",@pokemon.spdef),385,216,1,Color.new(64,64,64),Color.new(176,176,176)],
      [_ISPRINTF("{1:3d}/{2:3d}",@pokemon.iv[5],@pokemon.ev[5]),475,216,1,Color.new(64,64,64),Color.new(176,176,176)],
      [_INTL("Speed"),248,248,0,base,statshadows[2]],
      [_ISPRINTF("{1:d}",@pokemon.speed),385,248,1,Color.new(64,64,64),Color.new(176,176,176)],
      [_ISPRINTF("{1:3d}/{2:3d}",@pokemon.iv[3],@pokemon.ev[3]),475,248,1,Color.new(64,64,64),Color.new(176,176,176)],
      [_INTL("Ability"),224,284,0,base,shadow],
      [PBAbilities.getName(@pokemon.ability),362,284,0,Color.new(64,64,64),Color.new(176,176,176)],
    ]
 
Top