Per 2016, RMID pindah ke RMID Discord (Invite link dihapus untuk mencegah spambot -Theo @ 2019). Posting sudah tidak bisa dilakukan lagi.
Mohon maaf atas ketidaknyamanannya dan mohon kerjasamanya.

Share | 
 

 jumlah barang di inventory

Topik sebelumnya Topik selanjutnya Go down 
jumlah barang di inventory Empty2011-07-15, 19:10
Postjumlah barang di inventory
#1
celes 
Novice
Novice
celes

Level 5
Posts : 202
Thanked : 0
Engine : RMVX
Skill : Beginner
Type : Artist

jumlah barang di inventory Vide
saya coba max 99

klo mau biar 9999 bs g?
jumlah barang di inventory Empty2011-07-15, 19:29
PostRe: jumlah barang di inventory
#2
bungatepijalan 
Moe Princess
bungatepijalan

Level 5
Posts : 1487
Thanked : 30
Engine : Multi-Engine User
Skill : Intermediate
Type : Developer
Awards:
jumlah barang di inventory Vide
Try this... just insert above Main :v
Code:
#==============================================================================
# ** Scene_Shop
#------------------------------------------------------------------------------
#  This class performs shop screen processing.
#==============================================================================

class Scene_Shop < Scene_Base
  #--------------------------------------------------------------------------
  # * 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 == 9999
        Sound.play_buzzer
      else
        Sound.play_decision
        max = @item.price == 0 ? 9999 : $game_party.gold / @item.price
        max = [max, 9999 - number].min
        @buy_window.active = false
        @buy_window.visible = false
        @number_window.set(@item, max, @item.price)
        @number_window.active = true
        @number_window.visible = true
      end
    end
  end
end
This is only when in Shop processing. Wait for the next.... :v

~ Salam Ngacay dari Alissa Liu :ngacay2: ~
jumlah barang di inventory Empty2011-07-15, 19:53
PostRe: jumlah barang di inventory
#3
celes 
Novice
Novice
celes

Level 5
Posts : 202
Thanked : 0
Engine : RMVX
Skill : Beginner
Type : Artist

jumlah barang di inventory Vide
buat barang di invent misalnya antidote mau sampe x9999 jg pke itu?

brb coba dl

edit: masih g bs msh mentok 99
jumlah barang di inventory Empty2011-07-16, 10:43
PostRe: jumlah barang di inventory
#4
bungatepijalan 
Moe Princess
bungatepijalan

Level 5
Posts : 1487
Thanked : 30
Engine : Multi-Engine User
Skill : Intermediate
Type : Developer
Awards:
jumlah barang di inventory Vide
I found it! :v
try this, and I've successfully tested it... :v
Code:
#==============================================================================
# ** Game_Party
#------------------------------------------------------------------------------
#  This class handles the party. It includes information on amount of gold
# and items. The instance of this class is referenced by $game_party.
#==============================================================================

class Game_Party < Game_Unit
  #--------------------------------------------------------------------------
  # * Gain Items (or lose)
  #    item          : Item
  #    n            : Number
  #    include_equip : Include equipped items
  #--------------------------------------------------------------------------
  def gain_item(item, n, include_equip = false)
    number = item_number(item)
    case item
    when RPG::Item
      @items[item.id] = [[number + n, 0].max, 9999].min
    when RPG::Weapon
      @weapons[item.id] = [[number + n, 0].max, 9999].min
    when RPG::Armor
      @armors[item.id] = [[number + n, 0].max, 9999].min
    end
    n += number
    if include_equip and n < 0
      for actor in members
        while n < 0 and actor.equips.include?(item)
          actor.discard_equip(item)
          n += 1
        end
      end
    end
  end
end

~ Salam Ngacay dari Alissa Liu :ngacay2: ~
jumlah barang di inventory Empty2011-07-16, 21:56
PostRe: jumlah barang di inventory
#5
celes 
Novice
Novice
celes

Level 5
Posts : 202
Thanked : 0
Engine : RMVX
Skill : Beginner
Type : Artist

jumlah barang di inventory Vide
taruh di mana cc script na
jumlah barang di inventory Empty2011-07-16, 22:04
PostRe: jumlah barang di inventory
#6
bungatepijalan 
Moe Princess
bungatepijalan

Level 5
Posts : 1487
Thanked : 30
Engine : Multi-Engine User
Skill : Intermediate
Type : Developer
Awards:
jumlah barang di inventory Vide
Lha, masih ga tau juga? :o
Seperti sebelumnya lah, diatas Main :v

Spoiler:

~ Salam Ngacay dari Alissa Liu :ngacay2: ~
jumlah barang di inventory Empty2011-07-16, 23:00
PostRe: jumlah barang di inventory
#7
celes 
Novice
Novice
celes

Level 5
Posts : 202
Thanked : 0
Engine : RMVX
Skill : Beginner
Type : Artist

jumlah barang di inventory Vide
mksd nya d atas main
1. bikin script baru d atas main terus d isi pake script td
atau
2. d copas ke dalam script main? d taruh posisi atas
jumlah barang di inventory Empty2011-07-16, 23:06
PostRe: jumlah barang di inventory
#8
bungatepijalan 
Moe Princess
bungatepijalan

Level 5
Posts : 1487
Thanked : 30
Engine : Multi-Engine User
Skill : Intermediate
Type : Developer
Awards:
jumlah barang di inventory Vide
nomer 1 lah :swt:
masi ora ngertos juga? :swt:
Spoiler:

~ Salam Ngacay dari Alissa Liu :ngacay2: ~
jumlah barang di inventory Empty2011-07-16, 23:29
PostRe: jumlah barang di inventory
#9
celes 
Novice
Novice
celes

Level 5
Posts : 202
Thanked : 0
Engine : RMVX
Skill : Beginner
Type : Artist

jumlah barang di inventory Vide
wah bntr d coba dl

edit: dah success

tq

solved
jumlah barang di inventory Empty
PostRe: jumlah barang di inventory
Sponsored content 




jumlah barang di inventory Vide
 

jumlah barang di inventory

Topik sebelumnya Topik selanjutnya Kembali Ke Atas 

Similar topics

+
Halaman 1 dari 1

Permissions in this forum:Anda tidak dapat menjawab topik
RPGMakerID :: Engines :: RMVX-