king-exit/Scripts/_.80.rb
2024-08-31 14:17:23 -05:00

33 lines
No EOL
773 B
Ruby

#
# 強制ラベルジャンプ(お試し)
#
# スイッチ700番がONのときにXキーを押すと「てすと」というラベルにジャンプする
# ジャンプと同時にスイッチ700番はOFFになる
#
class Game_Interpreter
alias :koma20220628_execute_command :execute_command
def execute_command
if $game_switches[700]
if Input.trigger?(:B)
$game_switches[700] = false
@params = ["bigjamp"]
@indent = 0
method_name = "command_#{119}"
send(method_name)
return
end
end
koma20220628_execute_command
end
def wait(duration)
duration.times {
if $game_switches[700]
if Input.trigger?(:B)
break
end
end
Fiber.yield
}
end
end