alias run_gun_battle update def update @var ||= 15 if Input.trigger?(Input::X) $game_switches[@var] = true @var = (@var == 15 ? 17 : 15 ) end if $game_switches[15] == true @var2 ||= 18 if Input.trigger?(Input::Y) $game_switches[@var2] = true @var2 = (@var2 == 18 ? 19 : 18 ) end end return run_gun_battle end
alias run_gun_battle update
def update
@var ||= 15
if Input.trigger?(Input::X)
$game_switches[@var] = true
@var = (@var == 15 ? 17 : 15 )
end
if $game_switches[15] == true
@var2 ||= 18
if Input.trigger?(Input::Y)
$game_switches[@var2] = true
@var2 = (@var2 == 18 ? 19 : 18 )
end
end
return run_gun_battle
end
测试通过啊.. |