Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def update_item_selection
- if Input.trigger?(Input::B)
- Sound.play_cancel
- return_scene
- elsif Input.trigger?(Input::C)
- @item = @item_window.item
- if @item != nil
- $game_party.last_item_id = @item.id
- end
- if $game_party.item_can_use?(@item)
- Sound.play_decision
- determine_item
- else
- Sound.play_buzzer
- end
- elsif Input.trigger?( Input::NUMBERS[6] )
- Sound.play_decision
- id = @item_window.item.nil?() ? 0 : @item_window.item.id
- $game_actors[1].set_item_slot(0, id)
- elsif Input.trigger?( Input::NUMBERS[7] )
- Sound.play_decision
- id = @item_window.item.nil?() ? 0 : @item_window.item.id
- $game_actors[1].set_item_slot(1, id)
- elsif Input.trigger?( Input::NUMBERS[8] )
- Sound.play_decision
- id = @item_window.item.nil?() ? 0 : @item_window.item.id
- $game_actors[1].set_item_slot(2, id)
- elsif Input.trigger?( Input::NUMBERS[9] )
- Sound.play_decision
- id = @item_window.item.nil?() ? 0 : @item_window.item.id
- $game_actors[1].set_item_slot(3, id)
- elsif Input.trigger?( Input::NUMBERS[0] )
- Sound.play_decision
- id = @item_window.item.nil?() ? 0 : @item_window.item.id
- $game_actors[1].set_item_slot(4, id)
- end
- end
Add Comment
Please, Sign In to add comment