• Do not use Discord to host any images you post, these links expire quickly! You can learn how to add images to your posts here.
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,872
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