- 1,224
- Posts
- 11
- Years
- Omnipresence
- Seen Aug 8, 2023
In PokemonField, find the line
Change this to
XX must be a game variable number.
Put this method above the main
Call this to change the transition. If you set it to an invalid transition name, it will not do one (besides the flashing thing it does for all of them). You could also use this to purposefully have no transition.
XX should be the same game variable number. Variable will reset after the next occuring battle.
Code:
if Sprite.method_defined?(:wave_amp) && rand(15)==0
Change this to
Code:
if $game_variables[XX]!=nil && $game_variables[XX]!=0 && $game_variables[XX] !="" #force chosen transition
#variable is initially set as 0 when you start the game, must check for this
Graphics.freeze
viewport.color=Color.new(0,0,0,255)
Graphics.transition(50,sprintf("Graphics/Transitions/%s",$game_variables[XX]))
$game_variables[XX]=""
elsif Sprite.method_defined?(:wave_amp) && rand(15)==0
XX must be a game variable number.
Put this method above the main
Code:
def pbNextTransition(transition)
return if !(transition.is_a?(String))
$game_variables[XX]=transition
end
Call this to change the transition. If you set it to an invalid transition name, it will not do one (besides the flashing thing it does for all of them). You could also use this to purposefully have no transition.
XX should be the same game variable number. Variable will reset after the next occuring battle.
Last edited: