hi guys, I am trying to create the FIgy Berry in Pokemon Essentials but i dont´t know how i introduce the effects. Can you help me?
ok thanks. One question more. How can i create a new item that it heals X hp and result in confusion to own pokemon
elsif isConst?(berry,PBItems,:FIGYBERRY)
consumed=pbConfusionBerry(0,
_INTL("{1}'s {2} restored health!",pbThis,berryname),
_INTL("For {1}, the {2} was too spicy!",pbThis(true),berryname))
wow man thanks very much for your help¡¡¡. Last question if you can respond.... Can i put the object have probability to make confusion?
elsif isConst?(berry,PBItems,:BERRYNAME)
nat = self.nature%5
if rand(x) == 0
nat += 1
end
consumed=pbConfusionBerry(nat,
_INTL("{1}'s {2} restored health!",pbThis,berryname),
_INTL("For {1}, the {2} was too spicy!",pbThis(true),berryname))
I dont´t get the target.. It always confuse
elsif isConst?(berry,PBItems,:FIGYBERRY)
nat =
azar=rand(100)
if azar >= 60
nat = self.nature%5
end
consumed=pbConfusionBerry(nat,
_INTL("¡{1} ha restaurado su salud con un {2}!",pbThis,berryname),
_INTL("¡El {2} le pego un pelotazo a {1}!",pbThis(true),berryname))
I can get it with this code