NanaelJustice
AbsoluteXandy
- 64
- Posts
- 6
- Years
- Brazil
- Seen Jun 15, 2024
I was trying to do a held item that confuses the Pokémon using it copying the codes for Toxic Orb, but it only gives me a crash.
I added that on PokeBattle_Battle after the flame orb code.
If I change the "i.pbConfuse" to "i.pbBurn" or "i.pbPoison" it gives the effects, but Confuse doesnt seems to work.
I added that on PokeBattle_Battle after the flame orb code.
Code:
# Imakuni Coin
if i.hasWorkingItem(:IMAKUNICOIN) && i.status==0 && i.pbCanConfuse?(nil,false)
PBDebug.log("[Item triggered] #{i.pbThis}'s Imakuni Coin")
i.pbConfuse(nil,_INTL("{1} was confused by its {2}!",i.pbThis,
PBItems.getName(i.item)),true)
end
This is the error that pops up when the item is activated.
![[PokeCommunity.com] Confusion held item [PokeCommunity.com] Confusion held item](https://imgur.com/7bXSB4U.png)
If I change the "i.pbConfuse" to "i.pbBurn" or "i.pbPoison" it gives the effects, but Confuse doesnt seems to work.