- 428
- Posts
- 5
- Years
- Zekko
- Seen Nov 21, 2023
My game's either allowing me to play until I send out a Pokemon holding the AD18 which causes a crash, or the game refuses to start and puts up error messages playing the "sorry ) should be a } haha I mean ] haha I mean ) I mean too many )s I mean not enough )s" cycle with me no matter how I change the code. Sometimes changing the code lets me get into a battle, only for sending a Pokemon out holding the AD18 item to cause crashes. The error messages given say it doesn't know what I mean by "Item" if it doesn't just whine about the number of "{{]])end)"s
This held item is just supposed to raise Speed by +1 when sent out. Like the "Intrepid Sword" ability but as an item that boosts Speed.
This held item is just supposed to raise Speed by +1 when sent out. Like the "Intrepid Sword" ability but as an item that boosts Speed.
Code:
BattleHandlers::ItemOnSwitchIn.add(:AD18,
proc { |item,battler,battle|
battle.pbDisplay(_INTL("{1} gained 1 Speed stage from the Drive!",
battler.pbRaiseStatStageByCause(:SPEED,1,battler,itemName))
}
)
Last edited: