我翻了翻以前写过的:
反转 Shift:
class Game_Player < Game_Character; def dash? !@move_route_forcing && !$game_map.disable_dash? && !vehicle && !Input.press?(:A) end end
class Game_Player < Game_Character; def dash?
!@move_route_forcing && !$game_map.disable_dash?
&& !vehicle && !Input.press?(:A)
end
end
上控制台:
unless $TEST Win32API.new('kernel32', 'AllocConsole', 'v', 'v').call $stdout = File.open('CONOUT$', 'w') $stdin = File.open('CONIN$') end
unless $TEST
Win32API.new('kernel32', 'AllocConsole', 'v', 'v').call
$stdout = File.open('CONOUT$', 'w')
$stdin = File.open('CONIN$')
end
删掉敌人名字的后缀(虽然开了挂,不过不开也是能在5行内写完的):
class Game_Troop < Game_Unit def_after(:make_unique_names) { each { |enemy| enemy.letter = '' } } end
class Game_Troop < Game_Unit
def_after(:make_unique_names) { each { |enemy| enemy.letter = '' } }
end
升级时完全恢复(虽然开了挂,不过不开也是能在5行内写完的):
Game_Actor.send :def_after, :level_up, :recover_all
Game_Actor.send :def_after, :level_up, :recover_all
删除「整队」
class Window_MenuCommand < Window_Command def add_formation_command; end end
class Window_MenuCommand < Window_Command
def add_formation_command; end
end
删除战斗日志:
Object.const_set :Window_BattleLog, Class.new { def initialize(*) end def method_missing(*) end }
Object.const_set :Window_BattleLog, Class.new {
def initialize(*) end
def method_missing(*) end
}
|