• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Project: Generation 6 for Pokémon Essentials (Pokémon sprites and PBS files)

Following this method:
https://www.pokecommunity.com/showthread.php?p=8325133#8325133

I implemented Freeze-Dry into my game

Spoiler:

Also, I edited the Reveal Glass code while trying to implement the Ability Capsule:

Spoiler:

It only works with Pidgey and Rattata as it is. Maybe there's an easier way to list all the Pokémon with a working second Ability other than typing them all?
 
I think the Ability Capsule could be something like this, but i'm not entirely sure.

Code:
ItemHandlers::UseOnPokemon.add(:ABILITYCAPSULE,proc{|item,pokemon,scene|
abil=pokemon.getAbilityList
if abil[0][2] != pokemon.ability
if pokemon.ability == abil[0][0]
pokemon.setAbility(1)
scene.pbDisplay(_INTL("{1}'s ability was changed!",pokemon.name))
else
pokemon.setAbility(0)
scene.pbDisplay(_INTL("{1}'s ability was changed!",pokemon.name))
end
pokemon.calcStats
else
scene.pbDisplay(_INTL("It won't have any effect."))
next false
end
})
 
Hmm. No, it still works on Pokémon with one Ability but it does nothing, you waste it and you still get the message "{1}'s ability was changed!"
 
Code:
ItemHandlers::UseOnPokemon.add(:ABILITYCAPSULE,proc{|item,pokemon,scene|
abil=pokemon.getAbilityList
if abil[0].length >2
if pokemon.ability == abil[0][0]
pokemon.setAbility(1)
scene.pbDisplay(_INTL("{1}'s ability was changed!",pokemon.name))
else
pokemon.setAbility(0)
scene.pbDisplay(_INTL("{1}'s ability was changed!",pokemon.name))
end
pokemon.calcStats
else
scene.pbDisplay(_INTL("It won't have any effect."))
next false
end
})
maybe this?
 
Spoiler:

It didn't work at first, I was always getting the message "It won't have any effect."

But then I changed

Code:
if abil[0].length >[COLOR="Red"]2[/COLOR]

to

Code:
if abil[0].length >[COLOR="red"]1[/COLOR]

and now it works fine. Thanks!


By the way, does anyone know how to implement the Exp. All?
 
I think this hasn't been posted yet, so here is the code for the Assault Vest.

First part, in PokeBattle_Move, above the Rock Incense code:

Code:
basedmg=(basedmg/1.5).floor if isConst?(opponent.item,PBItems,:ASSAULTVEST) && pbIsSpecial?(type)

Then, in PokeBattle_Battle, below the Choice Band code, add this:

Code:
if isConst?(thispkmn.item,PBItems,:ASSAULTVEST) && !(thismove.pbIsPhysical?(thismove.type) || thismove.pbIsSpecial?(thismove.type))
if showMessages
pbDisplayPaused(_INTL("{1} doesn't allow use of non-attacking moves!",
PBItems.getName(thispkmn.item)))
end
return false
end
 
I'm just wondering but is it possible that the ownership of this thread could be changed to someone that updates more often? I understand there is life that gets in the way but it hasn't been updated in 4 months so its getting sort of outdated. Also I don't think that these have been added but for Tyrunt-Tyrantrum and Amaura-Aurorus I've made a script that works for them only evolving at day or night. The first is for Tyrunt-Tyrantrum and the second is for Amaura-Aurorus.

Replace when 26 # Custom 1 # Add code for custom evolution type 1 (or whatever custom evolution your on) in the PokemonEvolution script

Code:
    when 26 # LevelDay
      return poke if PBDayNight.isDay?(pbGetTimeNow) && pokemon.level>=level
And do the same for Custom 2 with this code

Code:
    when 27 # LevelNight
      return poke if PBDayNight.isNight?(pbGetTimeNow) && pokemon.level>=level
For these to work you also have change Custom 1 and Custom 2 in Compiler and PokemonEditor to say LevelDay and LevelNight.

I've also implemented the new grass immunities (stun spore,sleep powder, poison powder,and spore) and stance change but I assume most of the people here have those already but if you want the scripts for them just ask and I'll post them
 
these are all my custom evo types (i have already posted the move type one but here it again
Code:
    when 26 # happinessMoveType - max happiness plus a move of a specific type
      for i in 0...4
         return poke if pokemon.happiness>=220 && pokemon.moves[i].type==level
       end
    when 27 # typeDark - if there is a dark type in your party
      for i in $Trainer.party
        return poke if !i.egg? && (i.type1==17 || i.type2==17) && pokemon.level>=level
      end 
    when 28 # LevelRain - if its raining
     return poke if $game_screen && ($game_screen.weather==1 || $game_screen.weather==2) && pokemon.level>=level
    when 29 # LevelDay - level at day at a specific level
      return poke if PBDayNight.isDay?(pbGetTimeNow) && pokemon.level>=level
    when 30 # LevelNight  - level at night at a specific level
      return poke if PBDayNight.isNight?(pbGetTimeNow) && pokemon.level>=level
 
Guys help!
I was trying to put in the type modifying abilities (Pixilate, Refrigerate, Aerilate) and I can't launch the playtest now. This is what it looks like in the script editor (PokeBattle_Move):

Code:
 def pbType(type,attacker,opponent)
    if type>=0 && isConst?(attacker.ability,PBAbilities,:NORMALIZE)
      type=getConst(PBTypes,:NORMAL) || 0
    else
      if type=0 && isConst?(attacker.ability,PBAbilities,:PIXILATE)
      type=getConst(PBTypes,:FAIRY) || 0
    else  
      if type=0 && isConst?(attacker.ability,PBAbilities,:AERILATE)
      type=getConst(PBTypes,:FLYING) || 0
    else  
      if type=0 && isConst?(attacker.ability,PBAbilities,:REFRIGERATE)
      type=getConst(PBTypes,:ICE) || 0  
      end
    return type
  end

When I launch the play test, I get an error code in that script at line 1093 (the last line of the script). What am I doing wrong that the error isn't even on the lines that I added in??
 
Last edited:
Guys help!
I was trying to put in the type modifying abilities (Pixilate, Refrigerate, Aerilate) and I can't launch the playtest now. This is what it looks like in the script editor (PokeBattle_Move):

Code:
 def pbType(type,attacker,opponent)
    if type>=0 && isConst?(attacker.ability,PBAbilities,:NORMALIZE)
      type=getConst(PBTypes,:NORMAL) || 0
    else
      if type>=0 && isConst?(attacker.ability,PBAbilities,:PIXILATE)
      type=getConst(PBTypes,:FAIRY) || 0
    else  
      if type>=0 && isConst?(attacker.ability,PBAbilities,:AERILATE)
      type=getConst(PBTypes,:FLYING) || 0
    else  
      if type>=0 && isConst?(attacker.ability,PBAbilities,:REFRIGERATE)
      type=getConst(PBTypes,:ICE) || 0  
      end
    return type
  end

When I launch the play test, I get an error code in that script at line 1093 (the last line of the script). What am I doing wrong that the error isn't even on the lines that I added in??
Code:
else
if
is not the same as elsif. You're missing several ends the way you're doing it
Code:
 def pbType(type,attacker,opponent)
    if type>=0 && isConst?(attacker.ability,PBAbilities,:NORMALIZE)
      type=getConst(PBTypes,:NORMAL) || 0
    elsif type>=0 && isConst?(attacker.ability,PBAbilities,:PIXILATE)
      type=getConst(PBTypes,:FAIRY) || 0
    elsif type>=0 && isConst?(attacker.ability,PBAbilities,:AERILATE)
      type=getConst(PBTypes,:FLYING) || 0
    elsif type>=0 && isConst?(attacker.ability,PBAbilities,:REFRIGERATE)
      type=getConst(PBTypes,:ICE) || 0  
      end
    return type
  end
 
I tried to get the fairy starter kit from the front post, but the file is no longer available on sendspace. Any chance it's rehosted elsewhere?
 
If it hasn't been done already, someone should totally put all this in one big Essentials pack and post a download link, I bet it'd be real helpful to those who are confused by things like the codes & scripts
 
If it hasn't been done already, someone should totally put all this in one big Essentials pack and post a download link, I bet it'd be real helpful to those who are confused by things like the codes & scripts

I AGREE WITH YOU TOTALLY!!!
 
I'm getting this error

Code:
---------------------------
Pokemon Hope
---------------------------
Exception: RuntimeError

Message: Undefined value LevelDay (expected one of: ["Unknown", "Happiness", "HappinessDay", "HappinessNight", "Level", "Trade", "TradeItem", "Item", "AttackGreater", "AtkDefEqual", "DefenseGreater", "Silcoon", "Cascoon", "Ninjask", "Shedinja", "Beauty", "ItemMale", "ItemFemale", "DayHoldItem", "NightHoldItem", "HasMove", "HasInParty", "LevelMale", "LevelFemale", "Location", "TradeSpecies", "HappinessMoveType", "TypeDark", "Custom3", "Custom4", "Custom5", "Custom6", "Custom7"])

File PBS/pokemon.txt, section 697, key Evolutions

TYRANTRUM,LevelDay,39



Compiler:1624:in `checkEnumField'

Compiler:1639:in `csvEnumField!'

Compiler:2322:in `pbCompilePokemonData'

Compiler:2314:in `each'

Compiler:2314:in `pbCompilePokemonData'

Compiler:2312:in `loop'

Compiler:2390:in `pbCompilePokemonData'

Compiler:2296:in `each'

Compiler:2296:in `pbCompilePokemonData'

Compiler:2295:in `each'



This exception was logged in 

C:\Users\Tanner.Ali-PC\Saved Games/Pokemon Hope/errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK   
---------------------------
 
I'm getting this error

Code:
---------------------------
Pokemon Hope
---------------------------
Exception: RuntimeError

Message: Undefined value LevelDay (expected one of: ["Unknown", "Happiness", "HappinessDay", "HappinessNight", "Level", "Trade", "TradeItem", "Item", "AttackGreater", "AtkDefEqual", "DefenseGreater", "Silcoon", "Cascoon", "Ninjask", "Shedinja", "Beauty", "ItemMale", "ItemFemale", "DayHoldItem", "NightHoldItem", "HasMove", "HasInParty", "LevelMale", "LevelFemale", "Location", "TradeSpecies", "HappinessMoveType", "TypeDark", "Custom3", "Custom4", "Custom5", "Custom6", "Custom7"])

File PBS/pokemon.txt, section 697, key Evolutions

TYRANTRUM,LevelDay,39



Compiler:1624:in `checkEnumField'

Compiler:1639:in `csvEnumField!'

Compiler:2322:in `pbCompilePokemonData'

Compiler:2314:in `each'

Compiler:2314:in `pbCompilePokemonData'

Compiler:2312:in `loop'

Compiler:2390:in `pbCompilePokemonData'

Compiler:2296:in `each'

Compiler:2296:in `pbCompilePokemonData'

Compiler:2295:in `each'



This exception was logged in 

C:\Users\Tanner.Ali-PC\Saved Games/Pokemon Hope/errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK   
---------------------------
Simple. You didn't declare the Evo names. Just scroll the end of your code block. You'll see you only have Sylveon's evo type and Pancham's Evo Type. You didnt add Tyrantrum or Aurorus or Goodra.
 
how do u add Grass Immunity to Powders

to your game i cant understand the first post about creating new function...
 
Hello,

I've just started a new game and I tried to introduce the fairy type and the gen 6 pokes. I managed to make a Flabébé appear in the wild and catch it, however, the pokemon and the move Fairy Wind are Shadow type instead of Fairy even though I defined the Fairy type in the type text PBS file. How is that ?
 
Back
Top