Started by cyclope, June 16, 2010, 04:18:51 pm
class Scene_Name alias name_input_update update def update (65...91).each{|i| if Input.trigger?(i) let = Input::Key.index(i) let = let.downcase unless Input.press?(Input::Key['Shift']) @edit_window.add(let) end} if Input.trigger?(Input::Key['Backspace']) @edit_window.back end name_input_update end end
class Scene_Name alias name_input_update update def update (65...91).each{|i| if Input.trigger?(i) $game_system.se_play($data_system.decision_se) let = Input::Key.index(i) let = let.downcase unless Input.press?(Input::Key['Shift']) @edit_window.add(let) end} if Input.trigger?(Input::Key['Backspace']) @edit_window.back end if Input.trigger?(Input::Key['Enter']) @actor.name = @edit_window.name # Play decision SE $game_system.se_play($data_system.decision_se) # Switch to map screen $scene = Scene_Map.new end name_input_update end end