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.
|
|
| 2010-01-14, 21:33 | [request]Item bag |
---|
TheoAllen ♫ RMID Rebel ♫
Posts : 4935 Thanked : 63
Awards:
| Theodoric request sript? Bukan, ini untuk sodara gw Gini... 2 the point Sodara gw tu butuh script yang bisa nyimpan item. Misalnya sedang menggunakan partynya aluxes dkk. Setelah beberapa event partynya ganti ralph dkk Item yang dibawa Aluxes disimpan, dan ralph membawa Item bag baru yang masi kosong. Nah, lalu mereka bertemu. Dan bergabung Jadi, Item2 yang mereka bawa juga digabung. Bagi dewa2 scripter di mohon bantuannya Kalo ada yang bisa aku kasi rep 5 berturut2 deh. Masalahnya udah ubek2 tu inet ga nemu2 katanya. *summoning reijubv crimsonseas, wltr3536, rusted_71 Oia, kalo nemu juga gapapa deh.... Posting aja Tar tetep aku kasi rep deh..... |
| | | 2010-01-14, 21:34 | Re: [request]Item bag |
---|
Tamu Tamu
| Kenapa Gak Pake Eventing aja.. Nampaknya Commont Event Bisa di Pakai walupun panjang. jadi setaip item memiliki variable tersendiri |
| | | 2010-01-14, 22:38 | Re: [request]Item bag |
---|
rusted_71 Scripter Karatan
Posts : 392 Thanked : 11 Engine : RMVX Skill : Beginner Type : Scripter
| tanya dolo... inih RGSS apa RGSS2...? |
| | | 2010-01-14, 22:48 | Re: [request]Item bag |
---|
yerry_great @> Moderator
Posts : 1251 Thanked : 15 Engine : Multi-Engine User Skill : Very Beginner Type : Jack of All Trades
| ^ ^ Lihat lokasinya donk RPGMakerID :: Scripting :: RMVX Scripts :: RGSS2 Request! @Theo Kalo pake event kayaknya ribet |
| | | 2010-01-14, 22:50 | Re: [request]Item bag |
---|
Tamu Tamu
| @yerry aku baru tahu kalo seorang rusted bisa nggak menyadarinya |
| | | 2010-01-14, 23:15 | Re: [request]Item bag |
---|
CrimsonSeas Novice
Posts : 106 Thanked : 9 Engine : RMVX
| Dicoba dulu kk. - Spoiler:
- Code:
-
=begin ================================================================================ CrimsonSeas Item Management System by CrimsonSeas as per request by Theodoric at RPGMakerID forums (rmid.forumotion.net) ================================================================================ Script that enables easy item managements. Mainly used for party switching item management. This script can: -Temporarily store your items. Storing can be done multiple times in different storage slots. -Clears your items -Restore your items from the storage slot(s). Can quickly restore from more than 1 storage slot. Also an option to add the current items to the restored one. How to Use: This script has many methods that you can use
clone_items_hash(slot), clone_weapons_hash(slot), clone_armors_hash(slot):
These methods are used to store the current items/weapons/armors to an items/ weapons/armors atorage slot. Example: $game_party.clone_items_hash(1) will store your current items to item storage slot1, while $game_party.clone_weapons(hash(3) will store your current weapons to weapons storage slot 3. Remember that items/weapons/armors storage slot is separated so you can use the same slot number for all 3 of them.
clone_all_items(slot):
This method calls all the three methods above to store all items, weapons, and armors to the respective storage slot. Example: $game_party.clone_all_items(2) will store you items to items storage slot 1, weapons to weapons storage slot 1, and armors to armors storage slot 1.
clear_items, clear_weapons, clear_armors:
Clears the respective item type from your inventory.
clear_all_items: Calls the 3 methods above.
restore_items_from_temp(include_old, [slot1, [slot2]......]) restore_weapons_from_temp(include_old, [slot1, [slot2]......]) restore_armors_from_temp(include_old, [slot1, [slot2]......])
Restores the items/weapons/armors from the respective storage slot. include_old: true to include the current items to the restored items, false to completely replace the inventory with the items from the storage slot(s) slot1, slot2...: Slot numbers. you can define as many storage slot as you want. Example: $game_party.restore_items_from_temp(true, 1) will add the items stored in items storage slot 1 to the current items
$game_party.restore_weapons_from_temp(false, 1, 2, 3) will replace the current items to be the sum of items stored in weapons storage slot 1, 2, and 3.
restore_all_items(include_old, [slot1, [slot2].....])
Calls the three methods above. ================================================================================ =end
class Game_Party alias cs_item_management_initialize initialize def initialize(*args) cs_item_management_initialize(*args) @temp_items = [] @temp_weapons = [] @temp_armors = [] end def clone_items_hash(index) @temp_items[index] = @items.clone end def clone_weapons_hash(index) @temp_weapons[index] = @weapons.clone end def clone_armors_hash(index) @temp_armors[index] = @armors.clone end def clone_all_items(index) clone_items_hash(index) clone_weapons_hash(index) clone_armors_hash(index) end def clear_items @items.clear end def clear_weapons @weapons.clear end def clear_armors @armors.clear end def clear_all_items clear_items clear_weapons clear_armors end def restore_items_from_temp(include_old, *args) @items = Hash.new(0) unless include_old @items.default = 0 for arg in args @temp_items[arg].each{|k, v| @items[k] += v if v != nil} end end def restore_weapons_from_temp(include_old, *args) @weapons = Hash.new(0) unless include_old @weapons.default = 0 for arg in args @temp_weapons[arg].each{|k, v| @weapons[k] += v if v != nil} end end def restore_armors_from_temp(include_old, *args) @armors = Hash.new(0) unless include_old @armors.default = 0 for arg in args @temp_armors[arg].each{|k, v| @armors[k] += v if v != nil} end end def restore_all_items(include_old, *args) restore_items_from_temp(include_old, *args) restore_weapons_from_temp(include_old, *args) restore_armors_from_temp(include_old, *args) end end
Cara pakenya: Kalo menurut yang om Theo mau sih, jadinya gini. Pas partynya pindah ke Ralph, lakukan script call ini - Code:
-
$game_party.clone_all_items(0) $game_party.clear_all_items
Nah pas partynya join, lakukan script call ini - Code:
-
$game_party.restore_all_items(true, 0) Coba dulu sukses ato ga nih, moga2 aja sukses |
| | | 2010-01-15, 00:07 | Re: [request]Item bag |
---|
TheoAllen ♫ RMID Rebel ♫
Posts : 4935 Thanked : 63
Awards:
| ^ ^ Itu hasil kloningnya hilang apa ga? waktu load game? (waktu load game) kalo belom coba, coba dulu ya... sodara gw lagi ribet, ga bisa beta testing |
| | | 2010-01-15, 00:11 | Re: [request]Item bag |
---|
CrimsonSeas Novice
Posts : 106 Thanked : 9 Engine : RMVX
| Seharusnya ga, karena dia gw simpen sbg variable di game party, kan game party disave ke save file juga. |
| | | 2010-01-15, 01:02 | Re: [request]Item bag |
---|
rusted_71 Scripter Karatan
Posts : 392 Thanked : 11 Engine : RMVX Skill : Beginner Type : Scripter
| yah... dah keduluan... tapi gpp deh... di post aja... rang udah di bikin juga... - Spoiler:
- Code:
-
#=========================================================================== # Rusted Party+ System #=========================================================================== # untuk menjawab request Theodoric di salah satu thread RMID #=========================================================================== # Cara Pakai... # # ketik script di event... # # 1. panggil_party(id) # maksudnya adalah memanggil party dengan id yang di tentukan # cth : panggil_party(1) <= memanggil party dengan id 1 # 2. gabung_party(id1,id2) # maksudnya adalah memanggil party dengan id1 dan kemudian menggabungkan # dengan data party dengan id2... # cth : gabung_party(1,2) <= memanggil party dengan id 1 dan kemudian # menggabungkannya dengan data party dengan id 2 #=========================================================================== # keterangan tambahan... # party dengan id 1 adalah party awal saat memulai game... # # dah gitu aja, semoga membantu... # klo kurang, atau ada bug... kasih tau ya... #=========================================================================== class Scene_Title < Scene_Base alias rusted_game_objects create_game_objects def create_game_objects rusted_game_objects $party_now = 1 $party_array = [] end end class Scene_File < Scene_Base alias rusted_write_save_data write_save_data alias rusted_read_save_data read_save_data def write_save_data(file) rusted_write_save_data(file) Marshal.dump($party_now, file) Marshal.dump($party_array, file) end def read_save_data(file) rusted_read_save_data(file) $party_now = Marshal.load(file) $party_array = Marshal.load(file) end end class Game_Party def rusted_increase_step(n) @steps += n end end class Game_Interpreter def panggil_party(team) $party_array[$party_now] = $game_party $party_now = team if $party_array[team] == nil $game_party = Game_Party.new else $game_party = $party_array[team] end $game_player.refresh end def gabung_party(team1,team2) $party_array[$party_now] = $game_party $party_now = team1 $game_party = $party_array[team1] $game_party.gain_gold($party_array[team2].gold) $game_party.rusted_increase_step($party_array[team2].steps) for item in $party_array[team2].items number = $party_array[team2].item_number(item) $game_party.gain_item(item,number) end $game_player.refresh end end
ya intinya seh bikin 2 party yang bener2 beda... klo mo ganti party ya tinggal panggil... semua item dari party itu di panggil juga... panggil_party(id) trus klo mo gabung party ya di gabung... trus data2 yang ada di party itu di tambahin ke party satu lagi gabung_party(id1,id2) dah deh gitu aja... |
| | | 2010-01-15, 05:29 | Re: [request]Item bag |
---|
shikami Member 1000 Konsep
Posts : 3744 Thanked : 31 Engine : Multi-Engine User Skill : Beginner Type : Developer
Awards:
| Hmm...inikan prinsipnya sama kayak simple party changer script, coba ubek2 rpgmakervx.net.. Kayaknya ada tuh... Good luck bwt sodaramu.. |
| | | | Re: [request]Item bag |
---|
Sponsored content
| | | | 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 ]
|
|
|
|
|
|