Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
violentpurge09

Shop Screen Edit

Recommended Posts

I need the Shop Menu Modified.

 

Remove Time ----> Replace with Money (so this window only is 1 line.)

 

Remove the "amount" to be bought or sold (so it will always be 1).

 

Much thanks

Violentpurge09

 

*EDIT* Removed a bunch of things i thought i was gonna be needing becuz i was gonna go with Fixed Equipment, but after much thought it will be easier to allow customization if you can equip any equipment.

Edited by violentpurge09

Share this post


Link to post
Share on other sites

<scratches head> There is no "Time" in the default shop menu... :unsure:

 

This will remove the number selection, and force it to '1'

Insert above Main in the ▼ Materials section

 

#==============================================================================
# ** Scene_Shop
#------------------------------------------------------------------------------
#  This class performs shop screen processing.
#==============================================================================

class Scene_Shop
 #--------------------------------------------------------------------------
 # * Update Buy Item Selection
 #--------------------------------------------------------------------------
 def update_buy_selection
   @status_window.item = @buy_window.item
   if Input.trigger?(Input::B)
     Sound.play_cancel
     @command_window.active = true
     @dummy_window.visible = true
     @buy_window.active = false
     @buy_window.visible = false
     @status_window.visible = false
     @status_window.item = nil
     @help_window.set_text("")
     return
   end
   if Input.trigger?(Input::C)
     @item = @buy_window.item
     number = $game_party.item_number(@item)
     if @item == nil or @item.price > $game_party.gold or number == 99
       Sound.play_buzzer
     else
       Sound.play_decision
       $game_party.lose_gold(@item.price)
       $game_party.gain_item(@item, 1)
       @gold_window.refresh
       @buy_window.refresh
       @status_window.refresh
     end
   end
 end
 #--------------------------------------------------------------------------
 # * Update Sell Item Selection
 #--------------------------------------------------------------------------
 def update_sell_selection
   if Input.trigger?(Input::B)
     Sound.play_cancel
     @command_window.active = true
     @dummy_window.visible = true
     @sell_window.active = false
     @sell_window.visible = false
     @status_window.item = nil
     @help_window.set_text("")
   elsif Input.trigger?(Input::C)
     @item = @sell_window.item
     @status_window.item = @item
     if @item == nil or @item.price == 0
       Sound.play_buzzer
     else
       Sound.play_decision
       $game_party.gain_gold(@item.price / 2)
       $game_party.lose_item(@item, 1)
       @gold_window.refresh
       @sell_window.refresh
       @status_window.refresh
     end
   end
 end
end

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...