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.

Share | 
 

 [Xp] Respawn dari Game Over

Topik sebelumnya Topik selanjutnya Go down 
[Xp] Respawn dari Game Over Empty2010-12-23, 23:08
Post[Xp] Respawn dari Game Over
#1
LiTTleDRAgo 
Senior
Senior
LiTTleDRAgo

Level 5
Posts : 712
Thanked : 27
Engine : RMXP
Skill : Skilled
Type : Scripter
Awards:
[Xp] Respawn dari Game Over Vide
Respawn dari Game Over
Versi: ??
Tipe: Entahlah


Pengenalan

Ini script asal-asalan yang gw kerjain buat ngisi waktu senggang


Fitur


  • Bikin player bisa balik ke tempat terakhir save kalau gameover



Screenshots

[Xp] Respawn dari Game Over 38653276


Demo

Ga 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


  • LiTTleDRAgo


Terakhir diubah oleh LiTTleDRAgo tanggal 2010-12-24, 11:20, total 1 kali diubah
[Xp] Respawn dari Game Over Empty2010-12-23, 23:12
PostRe: [Xp] Respawn dari Game Over
#2
F# 
!= Admin
Stupid Moderator
!= AdminStupid Moderator
F#

Kosong
Posts : 396
Thanked : 11
Engine : Multi-Engine User
Skill : Very Beginner
Type : Writer

[Xp] Respawn dari Game Over Vide
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 XD


EDIT:
dah lama ga PERTAMAX di tread bagus headbang
[Xp] Respawn dari Game Over Empty2010-12-23, 23:22
PostRe: [Xp] Respawn dari Game Over
#3
nasgor 
Senior
Senior
nasgor

Level 5
Posts : 711
Thanked : 3
Engine : RM2k3
Skill : Skilled
Type : Writer

[Xp] Respawn dari Game Over Vide
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
[Xp] Respawn dari Game Over Empty2010-12-23, 23:55
PostRe: [Xp] Respawn dari Game Over
#4
LiTTleDRAgo 
Senior
Senior
LiTTleDRAgo

Level 5
Posts : 712
Thanked : 27
Engine : RMXP
Skill : Skilled
Type : Scripter
Awards:
[Xp] Respawn dari Game Over Vide
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 :D
makanya gw bilang cuma skrip iseng2 :XD
[Xp] Respawn dari Game Over Empty2010-12-24, 00:27
PostRe: [Xp] Respawn dari Game Over
#5
yerry_great 
@> Moderator
@> Moderator
yerry_great

Kosong
Posts : 1251
Thanked : 15
Engine : Multi-Engine User
Skill : Very Beginner
Type : Jack of All Trades

[Xp] Respawn dari Game Over Vide
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 =)) )
[Xp] Respawn dari Game Over Empty2010-12-24, 06:04
PostRe: [Xp] Respawn dari Game Over
#6
rexoholic 
Advance
Advance
rexoholic

Level 5
Posts : 330
Thanked : 2
Engine : Multi-Engine User
Skill : Beginner
Type : Jack of All Trades

[Xp] Respawn dari Game Over Vide
kk bikin save pointnya gimana ?masih ga ngerti nih...
[Xp] Respawn dari Game Over Empty2010-12-24, 07:55
PostRe: [Xp] Respawn dari Game Over
#7
shikami 
Member 1000 Konsep
avatar

Level 5
Posts : 3744
Thanked : 31
Engine : Multi-Engine User
Skill : Beginner
Type : Developer
Awards:


[Xp] Respawn dari Game Over Vide
hmmm meski sederhana tapi emang tetep bagus sih

Quote :
kk bikin save pointnya gimana ?masih ga ngerti nih...
lewat event atuh kk..
[Xp] Respawn dari Game Over Empty2010-12-24, 08:07
PostRe: [Xp] Respawn dari Game Over
#8
amuroray 
Novice
Novice
amuroray

Level 5
Posts : 135
Thanked : 0
Engine : RMVX

[Xp] Respawn dari Game Over Vide
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!!
[Xp] Respawn dari Game Over Empty2010-12-24, 08:20
PostRe: [Xp] Respawn dari Game Over
#9
Yaden 
Legendary
Legendary
Yaden

Level 5
Posts : 2056
Thanked : 17
Engine : RMVX
Skill : Very Beginner
Type : Artist

[Xp] Respawn dari Game Over Vide
wah.. keren tuh kk.. :thumbup:
nambah lagi script kerennya..
kira2 bisa convert ke VX ga ya??
kalo ga mau mirip dengan yang event..
gimana kalo setelah respawn Exp. dikurangi?? :D
cuma usul..
[Xp] Respawn dari Game Over Empty2010-12-24, 08:27
PostRe: [Xp] Respawn dari Game Over
amuroray 
Novice
Novice
amuroray

Level 5
Posts : 135
Thanked : 0
Engine : RMVX

[Xp] Respawn dari Game Over Vide
@yaden
sulit
harus liat dulu siapa yg di team.. lalu dikurangi exp di team tsb
[Xp] Respawn dari Game Over Empty2010-12-24, 08:39
PostRe: [Xp] Respawn dari Game Over
Yaden 
Legendary
Legendary
Yaden

Level 5
Posts : 2056
Thanked : 17
Engine : RMVX
Skill : Very Beginner
Type : Artist

[Xp] Respawn dari Game Over Vide
@amuroray:
:hmm: ya sih, memang..
kalau party membernya gak jelas dan gonta-ganti..
tapi.. dicoba aja.. :D
mungkin si TS bisa..
dia hebat tuh.. :thumbup:
[Xp] Respawn dari Game Over Empty2010-12-24, 11:20
PostRe: [Xp] Respawn dari Game Over
LiTTleDRAgo 
Senior
Senior
LiTTleDRAgo

Level 5
Posts : 712
Thanked : 27
Engine : RMXP
Skill : Skilled
Type : Scripter
Awards:
[Xp] Respawn dari Game Over Vide
yaden_chandra wrote:

gimana kalo setelah respawn Exp. dikurangi?? :D
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
[Xp] Respawn dari Game Over Empty
PostRe: [Xp] Respawn dari Game Over
Sponsored content 




[Xp] Respawn dari Game Over Vide
 

[Xp] Respawn dari Game Over

Topik sebelumnya Topik selanjutnya Kembali Ke Atas 

Similar topics

+
Halaman 1 dari 1

Permissions in this forum:Anda tidak dapat menjawab topik
RPGMakerID :: Scripts & Event Systems :: RMXP Scripts-