• The Eevee Expo Game Jam #10 has concluded, congratulations to all participants! Now it's time for the judges to play through the games, and you can play along to vote who deserves the community choice spotlight.
    You can check out the submitted games here!
    Play through the games and provide some feedback to the devs while you're at it!
  • Hi, Guest!
    Some images might be missing as we move away from using embedded images, sorry for the mess!
    From now on, you'll be required to use a third party to host images. You can learn how to add images here, and if your thread is missing images you can request them here.
    Do not use Discord to host any images you post, these links expire quickly!
Resource icon

v20.1 Vial of Glitter - An item that makes your pokemon shiny! 1.0.0

This resource pertains to version 20.1 of Pokémon Essentials.
Pokémon Essentials Version
v20.1 ➖
So, first, define your item in Item.txt (PBS)
Here's an example of how it could look:
#-------------------------------
[VIALOFGLITTER]
Name = Vial of Glitter
NamePlural = Vials of Glitter
Pocket = 1
FieldUse = OnPokemon
Price = 15000
Flags = Fling_30
Description = If this item is used, the pokemon is turned shiny.

Then scroll till you find Item_Effects

and paste this at the bottom:


Ruby:
Expand Collapse Copy
ItemHandlers::UseOnPokemon.add(:VIALOFGLITTER, proc { |item, qty, pkmn, scene|
  if pkmn.shiny? == false
    pbSEPlay('Item Used', 100, 100)
    pbMessage(_INTL("The sparkled glitter changed the color of your pokemon!"))
    pkmn.shiny = true
  elsif pkmn.shiny? == true
    pbMessage(_INTL("The sparkled glitter won't have any effect."))
    next false
  end
})

and boom, that's it! just remember to adjust the messages if you don't like them / want something more fitting!
Credits
Apples
Asforcia
BIGFriv
Author
Asforcia
Views
1,853
First release
Last update

Ratings

5.00 star(s) 1 ratings

More resources from Asforcia

Latest updates

  1. Added the icon of the item

    Note: You now have to additionally credit Candii

Latest reviews

I love the idea, and the script is simple and clear ! Only missing a sprite to go along with this item :p
Back
Top