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 | 
 

 Scene Gameover Skip

Topik sebelumnya Topik selanjutnya Go down 
Scene Gameover Skip Empty2012-06-15, 23:10
PostScene Gameover Skip
#1
richter_h 
Salto Master
Hancip RMID
richter_h

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

Scene Gameover Skip Vide
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
Scene Gameover Skip Empty2012-06-15, 23:20
PostRe: Scene Gameover Skip
#2
ashm 
Veteran
Veteran
ashm

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

Scene Gameover Skip Vide
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
Scene Gameover Skip Empty2012-06-15, 23:25
PostRe: Scene Gameover Skip
#3
richter_h 
Salto Master
Hancip RMID
richter_h

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

Scene Gameover Skip Vide
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
Scene Gameover Skip Empty2012-06-15, 23:36
PostRe: Scene Gameover Skip
#4
LowlingLife 
Administrator
Administrator
LowlingLife

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

Scene Gameover Skip Vide
Wah.. Snippet ya om? Keren nih... Bisa dijadikan referensi.. Kenapa gak sekalian bikin script yang alter game-over?
Scene Gameover Skip Empty2012-06-15, 23:51
PostRe: Scene Gameover Skip
#5
richter_h 
Salto Master
Hancip RMID
richter_h

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

Scene Gameover Skip Vide
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
Scene Gameover Skip Empty2012-06-16, 00:36
PostRe: Scene Gameover Skip
#6
nisamerica 
Living Skeleton
nisamerica

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


Scene Gameover Skip Vide
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:)
Scene Gameover Skip Empty2012-06-16, 05:19
PostRe: Scene Gameover Skip
#7
yukitou 
Newbie
Newbie
yukitou

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

Scene Gameover Skip Vide
: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
Scene Gameover Skip Empty2012-06-16, 11:08
PostRe: Scene Gameover Skip
#8
Kuro Ethernite 
The Creator
Kuro Ethernite

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

Scene Gameover Skip Vide
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:
Scene Gameover Skip Empty
PostRe: Scene Gameover Skip
#9
Sponsored content 




Scene Gameover Skip Vide
 

Scene Gameover Skip

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 :: RMVX Scripts-