Telemetius
Tele*
- 256
- Posts
- 10
- Years
- Italy
- Seen Jan 9, 2022
The title is self explanatory, what I've been trying to do is setting a switch on (or a variable to 1) when a custom pokeball is thrown mid-battle:
BallHandlers::ModifyCatchRate.add(:DEBUGBALL,proc{|ball,catchRate,battle,battler|
$game_switches[112] = true
next [catchRate,255].min
})
But it's not working. Can someone suggest me where i should put the:
" $game_switches[112] = true "
part, to make sure that it will be 100% set true?
EDIT: I made sure that the new ball is recognized by the game so that's not the problem.
EDIT2: Missing a C
BallHandlers::ModifyCatchRate.add(:DEBUGBALL,proc{|ball,catchRate,battle,battler|
$game_switches[112] = true
next [catchRate,255].min
})
But it's not working. Can someone suggest me where i should put the:
" $game_switches[112] = true "
part, to make sure that it will be 100% set true?
EDIT: I made sure that the new ball is recognized by the game so that's not the problem.
EDIT2: Missing a C
Last edited: