- 220
- Posts
- 10
- Years
- Portugal
- Seen Apr 15, 2024
Some Custom Items for Pokemon Essentials V17.2
Here i will share with you some custom items that i've made form my fangame. Credits goes to me for the codes and graphics.
Let's get started:
1- Add these into the PBS/items list:
Spoiler:
Code:
xxx,POKEMONBOXLINK,POKéMON BOX LINK,POKéMON BOX LINK,8,0,"A device that allows you to access the POKéMON storage system.",2,0,6,
xxx,SHINYLEAF,SHINY LEAF,SHINY LEAF,1,1000,"A mysterious shiny leaf. No trees with this leaf have been found yet.",1,0,0,
xxx,POKERUSPOISON,POKERUS POISON,POKERUS POISON,1,900,"A glass bottle of perfume that infects your POKéMON with a virus.",1,0,0,
xxx,POKERUSCURE,POKERUS CURE,POKERUS CURE,1,700,"A glass bottle of perfume that makes your POKéMON healty from POKéRUS virus.",1,0,0,
xxx,POKEMONPERFUME,POKéMON PERFUME,POKéMON PERFUME,1,400,"A glass bottle of perfume that makes your POKéMON looks different.",1,0,0,
Note: The xxx is you items ID, each line is an item, so if you don't want them all just pick the ones you want.
2- Add these Graphics into the Graphics/icons folder:
![[PokeCommunity.com] My PE v17.2 custom items [PokeCommunity.com] My PE v17.2 custom items](https://i46.servimg.com/u/f46/19/96/78/09/itemxx11.png)
![[PokeCommunity.com] My PE v17.2 custom items [PokeCommunity.com] My PE v17.2 custom items](https://i46.servimg.com/u/f46/19/96/78/09/itemxx12.png)
![[PokeCommunity.com] My PE v17.2 custom items [PokeCommunity.com] My PE v17.2 custom items](https://i46.servimg.com/u/f46/19/96/78/09/itemxx13.png)
![[PokeCommunity.com] My PE v17.2 custom items [PokeCommunity.com] My PE v17.2 custom items](https://i46.servimg.com/u/f46/19/96/78/09/itemxx14.png)
![[PokeCommunity.com] My PE v17.2 custom items [PokeCommunity.com] My PE v17.2 custom items](https://i46.servimg.com/u/f46/19/96/78/09/itemxx15.png)
3- Add these codes in the PItem_ItemEffects script:
Spoiler:
Code:
ItemHandlers::UseFromBag.add(:POKEMONBOXLINK,proc{|item|
pbPokeCenterPC
next 1
})
ItemHandlers::UseInField.add(:POKEMONBOXLINK,proc{|item|
pbPokeCenterPC
next 1
})
ItemHandlers::UseOnPokemon.add(:SHINYLEAF,proc{|item,pokemon,scene|
if pokemon.hasLeafCrown?
Kernel.pbMessage(_INTL("It won't have any effect."))
next false
else
pbSEPlay('Item Used',100,100)
Kernel.pbMessage(_INTL("You gived a Shiny Leaf to your Pokémon."))
next pokemon.addShinyLeaf
end
})
ItemHandlers::UseOnPokemon.add(:POKERUSPOISON,proc{|item,pokemon,scene|
pbSEPlay('Item Used',100,100)
Kernel.pbMessage(_INTL("You infected your Pokémon with Pokérus."))
next pokemon.givePokerus
})
ItemHandlers::UseOnPokemon.add(:POKERUSCURE,proc{|item,pokemon,scene|
pbSEPlay('Item Used',100,100)
Kernel.pbMessage(_INTL("You healed your Pokémon from Pokérus."))
next pokemon.pokerus = nil
})
ItemHandlers::UseOnPokemon.add(:POKEMONPERFUME,proc{|item,pokemon,scene|
if pokemon.isShiny?
Kernel.pbMessage(_INTL("It won't have any effect."))
next false
else
pbSEPlay('Item Used',100,100)
Kernel.pbMessage(_INTL("Your Pokémon change its form."))
next pokemon.makeShiny
end
})
Note: In this line, pbSEPlay('Item Used',100,100), add your own items sound when its used on a Pokemon. I think that the Pokemon Essentials already have thar sound.
Pokemon Box Link is a Key item, you can use item from the bag or from the registered item mechanic. The other ones are normal items mechanic, one use and puff. Logically you can change them the way you want of course.
Purpose of the items:
Pokemon Box Link = A portable Pokemon Center PC storage.
Shiny Leaf = it will gives you a shiny leaf to your Pokemon. *For these to work properly, you'll need the Pokemon Follow Script and turn this option on.
Pokerus Poison = This will infect your Pokemon with Pokerus initial phase.
Pokerus Cure = This will heal your Pokemon from Pokerus virus.
Pokemon Perfume = This makes/turn your Pokemon into shiny form permanently.
All done.