Started by JellalFerd, June 16, 2011, 10:09:22 am
module BlizzCFG Hotkeys = 3endclass Hotkeys BlizzABS::Cache::Keys = 0...BlizzCFG::Hotkeys BlizzABS::Cache::HotkeyRange = 1..BlizzCFG::Hotkeys endclass Scene_Hotkeys def update_choice# set x position @choice.x = 160 + @index * 32 # if pressed B if Input.trigger?(Input::B) # play cancel sound $game_system.se_play($data_system.cancel_se) # create map scene $scene = Scene_Map.new # if C is pressed elsif Input.trigger?(Input::C) # play sound $game_system.se_play($data_system.decision_se) # not active @active = false # the one that was active the last time is now active @skill_window.active = @last_active @item_window.active = (!@last_active) # if RIGHT is being pressed elsif Input.repeat?(Input::RIGHT) # if RIGHT is pressed or index is less than 9 if Input.trigger?(Input::RIGHT) || @index < BlizzCFG::Hotkeys-1 # play sound $game_system.se_play($data_system.cursor_se) # set new index @index = (@index + 1) % BlizzCFG::Hotkeys end # if LEFT is being pressed elsif Input.repeat?(Input::LEFT) # if LEFT is pressed or index is equal or greater than 1 if Input.trigger?(Input::LEFT) || @index >= 1 # play sound $game_system.se_play($data_system.cursor_se) # set new index @index = (@index + BlizzCFG::Hotkeys-1) % BlizzCFG::Hotkeys end end endend
Hotkeys = 3
QuoteFrank says: But obviously they put on that shirt on in the morning. Hmmm.. Booty shirts are nice. Depends on the girl.Jellal says: booty shirts lolwut
BlizzABS::Cache::Keys = 0..BlizzCFG::Hotkeys-1
Keys = 0..9
BlizzABS::Cache::Keys = 0...BlizzCFG::Hotkeys