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.
|
|
| jumlah barang di inventory | |
| 2011-07-15, 19:10 | jumlah barang di inventory |
---|
celes Novice
Posts : 202 Thanked : 0 Engine : RMVX Skill : Beginner Type : Artist
| saya coba max 99 klo mau biar 9999 bs g? |
| | | 2011-07-15, 19:29 | Re: jumlah barang di inventory |
---|
bungatepijalan Moe Princess
Posts : 1487 Thanked : 30 Engine : Multi-Engine User Skill : Intermediate Type : Developer
Awards:
| Try this... just insert above Main - 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....
~ Salam Ngacay dari Alissa Liu ~ |
| | | 2011-07-15, 19:53 | Re: jumlah barang di inventory |
---|
celes Novice
Posts : 202 Thanked : 0 Engine : RMVX Skill : Beginner Type : Artist
| buat barang di invent misalnya antidote mau sampe x9999 jg pke itu? brb coba dl edit: masih g bs msh mentok 99 |
| | | 2011-07-16, 10:43 | Re: jumlah barang di inventory |
---|
bungatepijalan Moe Princess
Posts : 1487 Thanked : 30 Engine : Multi-Engine User Skill : Intermediate Type : Developer
Awards:
| I found it! try this, and I've successfully tested it... - 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 ~ |
| | | 2011-07-16, 21:56 | Re: jumlah barang di inventory |
---|
celes Novice
Posts : 202 Thanked : 0 Engine : RMVX Skill : Beginner Type : Artist
| taruh di mana cc script na |
| | | 2011-07-16, 22:04 | Re: jumlah barang di inventory |
---|
bungatepijalan Moe Princess
Posts : 1487 Thanked : 30 Engine : Multi-Engine User Skill : Intermediate Type : Developer
Awards:
| | | | 2011-07-16, 23:00 | Re: jumlah barang di inventory |
---|
celes Novice
Posts : 202 Thanked : 0 Engine : RMVX Skill : Beginner Type : Artist
| 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 |
| | | 2011-07-16, 23:06 | Re: jumlah barang di inventory |
---|
bungatepijalan Moe Princess
Posts : 1487 Thanked : 30 Engine : Multi-Engine User Skill : Intermediate Type : Developer
Awards:
| | | | 2011-07-16, 23:29 | Re: jumlah barang di inventory |
---|
celes Novice
Posts : 202 Thanked : 0 Engine : RMVX Skill : Beginner Type : Artist
| wah bntr d coba dl edit: dah success tq solved |
| | | | Re: jumlah barang di inventory |
---|
Sponsored content
| | | | | jumlah barang di inventory | |
|
Similar topics | |
|
Similar topics | |
| |
Halaman 1 dari 1 | |
| Permissions in this forum: | Anda tidak dapat menjawab topik
| |
| |
Latest 10 Topics | [Web Novel] Gloria Infidelis 2016-11-17, 21:27 by LightNightKnight
[Announcement] Forum baru untuk RMID 2016-08-25, 16:39 by TheoAllen
Where I'm Wrong ? 2016-07-24, 16:10 by ReydVires
flakeheartnet's Resources part III 2016-07-08, 14:30 by flakeheartnet
Keira's Art Warehouse 2016-06-28, 19:27 by KeiraBlaze
Theo Core Time System + Bingung 2016-06-27, 16:24 by Lockin
Error Script, Maybe ? 2016-06-27, 16:20 by Lockin
Nusaimoe @ RMID Lounge 2016-06-21, 05:02 by Jihad Bagas
Call Random Battle 2016-06-15, 17:04 by Lockin
Flakeheartnet Resources Part II [come back gift] 2016-06-07, 15:51 by flakeheartnet
|
Statistics
|
Members: [ 4947 ]
Topics: [ 8258 ]
Posts: [ 112606 ]
Newest member: [ https://rmid.forumotion.net/u4968 ]
|
|
|
|
|
|