| [Solved] Script Minigame | |
|
|
Pengirim | Message |
---|
fachiru Sherlockian
Posts : 634 Thanked : 6 Engine : RMXP Skill : Beginner Type : Writer
| Subyek: [Solved] Script Minigame 2011-05-02, 17:26 | |
| hallo
umm kaka, pengen request dund?
req script yg bisa nambahin minigame di menu pas title
jadi nanti kalo kita pengen nambahin, di panggil pake event atau pake cara lain
note: minigame yg dipake dibuat dengan event
atau kalo uda ada, link pls
thanks SOLVED scriptnya? neh: - Spoiler:
(tips: kalo nyari pencet ctrl+f) > buka script, scene_title, cari kode ini (biasanya line 37) - Code:
-
s1 = "New Game" s2 = "Continue" s3 = "Shutdown" @command_window = Window_Command.new(192, [s1, s2, s3]) @command_window.back_opacity = 160 @command_window.x = 320 - @command_window.width / 2 @command_window.y = 288 ganti sama - Code:
-
s1 = "New Game" s2 = "Continue" s3 = "Minigame" s4 = "Shutdown" @command_window = Window_Command.new(192, [s1, s2, s3,s4]) @command_window.back_opacity = 160 @command_window.x = 320 - @command_window.width / 2 @command_window.y = 288 > cari kode ini (line 92) - Code:
-
def update # Update command window @command_window.update # If C button was pressed if Input.trigger?(Input::C) # Branch by command window cursor position case @command_window.index when 0 # New game command_new_game when 1 # Continue command_continue when 2 # Shutdown command_shutdown end end end ganti sama - Code:
-
def update # Update command window @command_window.update # If C button was pressed if Input.trigger?(Input::C) # Branch by command window cursor position case @command_window.index when 0 # New game command_new_game when 1 # Continue command_continue when 2 # Minigame command_minigame when 3 # Shutdown command_shutdown end end end > cari ini - Code:
-
$game_player.moveto($data_system.start_x, $data_system.start_y) ganti sama - Code:
-
$game_player.moveto(0,0) > terakhir, tambah ini diatas main - Code:
-
def command_minigame # Play decision SE $game_system.se_play($data_system.decision_se) # Stop BGM Audio.bgm_stop # Reset frame count for measuring play time Graphics.frame_count = 0 # Make each type of game object $game_temp = Game_Temp.new $game_system = Game_System.new $game_switches = Game_Switches.new $game_variables = Game_Variables.new $game_self_switches = Game_SelfSwitches.new $game_screen = Game_Screen.new $game_actors = Game_Actors.new $game_party = Game_Party.new $game_troop = Game_Troop.new $game_map = Game_Map.new $game_player = Game_Player.new # Set up initial party $game_party.setup_starting_members # Set up initial map position $game_map.setup(id minimap gamemu (cek di map properties)) # Move player to initial position $game_player.moveto($data_system.start_x, $data_system.start_y) # Refresh player $game_player.refresh # Run automatic change for BGM and BGS set with map $game_map.autoplay # Update map (run parallel process event) $game_map.update $scene = Scene_Map.new end selesai
CREDITS TO: Feriell'a & nisamerica TS comment: Oiya, sorry kalo yg ketipu judul ya jadi script ini buat nambahin menu di title, terus kita di transfer ke map yg kamu mau bisa dipake buat yg lain kok
Terakhir diubah oleh fachiru tanggal 2011-05-03, 23:08, total 2 kali diubah | |
|
| |
Feriell'a Novice
Posts : 123 Thanked : 0 Engine : RMVX Skill : Intermediate Type : Scripter
| Subyek: Re: [Solved] Script Minigame 2011-05-02, 23:51 | |
| ummmm... ini maksudnya mau nambahin command baru pada Scene_Title yaw... yaitu command Minigame... langkah 1lihat di script Scene_Title bagian ini (line 37): - Spoiler:
s1 = "New Game" s2 = "Continue" s3 = "Shutdown" @command_window = Window_Command.new(192, [s1, s2, s3]) @command_window.back_opacity = 160 @command_window.x = 320 - @command_window.width / 2 @command_window.y = 288
tinggal diganti aja: - Spoiler:
s1 = "New Game" s2 = "Continue" s3 = "MInigame" s4 = "Shutdown" @command_window = Window_Command.new(192, [s1, s2, s3,s4]) @command_window.back_opacity = 160 @command_window.x = 320 - @command_window.width / 2 @command_window.y = 288
langkah 2lihat di script Scene_Title bagian ini (line 91): - Spoiler:
def update # Update command window @command_window.update # If C button was pressed if Input.trigger?(Input::C) # Branch by command window cursor position case @command_window.index when 0 # New game command_new_game when 1 # Continue command_continue when 2 # Shutdown command_shutdown end end end
diganti : - Spoiler:
def update # Update command window @command_window.update # If C button was pressed if Input.trigger?(Input::C) # Branch by command window cursor position case @command_window.index when 0 # New game command_new_game when 1 # Continue command_continue when 2 # Minigame command_minigame when 3 # Shutdown command_shutdown end end end
langkah 3terakhir...tambahin definisi baru ini : - Spoiler:
def command_minigame # Play decision SE $game_system.se_play($data_system.decision_se) # Stop BGM Audio.bgm_stop # Reset frame count for measuring play time Graphics.frame_count = 0 # Make each type of game object $game_temp = Game_Temp.new $game_system = Game_System.new $game_switches = Game_Switches.new $game_variables = Game_Variables.new $game_self_switches = Game_SelfSwitches.new $game_screen = Game_Screen.new $game_actors = Game_Actors.new $game_party = Game_Party.new $game_troop = Game_Troop.new $game_map = Game_Map.new $game_player = Game_Player.new # Set up initial party $game_party.setup_starting_members # Set up initial map position $game_map.setup($data_system.start_map_id) # Move player to initial position $game_player.moveto($data_system.start_x, $data_system.start_y) # Refresh player $game_player.refresh # Run automatic change for BGM and BGS set with map $game_map.autoplay # Update map (run parallel process event) $game_map.update # Switch to minigame $scene = Scene_???.new >>> nama scene minigame nya end
thanks ^^
Terakhir diubah oleh Feriell'a tanggal 2011-05-02, 23:57, total 1 kali diubah | |
|
| |
wltr3565 Senior
Posts : 870 Thanked : 28 Engine : RMVX Skill : Skilled Type : Scripter
Trophies
Awards:
| Subyek: Re: [Solved] Script Minigame 2011-05-02, 23:56 | |
| Yang jadi pertanyaannya itu bahwa minigamenya berupa event atau script? Pengaktifan minigame yang berupa event dan script beda jauh lho. | |
|
| |
fachiru Sherlockian
Posts : 634 Thanked : 6 Engine : RMXP Skill : Beginner Type : Writer
| Subyek: Re: [Solved] Script Minigame 2011-05-03, 00:00 | |
| @feriel waw makasih, aku coba dolo @wltr hee? oh ya? baiklah biar feriel sendiri yg berbicara | |
|
| |
Feriell'a Novice
Posts : 123 Thanked : 0 Engine : RMVX Skill : Intermediate Type : Scripter
| Subyek: Re: [Solved] Script Minigame 2011-05-03, 00:08 | |
| hahahaha... aku aja bingung...
sebenarnya klo mau pake event itu minigame nya... lebih enak..ubah keseluruhan command di TITLE jadi event semua... mulai dari newgame, continue, dan shutdown..
cara nya ya... lagi2 maen event... jadi Title nya ga pake script lagi...
| |
|
| |
fachiru Sherlockian
Posts : 634 Thanked : 6 Engine : RMXP Skill : Beginner Type : Writer
| Subyek: Re: [Solved] Script Minigame 2011-05-03, 00:18 | |
| hoo begitu... ok deh makasih yaw ayoo adakah yg bisa bantu? | |
|
| |
hart Senior
Posts : 805 Thanked : 38 Engine : Other Skill : Very Beginner Type : Developer
| Subyek: Re: [Solved] Script Minigame 2011-05-03, 08:20 | |
| wah, sayang XP. Saya gk punya RMXP jadi gk bisa bantu, sebagai gantinya ane bantu ngangkat trid ini aja deh | |
|
| |
nisamerica Living Skeleton
Posts : 1668 Thanked : 25 Engine : RMVX Skill : Very Beginner Type : Artist
Trophies
Awards:
| Subyek: Re: [Solved] Script Minigame 2011-05-03, 08:54 | |
| What? Bantu? Itu kan tinggal make punya si Feriel trus masukin minigameny aja kan? Hha Nah masalahny, lu mau minigamenya event ato script? Dan maunya game yg gimana? Kalo kata gwa minigame enakan event, soalnya lebih bebas, sedangkan kalo script jarang. Ampe sekarang gwa belom pernah liat script minigame | |
|
| |
hart Senior
Posts : 805 Thanked : 38 Engine : Other Skill : Very Beginner Type : Developer
| Subyek: Re: [Solved] Script Minigame 2011-05-03, 09:16 | |
| @om merica: wah sedih sekali hatiku mendengar kata2mu.. bagai ditusuk 7 pedang, menembus hatiku padahal saya udah beberapa kali ngepost script minigame, tapi anda bahkan tidak pernah lihat script minigame... BTT: walaupun minigamenya pake script, kan biasanya tetap dipanggil via event, jadi sama aja namanya tetap minigame pake event. | |
|
| |
nisamerica Living Skeleton
Posts : 1668 Thanked : 25 Engine : RMVX Skill : Very Beginner Type : Artist
Trophies
Awards:
| Subyek: Re: [Solved] Script Minigame 2011-05-03, 10:40 | |
| @hart Ogh iya lupa Maap2 Yang gwa pernah coba dari lu pake engine GM dll sih, bukan script RM Tapi iya juga, perasaan pernah liat script minigame kartu Sori2 hha Sori OOT btw | |
|
| |
fachiru Sherlockian
Posts : 634 Thanked : 6 Engine : RMXP Skill : Beginner Type : Writer
| Subyek: Re: [Solved] Script Minigame 2011-05-03, 14:41 | |
| owh ada yg script?(minigame punyanya hart) (lol baru tau ) tapi aku kalo minigamenya event gimana? bisa kah dipanggil pake script? makasih | |
|
| |
Kuro Ethernite The Creator
Posts : 1631 Thanked : 24 Engine : RMVX Ace Skill : Masterful Type : Jack of All Trades
Trophies
Awards:
| Subyek: Re: [Solved] Script Minigame 2011-05-03, 15:56 | |
| minigame ny event, ya d panggil ny dengan mentransfer player ke map di mana event itu di eksekusi dengan autorun o yah.... cek minigames pack q ~ >>> https://rmid.forumotion.net/t1091p30-vx-minigames-minigames-packudah rada ga prnah d urus lagi yep, rencana ny q mau compile smua jenis minigame prom RMID d project itu musti konsisten, mauny pake script apa event ?? EDIT : Owh.... right..... XP ?? then cuma bisa contek event2 minigames ny EDIT MORE : kbnyakan minigameny ada pake script VX ga tau deh.... MORE n MORE EDIT : really.... ini kan trit RGSS request | |
|
| |
fachiru Sherlockian
Posts : 634 Thanked : 6 Engine : RMXP Skill : Beginner Type : Writer
| Subyek: Re: [Solved] Script Minigame 2011-05-03, 16:06 | |
| @kuro makasih, btw kata2mu yg "mentransfer player ke map di mana event itu di eksekusi dengan autorun" aku dapet ide cuma aku butuh event(atau script) yg bisa nambahin meu di cms, nanti ditransfer ke map gitu adakah | |
|
| |
nisamerica Living Skeleton
Posts : 1668 Thanked : 25 Engine : RMVX Skill : Very Beginner Type : Artist
Trophies
Awards:
| Subyek: Re: [Solved] Script Minigame 2011-05-03, 16:44 | |
| @Fach Quote dari Feriel - Feriell'a wrote:
- ummmm...
ini maksudnya mau nambahin command baru pada Scene_Title yaw... yaitu command Minigame...
langkah 1
lihat di script Scene_Title bagian ini (line 37):
- Spoiler:
s1 = "New Game" s2 = "Continue" s3 = "Shutdown" @command_window = Window_Command.new(192, [s1, s2, s3]) @command_window.back_opacity = 160 @command_window.x = 320 - @command_window.width / 2 @command_window.y = 288
tinggal diganti aja:
- Spoiler:
s1 = "New Game" s2 = "Continue" s3 = "MInigame" s4 = "Shutdown" @command_window = Window_Command.new(192, [s1, s2, s3,s4]) @command_window.back_opacity = 160 @command_window.x = 320 - @command_window.width / 2 @command_window.y = 288
langkah 2
lihat di script Scene_Title bagian ini (line 91):
- Spoiler:
def update # Update command window @command_window.update # If C button was pressed if Input.trigger?(Input::C) # Branch by command window cursor position case @command_window.index when 0 # New game command_new_game when 1 # Continue command_continue when 2 # Shutdown command_shutdown end end end
diganti :
- Spoiler:
def update # Update command window @command_window.update # If C button was pressed if Input.trigger?(Input::C) # Branch by command window cursor position case @command_window.index when 0 # New game command_new_game when 1 # Continue command_continue when 2 # Minigame command_minigame when 3 # Shutdown command_shutdown end end end
langkah 3
terakhir...tambahin definisi baru ini :
- Spoiler:
def command_minigame # Play decision SE $game_system.se_play($data_system.decision_se) # Stop BGM Audio.bgm_stop # Reset frame count for measuring play time Graphics.frame_count = 0 # Make each type of game object $game_temp = Game_Temp.new $game_system = Game_System.new $game_switches = Game_Switches.new $game_variables = Game_Variables.new $game_self_switches = Game_SelfSwitches.new $game_screen = Game_Screen.new $game_actors = Game_Actors.new $game_party = Game_Party.new $game_troop = Game_Troop.new $game_map = Game_Map.new $game_player = Game_Player.new # Set up initial party $game_party.setup_starting_members # Set up initial map position $game_map.setup($data_system.start_map_id) # Move player to initial position $game_player.moveto($data_system.start_x, $data_system.start_y) # Refresh player $game_player.refresh # Run automatic change for BGM and BGS set with map $game_map.autoplay # Update map (run parallel process event) $game_map.update # Switch to minigame $scene = Scene_???.new >>> nama scene minigame nya end
thanks ^^ Paling yang scene minigame ga perlu ditulis, bagian yang di-bold delete aja, terus isi posisi X dan Y nya, juga map ID nya | |
|
| |
Kuro Ethernite The Creator
Posts : 1631 Thanked : 24 Engine : RMVX Ace Skill : Masterful Type : Jack of All Trades
Trophies
Awards:
| Subyek: Re: [Solved] Script Minigame 2011-05-03, 16:55 | |
| Ah ~ great ~ .... yep.... yg d atas tinggal langsung edit script ~ but, mending buat title screen pake event klo mau full customization event title screen by Rekka (RMXP) ~ >>> https://rmid.forumotion.net/t1529-rekka-cts <<< EDIT : content removed | |
|
| |
nisamerica Living Skeleton
Posts : 1668 Thanked : 25 Engine : RMVX Skill : Very Beginner Type : Artist
Trophies
Awards:
| Subyek: Re: [Solved] Script Minigame 2011-05-03, 17:06 | |
| Eh tunggu, gwa ada yang lupa di bawah game_map.update, tambahin ini: $game_temp.player_transferring = true $game_temp.player_new_map_id = $game_temp.player_new_x = $game_temp.player_new_y = $scene = Scene_Map.new Sebetulnya ini buat transfer player EDIT!! EDIT!! Pake ini aja ganti $game_map.setup($data_system.start_map_id) jadi $game_map.setup(ID MAP MINIGAMEMU) Cek Map ID lu di map properties dan $game_player.moveto($data_system.start_x, $data_system.start_y) jadi $game_player.moveto(X, Y) dengan X dan Y adalah posisi koordinat yang diharapkan | |
|
| |
fachiru Sherlockian
Posts : 634 Thanked : 6 Engine : RMXP Skill : Beginner Type : Writer
| Subyek: Re: [Solved] Script Minigame 2011-05-03, 22:49 | |
| @kuro makasih udah bantu aku tadi nyari2 tapi kebanyakan removed @sid & feriell whoaaaaa, makasih feriel, sid peluk cium diapain aja kya nah, kalo ada yg baca ini terus bingung, aku satuin aja scriptnya di 1st post SOLVED, silakan lock trit ini mod | |
|
| |
Sponsored content
| Subyek: Re: [Solved] Script Minigame | |
| |
|
| |
| [Solved] Script Minigame | |
|