- 76
- Posts
- 9
- Years
- Seen Oct 6, 2017
I want to give all species of a Pokémon the same status effect that has no effect in battle, but it just has the icon. Basically, I just want all species of a Pokémon to have an icon where status effects are.
self.bitmap.blt(22,34,pbBitmap("Graphics/Pictures/mega_sym"),Rect.new(0,0,30,30)) if @battler.isMega?
if INCLUDEGEN6 && @battler.isPrimal?
path=nil
path="Graphics/Pictures/alpha_sym.png" if @battler.species==PBSpecies::KYOGRE
path="Graphics/Pictures/omega_sym.png" if @battler.species==PBSpecies::GROUDON
#define any custom Primal graphics here
self.bitmap.blt(22,34,pbBitmap(path),Rect.new(0,0,30,30))
end
megaPos=22
deltaDex=getBattler(@battler).species>=[COLOR="Red"]first dex number for which you want the symbol to appear[/COLOR]
deltaDex=deltaDex && getBattler(@battler).species<=[COLOR="Red"]last dex number for which you want the symbol to appear[/COLOR]
if getBattler(@battler).isShiny? || deltaDex
megaPos=34
end
self.bitmap.blt(megaPos,34,pbBitmap("Graphics/Pictures/mega_sym"),Rect.new(0,0,30,30)) if @battler.isMega?
if INCLUDEGEN6 && @battler.isPrimal?
path=nil
path="Graphics/Pictures/alpha_sym.png" if @battler.species==PBSpecies::KYOGRE
path="Graphics/Pictures/omega_sym.png" if @battler.species==PBSpecies::GROUDON
#define any custom Primal graphics here
self.bitmap.blt(megaPos,34,pbBitmap(path),Rect.new(0,0,30,30))
end
shinyPos=22
shinyPos=2 if @battler.isMega? || @battler.isPrimal?
self.bitmap.blt(shinyPos,34,pbBitmap("Graphics/Pictures/shiny_sym"),Rect.new(0,0,30,30)) if getBattler(@battler).isShiny?
self.bitmap.blt(shinyPos,34,pbBitmap("Graphics/Pictures/delta_sym"),Rect.new(0,0,30,30)) if deltaDex
self.bitmap.blt(shinyPos,34,pbBitmap("Graphics/Pictures/shiny_delta_sym"),Rect.new(0,0,30,30)) if deltaDex && getBattler(@battler).isShiny?
self.bitmap.blt(212,30,pbBitmap("Graphics/Pictures/mega_sym"),Rect.new(0,0,30,30)) if @battler.isMega?
if INCLUDEGEN6 && @battler.isPrimal?
path=nil
path="Graphics/Pictures/alpha_sym.png" if @battler.species==PBSpecies::KYOGRE
path="Graphics/Pictures/omega_sym.png" if @battler.species==PBSpecies::GROUDON
#define any custom Primal graphics here
self.bitmap.blt(212,30,pbBitmap(path),Rect.new(0,0,30,30))
end
megaPos=212
deltaDex=getBattler(@battler).species>=[COLOR="Red"]first dex number for which you want the symbol to appear[/COLOR]
deltaDex=deltaDex && getBattler(@battler).species<=[COLOR="Red"]last dex number for which you want the symbol to appear[/COLOR]
if getBattler(@battler).isShiny? || deltaDex
megaPos=232
end
self.bitmap.blt(megaPos,30,pbBitmap("Graphics/Pictures/mega_sym"),Rect.new(0,0,30,30)) if @battler.isMega?
if INCLUDEGEN6 && @battler.isPrimal?
path=nil
path="Graphics/Pictures/alpha_sym.png" if @battler.species==PBSpecies::KYOGRE
path="Graphics/Pictures/omega_sym.png" if @battler.species==PBSpecies::GROUDON
#define any custom Primal graphics here
self.bitmap.blt(megaPos,30,pbBitmap(path),Rect.new(0,0,30,30))
end
shinyPos=212
shinyPos=200 if @battler.isMega? || @battler.isPrimal?
self.bitmap.blt(shinyPos,30,pbBitmap("Graphics/Pictures/shiny_sym"),Rect.new(0,0,30,30)) if getBattler(@battler).isShiny?
self.bitmap.blt(shinyPos,30,pbBitmap("Graphics/Pictures/delta_sym"),Rect.new(0,0,30,30)) if deltaDex
self.bitmap.blt(shinyPos,30,pbBitmap("Graphics/Pictures/shiny_delta_sym"),Rect.new(0,0,30,30)) if deltaDex && getBattler(@battler).isShiny?
---------------------------
Pokémon Paragon
---------------------------
Exception: RuntimeError
Message: Script error within event 21, map 23 (Team Paragon Base):
Exception: NoMethodError
Message: Section174:209:in `refresh'undefined method `isShiny?' for #<PokeBattle_Battler:0x829d2e0>
***Full script:
pbTrainerBattle(PBTrainers::PARAGONBOSS,"Desmond",_I("This fight didn't matter."),false,1,false,0)
Interpreter:243:in `pbExecuteScript'
EliteBattle_UI:69:in `initialize'
EliteBattle_Scene:101:in `new'
EliteBattle_Scene:101:in `pbLoadUIElements'
EliteBattle_Scene:257:in `pbStartBattle'
EliteBattle_Battle:137:in `pbStartBattleCore'
PokeBattle_Battle:2148:in `pbStartBattle'
PTrainer_NPCTrainers:345:in `pbTrainerBattle'
PTrainer_NPCTrainers:344:in `pbSceneStandby'
PTrainer_NPCTrainers:346:in `pbTrainerBattle'
Interpreter:276:in `pbExecuteScript'
Interpreter:794:in `command_111'
Interpreter:320:in `execute_command'
Interpreter:193:in `update'
Interpreter:106:in `loop'
Interpreter:198:in `update'
Scene_Map:103:in `update'
Scene_Map:101:in `loop'
Scene_Map:114:in `update'
Scene_Map:68:in `main'
This exception was logged in
C:\Users\Tyler\Saved Games/Pokémon Paragon/errorlog.txt.
Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
def isShiny?
return (@pokemon) ? @pokemon.isShiny? : false
end
def isShiny?; return @pokemon.isShiny?; end