RPGMakerID
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Komunitas RPG Maker Indonesia
 
IndeksIndeks  Latest imagesLatest images  PencarianPencarian  PendaftaranPendaftaran  Login  
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.

 

 Scene Gameover Skip

Go down 
+2
ashm
richter_h
6 posters
PengirimMessage
richter_h
Salto Master
Hancip RMID
richter_h


Kosong
Posts : 1705
Thanked : 30
Engine : Other
Skill : Skilled
Type : Developer

Trophies
Awards:

Scene Gameover Skip Empty
PostSubyek: Scene Gameover Skip   Scene Gameover Skip Empty2012-06-15, 23:10

Scene Gameover Skip
Versi: 1.0
Tipe: Custom Menu Enhancement


Pengenalan

Pertamanya dibuat untuk game Wandering Brawler dan Legend of Seven Swords
Add-on ini gunanya untuk ngasi pilihan 'Continue' atawa 'to Title' pas kalah battle.
Sisipkan skrip ini diantara Material dan Main, dan kayaknya ente udah tau cara install dan pakenya :v


Fitur


  • Ngga nampilin gambar Game Over, cuma pilihan 'Continue' dan 'To Title'



Screenshots

SS bisa bohong :v coba sendiri dan buktikan khasiatnya ;)


Demo

Ngga perlu kayaknya :v


Scripts
Code:
# ==============================================================================
# richter_h's Scene Gameover Skip; 'Choose your fate'-esque style!
# v1.0 - June 14, 2012
# Type: Snippet, Custom Menu Enhancement, Add-on
# Level: Easy
# ==============================================================================
# Firstly made for my game needs (Legend of Seven Swords and Wandering Brawler)
# This add-on lets you to not straightly go to Game Over screen when defeated
# in combat or by event, in example. Will take the player to choice just like
# in title screen instead.
# Simply put this below Material and above Main in Script Editor. Don't ask me
# how to put scripts on. Ask other for assistance.
# (implying whoever has a use of this knows how to put scripts in Script Editor)
#
# Credits if you wanna. Don't claim as your own.
# ==============================================================================
# Overwrites:
# - Scene_Battle: call_gameover
# - Scene_File: initialize, return_scene
# ==============================================================================

# ==============================================================================
# Menyentuh yang di bawah ini lebih bahaya dari tabung LPG 3 kg, lhoo! :hammer
# Jadi jauhi yang di bawah kecuali pernah latihan debus atawa ente emang
# berpengalaman ngeskrip... :Peace:
# ==============================================================================
class Scene_Gameover_Choice < Scene_Base
  def initialize(menu_index = 0)
    @menu_index = menu_index
  end
 
  def start
    super
    create_menu_background
    create_command_window
  end

  def post_start
    super
    open_command_window
  end

  def pre_terminate
    super
    close_command_window
  end

  def terminate
    super
    dispose_command_window
    dispose_menu_background
  end
 
  def update
    super
    update_menu_background
    @command_window.update
    if Input.trigger?(Input::C)
      case @command_window.index
      when 0
        to_load_screen
      when 1
        to_title
      end
    end
  end

  def update_menu_background
    super
    @menuback_sprite.tone.set(0, 0, 0, 128)
  end

  def create_command_window
    s1 = "Try again" # Vocab::continue
    s2 = "Give up" # Vocab::shutdown
    @command_window = Window_Command.new(172, [s1, s2])
    @command_window.x = (544 - @command_window.width) / 2
    @command_window.y = (416 - @command_window.height) / 2
    @command_window.index = @menu_index
    @command_window.openness = 0
  end

  def dispose_command_window
    @command_window.dispose
  end

  def open_command_window
    @command_window.open
    begin
      @command_window.update
      Graphics.update
    end until @command_window.openness == 255
  end

  def close_command_window
    @command_window.close
    begin
      @command_window.update
      Graphics.update
    end until @command_window.openness == 0
  end

 
  def to_load_screen
    Sound.play_decision
    $scene = Scene_File.new(false, false, false, true)
  end
 
  def to_title
    Sound.play_decision
    RPG::BGM.fade(800)
    RPG::BGS.fade(800)
    RPG::ME.fade(800)
    $scene = Scene_Title.new
    close_command_window
    Graphics.fadeout(60)
  end
end

class Scene_Battle < Scene_Base
  def call_gameover
    wait(150) #edit
    snapshot_for_background
    $scene = Scene_Gameover_Choice.new
    @message_window.clear
  end
end

class Scene_File < Scene_Base
  def initialize(saving, from_title, from_event, from_battle = false)
    @saving = saving
    @from_title = from_title
    @from_event = from_event
    @from_battle = from_battle
  end
 
  def return_scene
    if @from_title
      $scene = Scene_Title.new
    elsif @from_event
      $scene = Scene_Map.new
    elsif @from_battle
      $scene = Scene_Gameover_Choice.new(0)
    else
      $scene = Scene_Menu.new(4)
    end
  end
end



Credits


  • Credit ke ane, kalo ente mau cantumin. Ngga juga ngga apa apa asal jangan ngaku skrip ini bikinan ente :v
Kembali Ke Atas Go down
http://ryann.creatvwrkr.com
ashm
Veteran
Veteran
ashm


Level 5
Posts : 1131
Thanked : 8
Engine : RMVX Ace
Skill : Intermediate
Type : Event Designer

Trophies
Awards:

Scene Gameover Skip Empty
PostSubyek: Re: Scene Gameover Skip   Scene Gameover Skip Empty2012-06-15, 23:20

Pernah liat mirip punya sapaaa gitu.
Tapi ada transfer map nya.
Mungkin d tambah lagi fiturnya, jadi manggil common event (coz dari common event bisa merambah switch, var, branch), ato apalah...
Nice script bro =w=b
Kembali Ke Atas Go down
richter_h
Salto Master
Hancip RMID
richter_h


Kosong
Posts : 1705
Thanked : 30
Engine : Other
Skill : Skilled
Type : Developer

Trophies
Awards:

Scene Gameover Skip Empty
PostSubyek: Re: Scene Gameover Skip   Scene Gameover Skip Empty2012-06-15, 23:25

ashm wrote:
Pernah liat mirip punya sapaaa gitu.
Tapi ada transfer map nya.
Mungkin d tambah lagi fiturnya, jadi manggil common event (coz dari common event bisa merambah switch, var, branch), ato apalah...
Nice script bro =w=b

nah menyangkut transfer map :hmm:
sebenerne ane pengen bikin semacem 'Back to Latest Checkpoint' cuman masih bingung buat ngereset variable, switch, sama teman-temannya. Udah dicoba bikin tapi dapetnya error :hammer:
kalo ada waktu dan kalo misalnya ane butuh dan bisa implementasinya ane masukin di versi 2 skrip ini :ngacay2:

thanks btw :D
Kembali Ke Atas Go down
http://ryann.creatvwrkr.com
LowlingLife
Administrator
Administrator
LowlingLife


Kosong
Posts : 2000
Thanked : 25
Engine : Multi-Engine User

Trophies
Awards:

Scene Gameover Skip Empty
PostSubyek: Re: Scene Gameover Skip   Scene Gameover Skip Empty2012-06-15, 23:36

Wah.. Snippet ya om? Keren nih... Bisa dijadikan referensi.. Kenapa gak sekalian bikin script yang alter game-over?
Kembali Ke Atas Go down
richter_h
Salto Master
Hancip RMID
richter_h


Kosong
Posts : 1705
Thanked : 30
Engine : Other
Skill : Skilled
Type : Developer

Trophies
Awards:

Scene Gameover Skip Empty
PostSubyek: Re: Scene Gameover Skip   Scene Gameover Skip Empty2012-06-15, 23:51

LowlingLife wrote:
Wah.. Snippet ya om? Keren nih... Bisa dijadikan referensi.. Kenapa gak sekalian bikin script yang alter game-over?

altering gameover ya :hmm:
kalo bisa ngereset semua global variable ($game_switches, $game_variables, $game_states, dsb) baru bisa dikembangin jadi sistem yang bisa dikatakan punya 'checkpoint.'
soale ada masalah sama global variable2 itu :ngacay2:

emang dasarnya ini lebih enak disebut snippet :D
Kembali Ke Atas Go down
http://ryann.creatvwrkr.com
nisamerica
Living Skeleton
nisamerica


Kosong
Posts : 1668
Thanked : 25
Engine : RMVX
Skill : Very Beginner
Type : Artist

Trophies
Awards:


Scene Gameover Skip Empty
PostSubyek: Re: Scene Gameover Skip   Scene Gameover Skip Empty2012-06-16, 00:36

Latest check point itu sistemnya kaya gimana? Apa ga bisa pake sistem quick load aja? Kalo pake quick load kan variable switch dllnya jadi balik ke keadaan pas quick save, dan lagi rasanya udah ada script quick save/quick load jadi tinggal diulik dikid. :ngacay2: (sok tau :lol:)
Kembali Ke Atas Go down
yukitou
Newbie
Newbie
yukitou


Level 5
Posts : 61
Thanked : 1
Engine : Multi-Engine User
Skill : Beginner
Type : Artist

Scene Gameover Skip Empty
PostSubyek: Re: Scene Gameover Skip   Scene Gameover Skip Empty2012-06-16, 05:19

:hmm: susah juga yah kalo mesti ngereset ulang switch sama variablenya
istilahnya seperti bikin temporary automatic save point buat jadi checkpointnya (sama aja itu mah) jadi nge alter save data juga
Kembali Ke Atas Go down
Kuro Ethernite
The Creator
Kuro Ethernite


Level 5
Posts : 1631
Thanked : 24
Engine : RMVX Ace
Skill : Masterful
Type : Jack of All Trades

Trophies
Awards:

Scene Gameover Skip Empty
PostSubyek: Re: Scene Gameover Skip   Scene Gameover Skip Empty2012-06-16, 11:08

Checkpoint? :ngacay2:
Nge reset semua variable ke latest checkpoint? :ngacay2:
. . . .
Knapa ga buat smacam "Hidden Save File" doank? :hmm:
Bukan berarti file ny yg hidden.... Cuman klo mau manual save / load, file trsebut ga d liatin :ngacay2:
Mungkin dengan memberi nama lain pada file ny? :twisted:

Yep~ Somekind pf "temporary save point" ~ :hmm: Tpi klo d jadiin satu, ntar kalo pake file save yg lain malah tabrakan ama cekpoit ny :swt:
Jdi mending buat "Child Save Point" ~ :twisted:
Masing2 original save point punya 1 anak yg bernama Child Save Point ~ :ngacay2:
Itu yg jadi checkpoint untuk tiap data save an ~ :ngacay2:
Kembali Ke Atas Go down
Sponsored content





Scene Gameover Skip Empty
PostSubyek: Re: Scene Gameover Skip   Scene Gameover Skip Empty

Kembali Ke Atas Go down
 
Scene Gameover Skip
Kembali Ke Atas 
Halaman 1 dari 1
 Similar topics
-
» [Z-ON]GameOver Change
» [RGSS3] Theo Gameover Choice
» VX Title/gameover/atau apapun terserah
» [VX] Skip Battle Message
» [Ask]About Woratana Demo Skip Title

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