MR.GLITCH_KING
~ThaEmbacy~
- 143
- Posts
- 19
- Years
- Seen Jul 3, 2008
this is a code i made it's different than link2005's so im not stealing
most credits go to blizzy (this is just a edit of his menu script)4 use with starterkit
this one looks more like the menu blizzy made.this is my first script so hope it sounds clear enough to understand
make a new script under scene_skill and call it pokegear put this in it
open the starterkit's menu script and under
find where it says
replace the 2 lines under it with
it would look like this look at attachment (dont have enough posts to link to the pic yet)
most credits go to blizzy (this is just a edit of his menu script)4 use with starterkit
this one looks more like the menu blizzy made.this is my first script so hope it sounds clear enough to understand
make a new script under scene_skill and call it pokegear put this in it
Code:
#==============================================================================
# - Pokegear
#------------------------------------------------------------------------------
# By Glitchking Edited from Blizzy's menu script so give credit to him too!
#==============================================================================
class Scene_Pokegear
#--------------------------------------------------------------------------
# initialize
#--------------------------------------------------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
end
#--------------------------------------------------------------------------
# main
#--------------------------------------------------------------------------
def main
# コマンドウィンドウを作成
s1 = "Map"
s2 = "Radio"
s3 = "Exit"
commands = [s1,s2,s3]
@command_window = Window_Command.new(140, commands)
@command_window.index = @menu_index
@command_window.x = ($width - @command_window.width) - 8
@command_window.y = 8
@spriteset = Spriteset_Map.new
@info = Window_Help2.new
@info.height = $height / 4 + 16
@info.width = $width / 2 + 74
@info.x = 8
@info.y = $height - @info.height - 8
@info.z = 9999
@info2 = Window_Help2.new
@info2.height = $height / 4 + 16
@info2.width = $width / 2 + 74
@info2.x = 8
@info2.y = $height - @info.height - 8 + 32
@info2.z = 99999
@info2.opacity = 0
@info2.windowskin = @info.windowskin = RPG::Cache.windowskin("infosys")
Graphics.transition
loop do
Graphics.update
Input.update
update
if $scene != self
break
end
end
Graphics.freeze
@command_window.dispose
@spriteset.dispose
@info.dispose
@info2.dispose
end
#--------------------------------------------------------------------------
# update the scene
#--------------------------------------------------------------------------
def update
@command_window.update
@spriteset.update
@info.update
@info2.update
#update command window and the info if it's active
if @command_window.active
update_command
update_info
return
end
end
#--------------------------------------------------------------------------
# update the command window
#--------------------------------------------------------------------------
def update_command
if Input.trigger?(Input::B)
$game_system.se_play($data_system.cancel_se)
$scene = Scene_Map.new
return
end
if Input.trigger?(Input::C)
case @command_window.commands[@command_window.index]
when "Map"
print "not operating"
$game_system.se_play($data_system.decision_se)
when "Radio"
print "script obtainable at rmxp.net"
$game_system.se_play($data_system.decision_se)
when "Exit"
$game_system.se_play($data_system.decision_se)
$scene = Scene_Map.new
end
return
end
end
def update_info
case @command_window.commands[@command_window.index]
when "Map"
@info.set_text("A map of INSERT REGION NAME HERE")
@info2.set_text("shows visited places.")
when "Radio"
@info.set_text("Listen to music")
@info2.set_text("that is currently playing.")
when "Exit"
@info.set_text("Close this Menu window")
@info2.set_text("and return to the game.")
end
end
end
open the starterkit's menu script and under
Code:
#--------------------------------------------------------------------------
# update the command window
#--------------------------------------------------------------------------
Code:
when "Pokegear"
Code:
$game_system.se_play($data_system.decision_se)
$scene = Scene_Pokegear.new
Last edited: