PDA

View Full Version : StarterKit: Changing the font


»ØvëŕŢħëβë|σω«
December 30th, 2005, 03:24 PM
Modifing the StarterKitt Vol 1: Changing the font of your text.

To change the font of your text in the StarterKit(Made by Blizzy), simply go to the Script Editor, go to the "Main" scene right at the bottom and you'll see this code:

#================================================= =============================
# ■ Main
#------------------------------------------------------------------------------
#  各クラスの定義が終わった後、ここから実際の処理が始まります。
#================================================= =============================

begin
# Change the $fontface variable to change the font type
$fontface = "Pokemon RS"
# Change the $fontsize variable to change the font size
$fontsize = 24
# トランジション準備
Graphics.freeze
# シーンオブジェクト (タイトル画面) を作成
$scene = Scene_Title.new
# $scene が有効な限り main メソッドを呼び出す
while $scene != nil
$scene.main
end
# フェードアウト
Graphics.transition(20)
rescue Errno::ENOENT
# 例外 Errno::ENOENT を補足
# ファイルがオープンできなかった場合、メッセージを表示して終了する
filename = $!.message.sub("No such file or directory - ", "")
print("File #{filename} was not found.")
end

Edit the part in bold to the EXACT font name. To change the size of the text, change the number value "24", to whatever.

Vol 2: Add a Pokegear

agentalexandre12
February 1st, 2006, 07:28 AM
Well if OverTheBelow is not going to do the Pokegear volume i suppose I a shall.

This is very simple Firstly make a new scene called Scene_Pokegear and copy-paste this script in:

#================================================= =============================
# - Scene_Menu
#------------------------------------------------------------------------------
# rewritten so it'll work with pkmn
#================================================= =============================
class Scene_Pokegear
#--------------------------------------------------------------------------
# initialize
#--------------------------------------------------------------------------
def initialize(menu_index = 0)
@menu_index = menu_index
end
#--------------------------------------------------------------------------
# main
#--------------------------------------------------------------------------
def main
# コマンドウィンドウを作成
s1 = "Phone"
s2 = "Map"
s3 = "Radio"
s4 = "Exit"

commands = [s1,s2,s3,s4]

@command_window = Window_Command.new(100, commands)
@command_window.index = @menu_index
@command_window.x = ($width - @command_window.width) - 8
@command_window.y = 8

@playtime_window = Window_PlayTime.new
@playtime_window.x = 54
@playtime_window.y = 74

@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
@playtime_window.dispose
end
#--------------------------------------------------------------------------
# update the scene
#--------------------------------------------------------------------------
def update
@command_window.update
@info.update
@info2.update
@playtime_window.update
@spriteset.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 "Phone"
print "not avalliable in beta 0.2"
$game_system.se_play($data_system.decision_se)
$scene = Scene_Phone.new
when "Map"
print "not avalliable in beta 0.2"
$game_system.se_play($data_system.decision_se)
when "Radio"
print "not avalliable in beta 0.2"
$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 "Phone"
@info.set_text("A Cell Phone to contact")
@info2.set_text("Known Numbers. Not available")
when "Map"
@info.set_text("Look at a Map of the Region")
@info2.set_text("Not available")
when "Radio"
@info.set_text("Listen to Music.")
@info2.set_text("Not available")
when "Exit"
@info.set_text("Close this Menu window")
@info2.set_text("and return to the game.")
end
end
end

Then go to the Menu scene and go to where it says:

when "Pokegear"
print "not availlable in beta 0.2"
$game_system.se_play($data_system.decision_se)

And chang it to this:

when "Pokegear"
$game_system.se_play($data_system.decision_se)
$scene = Scene_Pokegear.new

And to show it in your menu just put this in a call script:

$pkmn.include_pokegear = true


And that's it. Pretty simle huh?

»ØvëŕŢħëβë|σω«
February 2nd, 2006, 04:22 AM
Cheers mate, I just completely forgot about this XD

angelic_diablo
February 3rd, 2006, 09:28 PM
where can i get this starter kit? i really want it??? please

»ØvëŕŢħëβë|σω«
February 4th, 2006, 09:24 AM
Either go to the game dev topic..or search for it in games.