|
| [ASK] Nambahin Mini Game di Title | |
| | Pengirim | Message |
---|
fachiru Sherlockian
Posts : 634 Thanked : 6 Engine : RMXP Skill : Beginner Type : Writer
| Subyek: [ASK] Nambahin Mini Game di Title 2011-04-30, 20:29 | |
|
Terakhir diubah oleh fachiru tanggal 2011-04-30, 21:16, total 3 kali diubah | |
| | | assassin nyemplung Advance
Posts : 363 Thanked : 8 Engine : Multi-Engine User Skill : Intermediate Type : Jack of All Trades
| Subyek: Re: [ASK] Nambahin Mini Game di Title 2011-04-30, 20:34 | |
| aku pernah bikin yang kayak gini pertama, aku make AKUADES (custom title menggunakan event buatan kuro creator) terus di situ tinggal edit edit deh | |
| | | pram12345 Newbie
Posts : 59 Thanked : 1 Engine : RMVX Skill : Very Beginner Type : Databaser
| Subyek: Re: [ASK] Nambahin Mini Game di Title 2011-04-30, 20:37 | |
| @kak fachiru_ kalau aku pakek script ini.. lupa namanya script pertama (kasih nama "large party" - Spoiler:
#============================================================================== # ** Large Party #------------------------------------------------------------------------------ # © Dargor, 2008 # 04/07/08 # Version 1.7 #------------------------------------------------------------------------------ # VERSION HISTORY: # - 1.0 (08/03/08), Initial release # - 1.1 (15/03/08), Added party arrange support # - 1.2 (15/03/08), Battle Status bug fixed with Party Changer # - 1.3 (11/05/08), Bug fixed with the add_actor method # - 1.4 (13/06/08), Configuration Module added # - 1.5 (13/06/08), Support added for extra battle text members # - 1.6 (04/07/08), Improved compatibility with Multiple Parties #------------------------------------------------------------------------------ # INSTRUCTIONS: # 1) To change the maximum # of actors allowed in the party, use: # - $game_party.max_members = x #==============================================================================
#============================================================================== # ** Large Party Customization Module #==============================================================================
module Large_Party # Maximum number of party members Max_Members = 6 # Extra actors (ID) for Battle Test BTEST_Extra_Actors = [] end
#============================================================================== # ** 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 MAX_MEMBERS = Large_Party::Max_Members #-------------------------------------------------------------------------- # * Public Instance Variables #-------------------------------------------------------------------------- attr_accessor :max_members # Maximum number of party members #-------------------------------------------------------------------------- # * Alias Listing #-------------------------------------------------------------------------- alias dargor_vx_large_party_initialize initialize alias dargor_vx_large_party_add_actor add_actor #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize dargor_vx_large_party_initialize @max_members = Large_Party::Max_Members # Maximum number of party members end #-------------------------------------------------------------------------- # * Add an Actor # actor_id : actor ID #-------------------------------------------------------------------------- def add_actor(actor_id) if self.methods.include?('add_reserve_actor') add_reserve_actor(actor_id) end if $game_parties != nil $game_parties.add_actor(actor_id) $game_parties.add_reserve_actor(actor_id) end if @actors.size < @max_members dargor_vx_large_party_add_actor(actor_id) end end #-------------------------------------------------------------------------- # * Battle Test Party Setup #-------------------------------------------------------------------------- def setup_battle_test_members @actors = [] for actor_id in Large_Party::BTEST_Extra_Actors battler = RPG::System::TestBattler.new battler.actor_id = actor_id $data_system.test_battlers << battler end for battler in $data_system.test_battlers actor = $game_actors[battler.actor_id] actor.change_level(battler.level, false) actor.change_equip_by_id(0, battler.weapon_id, true) actor.change_equip_by_id(1, battler.armor1_id, true) actor.change_equip_by_id(2, battler.armor2_id, true) actor.change_equip_by_id(3, battler.armor3_id, true) actor.change_equip_by_id(4, battler.armor4_id, true) actor.recover_all @actors.push(actor.id) end @items = {} for i in 1...$data_items.size if $data_items[i].battle_ok? @items[i] = 99 unless $data_items[i].name.empty? end end end end
#============================================================================== # ** Window_MenuStatus #------------------------------------------------------------------------------ # This window displays party member status on the menu screen. #==============================================================================
class Window_MenuStatus < Window_Selectable #-------------------------------------------------------------------------- # * Alias Listings #-------------------------------------------------------------------------- alias dargor_large_party_initialize initialize #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize(x, y) @selection_rect = false @selection_y = 0 dargor_large_party_initialize(x, y) height = 416 extra_height = (96 * ($game_party.members.size-4)) if $game_party.members.size > 0 height += extra_height end self.contents = Bitmap.new(width - 32, height - 32) self.height = 416 refresh end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh self.contents.clear if @selection_rect color = Color.new(0,0,0,160) self.contents.fill_rect(2, @selection_y, contents.width-4, 92, color) end @item_max = $game_party.members.size for actor in $game_party.members draw_actor_face(actor, 2, actor.index * 96 + 2, 92) x = 104 y = actor.index * 96 + WLH / 2 draw_actor_name(actor, x, y) draw_actor_class(actor, x + 120, y) draw_actor_level(actor, x, y + WLH * 1) draw_actor_state(actor, x, y + WLH * 2) draw_actor_hp(actor, x + 120, y + WLH * 1) draw_actor_mp(actor, x + 120, y + WLH * 2) end end #-------------------------------------------------------------------------- # * Set Selection Rect #-------------------------------------------------------------------------- def set_selection_rect(index) @selection_rect = true @selection_y = index * 96 - WLH / 2 + 14 refresh end #-------------------------------------------------------------------------- # * Clear Selection Rect #-------------------------------------------------------------------------- def clear_selection_rect @selection_rect = false refresh end #-------------------------------------------------------------------------- # * Update cursor #-------------------------------------------------------------------------- alias dargor_large_party_update_cursor update_cursor def update_cursor #dargor_large_party_update_cursor if @index < 0 self.cursor_rect.empty return end # Get top row row = @index / @column_max if row < self.top_row self.top_row = row end # Reset Top Row if at bottom of list if row > self.top_row + (self.page_row_max - 1) self.top_row = row - (self.page_row_max - 1) end y = @index / @column_max * 96 - self.oy # Draw the cursor self.cursor_rect.set(0, y, contents.width, 96) end #-------------------------------------------------------------------------- # * Get Top Row #-------------------------------------------------------------------------- def top_row return self.oy / 96 end #-------------------------------------------------------------------------- # * Set Top Row # row : row shown on top #-------------------------------------------------------------------------- def top_row=(row) if row < 0 row = 0 end if row > row_max - 1 row = row_max - 1 end self.oy = row * 96 end #-------------------------------------------------------------------------- # * Get Number of Rows Displayable on 1 Page #-------------------------------------------------------------------------- def page_row_max return 4 end end
#============================================================================== # ** Window_BattleStatus #------------------------------------------------------------------------------ # This window displays the status of all party members on the battle screen. #==============================================================================
class Window_BattleStatus < Window_Selectable #-------------------------------------------------------------------------- # * Alias Listings #-------------------------------------------------------------------------- alias dargor_large_party_initialize initialize #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize dargor_large_party_initialize height = 128 + (24 * ($game_party.members.size-4)) self.contents = Bitmap.new(width - 32, height - 32) self.height = 128 refresh end #-------------------------------------------------------------------------- # * Update cursor #-------------------------------------------------------------------------- def update_cursor if @index < 0 self.cursor_rect.empty return end # Get top row row = @index / @column_max if row < self.top_row self.top_row = row end # Reset Top Row if at bottom of list if row > self.top_row + (self.page_row_max - 1) self.top_row = row - (self.page_row_max - 1) end y = @index / @column_max * 24 - self.oy # Draw the cursor self.cursor_rect.set(0, y, contents.width, 24) end #-------------------------------------------------------------------------- # * Get Top Row #-------------------------------------------------------------------------- def top_row return self.oy / 24 end #-------------------------------------------------------------------------- # * Set Top Row # row : row shown on top #-------------------------------------------------------------------------- def top_row=(row) if row < 0 row = 0 end if row > row_max - 1 row = row_max - 1 end self.oy = row * 24 end #-------------------------------------------------------------------------- # * Get Number of Rows Displayable on 1 Page #-------------------------------------------------------------------------- def page_row_max return 4 end end
#============================================================================== # ** Scene_Battle #------------------------------------------------------------------------------ # This class performs battle screen processing. #==============================================================================
class Scene_Battle #-------------------------------------------------------------------------- # * Update Party Command Selection #-------------------------------------------------------------------------- alias dargor_large_party_update_party_command_selection update_party_command_selection def update_party_command_selection if Input.trigger?(Input::L) @status_window.oy = [@status_window.oy -= 24, 0].max end if Input.trigger?(Input::R) @status_window.oy = [@status_window.oy += 24, ($game_party.members.size-4) * 24].min end dargor_large_party_update_party_command_selection end end
Script tersebut ditaruh di antara "scene_gameover" dan "main" NB: script tsb udah sy setting jd 6 anggota aktif | |
| | | fachiru Sherlockian
Posts : 634 Thanked : 6 Engine : RMXP Skill : Beginner Type : Writer
| Subyek: Re: [ASK] Nambahin Mini Game di Title 2011-04-30, 20:40 | |
| @ass akuades ya eh wait, cara nambahin minigame ke dalemnya gimana? @pram makasiih btw credit ke siapa ini? kalo mau jadi 8 bisa kan? | |
| | | pram12345 Newbie
Posts : 59 Thanked : 1 Engine : RMVX Skill : Very Beginner Type : Databaser
| Subyek: Re: [ASK] Nambahin Mini Game di Title 2011-04-30, 20:44 | |
| @Fachiru_ tunggu2 .... scriptnya mw dipake ke XP apa VX...? masalahnya... hehehee... ntu script buat VX ^^ .... | |
| | | fachiru Sherlockian
Posts : 634 Thanked : 6 Engine : RMXP Skill : Beginner Type : Writer
| Subyek: Re: [ASK] Nambahin Mini Game di Title 2011-04-30, 20:46 | |
| gyaaa buat XP makasih yaw | |
| | | nisamerica Living Skeleton
Posts : 1668 Thanked : 25 Engine : RMVX Skill : Very Beginner Type : Artist
Trophies
Awards:
| Subyek: Re: [ASK] Nambahin Mini Game di Title 2011-04-30, 21:30 | |
| Hmm.... Nambahin mini game ke title ya, ide yang menarik Tapi apa ga ganggu pas mo milih Command New Game Load dll ya? Kalo minigame pas lagi "Now Loading" sih sering, terutama game2 Dragon Ball Kurang tau script, palingan mah pake event aja Mo bikin minigame yang kek gimana dulu? | |
| | | fachiru Sherlockian
Posts : 634 Thanked : 6 Engine : RMXP Skill : Beginner Type : Writer
| Subyek: Re: [ASK] Nambahin Mini Game di Title 2011-04-30, 21:41 | |
| ya maksud wa nambahin di bawah LOAD itu minigame dragon ball yg pencet x sama analog doang ya kalo pake event gimana? ajarin banyak misal balapan, button smasher(liat di latest topic beberapa waktu lalu), atau yg sejenis gitu deh | |
| | | nisamerica Living Skeleton
Posts : 1668 Thanked : 25 Engine : RMVX Skill : Very Beginner Type : Artist
Trophies
Awards:
| Subyek: Re: [ASK] Nambahin Mini Game di Title 2011-04-30, 21:56 | |
| Pas waktu Load Game ato Now Loading screen neh? Beda lo Kalo pake event ya tinggal bikin aja kan? Kan beda2 per minigame Coba lu liat minigame yang gwa post di sini, gwa cuma post yang "SLASH!!", dan palingan yang Platformer evented sih Terus lu pelajari trid2 eventingnya Kuro Creator, soalnya ada beberapa sistem yang cocok tu dari bikinan dia, gwa juga dulu belajar dari situ kok | |
| | | fachiru Sherlockian
Posts : 634 Thanked : 6 Engine : RMXP Skill : Beginner Type : Writer
| Subyek: Re: [ASK] Nambahin Mini Game di Title 2011-04-30, 22:06 | |
| wait2, sid ngira kayak gimana? pas kita nunggu loading di loading screen gitu? bukan maksud aku, dibawah load ditambah menu lagi, "Minigame" gitu, terus kalo udah di ok atau di klik atau di enter atau dipencet keluar daftar mini game ' kira2 bisa kah? | |
| | | nisamerica Living Skeleton
Posts : 1668 Thanked : 25 Engine : RMVX Skill : Very Beginner Type : Artist
Trophies
Awards:
| Subyek: Re: [ASK] Nambahin Mini Game di Title 2011-04-30, 22:13 | |
| | |
| | | fachiru Sherlockian
Posts : 634 Thanked : 6 Engine : RMXP Skill : Beginner Type : Writer
| Subyek: Re: [ASK] Nambahin Mini Game di Title 2011-04-30, 22:43 | |
| @sid ok deh makasih yow tapi belum solve, harus bisa dulu | |
| | | TheoAllen ♫ RMID Rebel ♫
Posts : 4935 Thanked : 63
Trophies
Awards:
| Subyek: Re: [ASK] Nambahin Mini Game di Title 2011-05-01, 14:56 | |
| | |
| | | Sponsored content
| Subyek: Re: [ASK] Nambahin Mini Game di Title | |
| |
| | | | [ASK] Nambahin Mini Game di Title | |
|
Similar topics | |
|
| Permissions in this forum: | Anda tidak dapat menjawab topik
| |
| |
| Latest topics | » [Web Novel] Gloria Infidelis by LightNightKnight 2016-11-17, 21:27
» [Announcement] Forum baru untuk RMID by TheoAllen 2016-08-25, 16:39
» Where I'm Wrong ? by ReydVires 2016-07-24, 16:10
» flakeheartnet's Resources part III by flakeheartnet 2016-07-08, 14:30
» Keira's Art Warehouse by KeiraBlaze 2016-06-28, 19:27
» Theo Core Time System + Bingung by Lockin 2016-06-27, 16:24
» Error Script, Maybe ? by Lockin 2016-06-27, 16:20
» Nusaimoe @ RMID Lounge by Jihad Bagas 2016-06-21, 05:02
» Call Random Battle by Lockin 2016-06-15, 17:04
» Flakeheartnet Resources Part II [come back gift] by flakeheartnet 2016-06-07, 15:51
|
Statistics
|
Members: [ 4947 ]
Topics: [ 8258 ]
Posts: [ 112606 ]
Newest member: [ https://rmid.forumotion.net/u4968 ]
|
|
|
|