| [Xp] Respawn dari Game Over | |
|
+4yerry_great nasgor F# LiTTleDRAgo 8 posters |
Pengirim | Message |
---|
LiTTleDRAgo Senior
Posts : 712 Thanked : 27 Engine : RMXP Skill : Skilled Type : Scripter
Trophies
Awards: | Subyek: [Xp] Respawn dari Game Over 2010-12-23, 23:08 | |
| Respawn dari Game Over Versi: ?? Tipe: Entahlah PengenalanIni script asal-asalan yang gw kerjain buat ngisi waktu senggang Fitur
- Bikin player bisa balik ke tempat terakhir save kalau gameover
Screenshots DemoGa perlu lah Scripts - Code:
-
#============================================================================== # ** Respawn dari Game Over # Dibuat oleh LiTTleDRAgo #------------------------------------------------------------------------------ class Game_System attr_accessor :respawn_map_id attr_accessor :respawn_player_x attr_accessor :respawn_player_y alias_method :drago_init, :initialize def initialize drago_init @respawn_map_id = $data_system.start_map_id @respawn_player_x = $data_system.start_x @respawn_player_y = $data_system.start_y end end
class Scene_Gameover alias_method :drago_main, :main
def main @transferring = false s1 = "Kembali ke Save Point" s2 = "Kembali ke Title" s3 = "Keluar dari Game" @choice_window = Window_Command.new(392, [s1, s2, s3]) @choice_window.back_opacity = 160 @choice_window.x = 320 - @choice_window.width / 2 @choice_window.y = 308 drago_main end
def update @choice_window.update if Input.trigger?(Input::C) case @choice_window.index when 0 command_respawn when 1 command_title when 2 command_shutdown end end end
def command_respawn respawn_map_id = $game_system.respawn_map_id respawn_map_x = $game_system.respawn_player_x respawn_map_y = $game_system.respawn_player_y $game_system.se_play($data_system.decision_se) @choice_window.dispose Audio.me_stop for actor in $game_party.actors actor.hp = 1 @exp = actor.exp actor.exp = (@exp - 10000) actor.exp = 0 if actor.exp < 0 end $game_map.setup(respawn_map_id) $game_player.moveto(respawn_map_x, respawn_map_y) $game_player.refresh $game_map.autoplay $game_map.update $scene = Scene_Map.new end
def command_title $game_system.se_play($data_system.decision_se) Audio.me_fade(800) @choice_window.dispose $scene = Scene_Title.new end
def command_shutdown $game_system.se_play($data_system.decision_se) Audio.me_fade(800) $scene = nil end end
class Scene_Save < Scene_File alias_method :new_decision, :on_decision
def on_decision(filename) $game_system.respawn_map_id = $game_map.map_id $game_system.respawn_player_x = $game_player.x $game_system.respawn_player_y = $game_player.y new_decision(filename) end end Cukup taruh diatas main Credits
Terakhir diubah oleh LiTTleDRAgo tanggal 2010-12-24, 11:20, total 1 kali diubah | |
|
| |
F# != Admin
Stupid Moderator
Posts : 396 Thanked : 11 Engine : Multi-Engine User Skill : Very Beginner Type : Writer
| Subyek: Re: [Xp] Respawn dari Game Over 2010-12-23, 23:12 | |
| wah satu lagi script hebat nya ? bagus kakak script nya, wah ada pilihan nya semakin mak nyus tuh hehhe untuk rmvx bisa ga tuh ? maaf belom bisa nyobain, lagi ga ada RM soal nya di tunggu aja deh script script hebat nya EDIT: dah lama ga PERTAMAX di tread bagus | |
|
| |
nasgor Senior
Posts : 711 Thanked : 3 Engine : RM2k3 Skill : Skilled Type : Writer
| Subyek: Re: [Xp] Respawn dari Game Over 2010-12-23, 23:22 | |
| wedew.. gw malah kepikiran pake commont event *maaf maklum sy dr dunia jadul
trus pikiran ke 2 adalah tiap monster kasi event.. kl game over.. jalakan commont event tele back | |
|
| |
LiTTleDRAgo Senior
Posts : 712 Thanked : 27 Engine : RMXP Skill : Skilled Type : Scripter
Trophies
Awards: | Subyek: Re: [Xp] Respawn dari Game Over 2010-12-23, 23:55 | |
| - nasgor wrote:
- wedew.. gw malah kepikiran pake commont event
*maaf maklum sy dr dunia jadul
trus pikiran ke 2 adalah tiap monster kasi event.. kl game over.. jalakan commont event tele back emang sih pake eventing pun bisa makanya gw bilang cuma skrip iseng2 : | |
|
| |
yerry_great @> Moderator
Posts : 1251 Thanked : 15 Engine : Multi-Engine User Skill : Very Beginner Type : Jack of All Trades
| Subyek: Re: [Xp] Respawn dari Game Over 2010-12-24, 00:27 | |
| Oh macam check point gtu ya kk? Manteb... nih >< Ya walopun bsa lewat event tpi membntu kok bagi yg ga bsa bikin via event. haha Nice gan (saya punya kek bginian tapi event. RM2k3 pula. jadul bgt ) | |
|
| |
rexoholic Advance
Posts : 330 Thanked : 2 Engine : Multi-Engine User Skill : Beginner Type : Jack of All Trades
| Subyek: Re: [Xp] Respawn dari Game Over 2010-12-24, 06:04 | |
| kk bikin save pointnya gimana ?masih ga ngerti nih... | |
|
| |
shikami Member 1000 Konsep
Posts : 3744 Thanked : 31 Engine : Multi-Engine User Skill : Beginner Type : Developer
Trophies
Awards:
| Subyek: Re: [Xp] Respawn dari Game Over 2010-12-24, 07:55 | |
| hmmm meski sederhana tapi emang tetep bagus sih - Quote :
- kk bikin save pointnya gimana ?masih ga ngerti nih...
lewat event atuh kk.. | |
|
| |
amuroray Novice
Posts : 135 Thanked : 0 Engine : RMVX
| Subyek: Re: [Xp] Respawn dari Game Over 2010-12-24, 08:07 | |
| kurasa yg ini gk perlu - Code:
-
for actor in $game_party.actors actor.recover_all end kl di game online.. habis ko pasti balik ke awal dan nyawanya cuma 1 nambahin yg di atas - Code:
-
class Scene_Save < Scene_File alias_method :new_decision, :on_decision
def on_decision(filename) $game_system.respawn_map_id = $game_map.map_id $game_system.respawn_player_x = $game_player.x $game_system.respawn_player_y = $game_player.y new_decision(filename) end end ingat kodenya yg ini ya kalau mau lebih konyol *di usir bikin 1 lagi.. WAIT sapa tau lagi ada npc lewat trus km di revive!! | |
|
| |
Yaden Legendary
Posts : 2056 Thanked : 17 Engine : RMVX Skill : Very Beginner Type : Artist
| Subyek: Re: [Xp] Respawn dari Game Over 2010-12-24, 08:20 | |
| wah.. keren tuh kk.. nambah lagi script kerennya.. kira2 bisa convert ke VX ga ya?? kalo ga mau mirip dengan yang event.. gimana kalo setelah respawn Exp. dikurangi?? cuma usul.. | |
|
| |
amuroray Novice
Posts : 135 Thanked : 0 Engine : RMVX
| Subyek: Re: [Xp] Respawn dari Game Over 2010-12-24, 08:27 | |
| @yaden sulit harus liat dulu siapa yg di team.. lalu dikurangi exp di team tsb | |
|
| |
Yaden Legendary
Posts : 2056 Thanked : 17 Engine : RMVX Skill : Very Beginner Type : Artist
| Subyek: Re: [Xp] Respawn dari Game Over 2010-12-24, 08:39 | |
| @amuroray: ya sih, memang.. kalau party membernya gak jelas dan gonta-ganti.. tapi.. dicoba aja.. mungkin si TS bisa.. dia hebat tuh.. | |
|
| |
LiTTleDRAgo Senior
Posts : 712 Thanked : 27 Engine : RMXP Skill : Skilled Type : Scripter
Trophies
Awards: | Subyek: Re: [Xp] Respawn dari Game Over 2010-12-24, 11:20 | |
| - yaden_chandra wrote:
gimana kalo setelah respawn Exp. dikurangi?? cuma usul.. something like this? - Code:
-
for actor in $game_party.actors actor.hp = 1 @exp = actor.exp actor.exp = (@exp - 10000) actor.exp = 0 if actor.exp < 0 end
| |
|
| |
Sponsored content
| Subyek: Re: [Xp] Respawn dari Game Over | |
| |
|
| |
| [Xp] Respawn dari Game Over | |
|