| [SOLVED] ngelarang lepas senjata | |
|
|
Pengirim | Message |
---|
richter_h Salto Master Hancip RMID
Posts : 1705 Thanked : 30 Engine : Other Skill : Skilled Type : Developer
Trophies
Awards:
| Subyek: [SOLVED] ngelarang lepas senjata 2009-11-01, 14:04 | |
| gini maksudnya... di rmxp bawaannya, kita bsa lepas senjata n jadi barehanded... gmana biar enggak bisa dikosongin si slot senajata di equipment? kali aja ma equipment lain jg bsa.... plis kk-kk rmid, kasi tau gmana via skripna.... da kasep | |
|
| |
bradhawk Admin
Posts : 637 Thanked : 8 Skill : Beginner
| Subyek: Re: [SOLVED] ngelarang lepas senjata 2009-11-01, 14:12 | |
| - Quote :
- gmana biar enggak bisa dikosongin si slot senajata di equipment?
ini ga ngerti maksudny . . . bisa di jelasin ? apa ini termasuk settingan fixed di bagian equipment actor ya ? | |
|
| |
richter_h Salto Master Hancip RMID
Posts : 1705 Thanked : 30 Engine : Other Skill : Skilled Type : Developer
Trophies
Awards:
| Subyek: Re: [SOLVED] ngelarang lepas senjata 2009-11-01, 14:42 | |
| maksudnya gimana cara buat ngilangin pilihan Unequip (yang di defaultnya ada item [kosong] buat ngelepas equipment/senjata, di Window_EquipItem kalo enggak salah)??
sory bahasana rancu.... lagi pusing ma yang satu ini | |
|
| |
CrimsonSeas Novice
Posts : 106 Thanked : 9 Engine : RMVX
| Subyek: Re: [SOLVED] ngelarang lepas senjata 2009-11-01, 15:15 | |
| Wadu buat XP ya, blom nginstall XP jd ga bisa ngecek scriptnya, tp klo VX sih bisa2 aja gw bantu. | |
|
| |
zzxzz Novice
Posts : 156 Thanked : 12 Engine : RMVX
| Subyek: Re: [SOLVED] ngelarang lepas senjata 2009-11-01, 15:43 | |
| masuk ke database > actors > di kolom kanan bawah centang fixed di starting equipmentnya buat weapon.. konsekuensinya weaponnya gak bisa diganti selama permainan... buat fixed item lain jg bisa kok disitu macam armor, accessory, dst.. | |
|
| |
shikami Member 1000 Konsep
Posts : 3744 Thanked : 31 Engine : Multi-Engine User Skill : Beginner Type : Developer
Trophies
Awards:
| Subyek: Re: [SOLVED] ngelarang lepas senjata 2009-11-01, 17:59 | |
| Oh tw mksd prtnyaany,dy pgn ngilangin tgn kosongny,jd mwny equip fix tp bsa dgnti2 (stau saia fix g bsa dgnti2 dh).. Knp g dakalin pake eventing aja? | |
|
| |
yerry_great @> Moderator
Posts : 1251 Thanked : 15 Engine : Multi-Engine User Skill : Very Beginner Type : Jack of All Trades
| Subyek: Re: [SOLVED] ngelarang lepas senjata 2009-11-01, 18:06 | |
| Kalo kata shikami bisa... Pake UNARMED System...
Trus tambahin CANT UNARMED...
Branch if Hero Equip UNARMED maka bla''''' | |
|
| |
CrimsonSeas Novice
Posts : 106 Thanked : 9 Engine : RMVX
| Subyek: Re: [SOLVED] ngelarang lepas senjata 2009-11-01, 18:08 | |
| Baru install XP, baca2 dikit default scriptnya, dan inilah hasil dr coba2 berhadiah gw Script kecil ini fungsinya buat disabling unequip buat equip2 tertentu, bisa diset mana aja yg bisa unequip mana aja yg ga bisa - Spoiler:
- Code:
-
#=============================================================================== #DISABLING UNEQUIP FOR XP #Made by CrimsonSeas #=============================================================================== #A simple snippet I made by request at RMID, this script disables unequipping #equipment, so a character must have an equipment at a defined slot. #You can set which type of equipment can be unequipped or not at the coniguration #below.
#============================================================================== #Configuration #============================================================================== module CRMSS #set to true for enabling, false to disable unequip for that particular type # weapon shield helmet body accessory UNEQUIP_ENABLE = [ false, true, true, true, true] end
class Scene_Equip def update_right # If B button was pressed if Input.trigger?(Input::B) # Play cancel SE $game_system.se_play($data_system.cancel_se) # Switch to menu screen $scene = Scene_Menu.new(2) return end # If C button was pressed if Input.trigger?(Input::C) # If equipment is fixed if @actor.equip_fix?(@right_window.index) # Play buzzer SE $game_system.se_play($data_system.buzzer_se) return end # Play decision SE if @item_window.data.size == 0 # Play buzzer SE $game_system.se_play($data_system.buzzer_se) return end $game_system.se_play($data_system.decision_se) # Activate item window @right_window.active = false @item_window.active = true @item_window.index = 0 return end # If R button was pressed if Input.trigger?(Input::R) # Play cursor SE $game_system.se_play($data_system.cursor_se) # To next actor @actor_index += 1 @actor_index %= $game_party.actors.size # Switch to different equipment screen $scene = Scene_Equip.new(@actor_index, @right_window.index) return end # If L button was pressed if Input.trigger?(Input::L) # Play cursor SE $game_system.se_play($data_system.cursor_se) # To previous actor @actor_index += $game_party.actors.size - 1 @actor_index %= $game_party.actors.size # Switch to different equipment screen $scene = Scene_Equip.new(@actor_index, @right_window.index) return end end end
class Window_EquipItem attr_reader :data def refresh if self.contents != nil self.contents.dispose self.contents = nil end @data = [] # Add equippable weapons if @equip_type == 0 weapon_set = $data_classes[@actor.class_id].weapon_set for i in 1...$data_weapons.size if $game_party.weapon_number(i) > 0 and weapon_set.include?(i) @data.push($data_weapons[i]) end end end # Add equippable armor if @equip_type != 0 armor_set = $data_classes[@actor.class_id].armor_set for i in 1...$data_armors.size if $game_party.armor_number(i) > 0 and armor_set.include?(i) if $data_armors[i].kind == @equip_type-1 @data.push($data_armors[i]) end end end end # Add blank page @data.push(nil) if CRMSS::UNEQUIP_ENABLE[@equip_type] # Make a bit map and draw all items @item_max = @data.size return if @data.size == 0 self.contents = Bitmap.new(width - 32, row_max * 32) for i in 0...@item_max draw_item(i) unless @data[i] == nil end end end
| |
|
| |
yerry_great @> Moderator
Posts : 1251 Thanked : 15 Engine : Multi-Engine User Skill : Very Beginner Type : Jack of All Trades
| Subyek: Re: [SOLVED] ngelarang lepas senjata 2009-11-01, 18:12 | |
| Btw... knapa si richter ga bikin ndiri ya?
dia kan bisa nyekrip juga... | |
|
| |
richter_h Salto Master Hancip RMID
Posts : 1705 Thanked : 30 Engine : Other Skill : Skilled Type : Developer
Trophies
Awards:
| Subyek: Re: [SOLVED] ngelarang lepas senjata 2009-11-02, 20:50 | |
| @crimsonseas: wow thx bgt kang.... @yerry: iya sih tp lagi bnyk kerjaan, jdinya rada bingung mo nyentuh lg skrip jd rada pusing..... jg ane lbih suka ada bntuan dripada pusing ndiri | |
|
| |
Sponsored content
| Subyek: Re: [SOLVED] ngelarang lepas senjata | |
| |
|
| |
| [SOLVED] ngelarang lepas senjata | |
|