#===============================================================================
# Simple Menu
# Sumber Wahyu Agus
#===============================================================================
# Fitur
# > Menampilkan Items Save dan End Game
# > Merubah tempat window menu dari pojok kiri atas menjadi di tengah
#===============================================================================
# Taruh Script diatas Main & dibawah Materials
#===============================================================================
class Window_MenuStatus < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
# x : window X coordinate
# y : window Y coordinate
#--------------------------------------------------------------------------
def initialize(x, y)
super(x, y, 160, 0)
refresh
self.active = false
self.index = -1
end
def refresh
self.contents.clear
end
end
class Scene_Menu < Scene_Base
#--------------------------------------------------------------------------
# * Create Command Window
#--------------------------------------------------------------------------
def create_command_window
s1 = Vocab::item
s2 = Vocab::save
s3 = Vocab::game_end
@command_window = Window_Command.new(160, [s1, s2, s3])
for i in 0...4
@command_window.draw_item(i)
@command_window.x = (544 - @command_window.width) / 2
@command_window.y = (416 - @command_window.height) / 2
end
end
#--------------------------------------------------------------------------
# * Update Command Selection
#--------------------------------------------------------------------------
def update_command_selection
if Input.trigger?(Input::B)
Sound.play_cancel
$scene = Scene_Map.new
elsif Input.trigger?(Input::C)
if $game_party.members.size == 0 and @command_window.index < 2
Sound.play_buzzer
return
elsif $game_system.save_disabled and @command_window.index == 2
Sound.play_buzzer
return
end
Sound.play_decision
case @command_window.index
when 0 # Item
$scene = Scene_Item.new
when 1 # Save
$scene = Scene_File.new(true, false, false)
when 2 # End Game
$scene = Scene_End.new
end
end
end
def update_actor_selection
if Input.trigger?(Input::B)
Sound.play_cancel
end_actor_selection
elsif Input.trigger?(Input::C)
$game_party.last_actor_index = @status_window.index
Sound.play_decision
case @command_window.index
when 1 # Save
$scene = Scene_File.new(true, false, false)
end
end
end
end
====================================================================
Hilangkan tanda " = " ( tanda di bawah end ) Agar scriptnya berfungsi.
RAW PASTE :
#===============================================================================
# Simple Menu V.1.1
# By Aguristic
#===============================================================================
# New Fitur
# > Menghilangkan actor,hp,mp,lv
# > Merubah tempat window menu dari pojok kiri atas menjadi di tengah
#===============================================================================
# Cara memakai Script ini yaitu tinggal Memasang diatas Main & dibawah Materials
#===============================================================================
class Window_MenuStatus < Window_Selectable
#--------------------------------------------------------------------------
# * Object Initialization
# x : window X coordinate
# y : window Y coordinate
#--------------------------------------------------------------------------
def initialize(x, y)
super(x, y, 160, 0)
refresh
self.active = false
self.index = -1
end
def refresh
self.contents.clear
end
end
class Scene_Menu < Scene_Base
#--------------------------------------------------------------------------
# * Create Command Window
#--------------------------------------------------------------------------
def create_command_window
s1 = Vocab::item
s2 = Vocab::save
s3 = Vocab::game_end
@command_window = Window_Command.new(160, [s1, s2, s3])
for i in 0...4
@command_window.draw_item(i)
@command_window.x = (544 - @command_window.width) / 2
@command_window.y = (416 - @command_window.height) / 2
end
end
#--------------------------------------------------------------------------
# * Update Command Selection
#--------------------------------------------------------------------------
def update_command_selection
if Input.trigger?(Input::B)
Sound.play_cancel
$scene = Scene_Map.new
elsif Input.trigger?(Input::C)
if $game_party.members.size == 0 and @command_window.index < 2
Sound.play_buzzer
return
elsif $game_system.save_disabled and @command_window.index == 2
Sound.play_buzzer
return
end
Sound.play_decision
case @command_window.index
when 0 # Item
$scene = Scene_Item.new
when 1 # Save
$scene = Scene_File.new(true, false, false)
when 2 # End Game
$scene = Scene_End.new
end
end
end
def update_actor_selection
if Input.trigger?(Input::B)
Sound.play_cancel
end_actor_selection
elsif Input.trigger?(Input::C)
$game_party.last_actor_index = @status_window.index
Sound.play_decision
case @command_window.index
when 1 # Save
$scene = Scene_File.new(true, false, false)
end
end
end
end
====================================================================
Hilangkan lagi tanda " = "
Mungkin segitu dulu postingannya dan maaf jika ada kata - kata yang tidak berkenan bagi anda
mohon di maafkan. Tunggu postingan baru aku ya ?
Tidak ada komentar:
Posting Komentar