01-13-2005, 01:00 PM
This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.
No support is given. If you are the owner of the thread, please contact administration.
Alright guys I've seen many people trying to figure it out and i found the solution
here we go,
- just replace the entire "MAIN" in the script editor with this
Code:
#==============================================================================
# –� Main
#------------------------------------------------------------------------------
#  �クラス�定義�終���後����ら実際�処� �始�� ��。
#==============================================================================
begin
# This variable determines the default font type
$defaultfonttype = "Arial"
# This variable determines the default font size
$defaultfontsize = 24
# トランジション準備
Graphics.freeze
# シーンオブジェクト (タイトル画�) を作�
#loading stuffs---------------------------
# データベースをãƒãƒ¼ãƒ‰
$data_actors = load_data("Data/Actors.rxdata")
$data_classes = load_data("Data/Classes.rxdata")
$data_skills = load_data("Data/Skills.rxdata")
$data_items = load_data("Data/Items.rxdata")
$data_weapons = load_data("Data/Weapons.rxdata")
$data_armors = load_data("Data/Armors.rxdata")
$data_enemies = load_data("Data/Enemies.rxdata")
$data_troops = load_data("Data/Troops.rxdata")
$data_states = load_data("Data/States.rxdata")
$data_animations = load_data("Data/Animations.rxdata")
$data_tilesets = load_data("Data/Tilesets.rxdata")
$data_common_events = load_data("Data/CommonEvents.rxdata")
$data_system = load_data("Data/System.rxdata")
# シス� � オブジェクトを作�
$game_system = Game_System.new
# タイトルグラフィックを作�
@sprite = Sprite.new
#end of loading stuffs-----------------------------------
$game_temp = Game_Temp.new
$game_system = Game_System.new
$game_switches = Game_Switches.new
$game_variables = Game_Variables.new
$game_self_switches = Game_SelfSwitches.new
$game_screen = Game_Screen.new
$game_actors = Game_Actors.new
$game_party = Game_Party.new
$game_troop = Game_Troop.new
$game_map = Game_Map.new
$game_player = Game_Player.new
# �期パー� ィをセットアップ
$game_party.setup_starting_members
# �期�置�マップをセットアップ
$game_map.setup($data_system.start_map_id)
# プレイヤーを�期�置�移動
$game_player.moveto($data_system.start_x, $data_system.start_y)
# プレイヤーをリフレッシュ
$game_player.refresh
# マップã?«è¨å®šã?•ã‚Œã?¦ã?„ã‚‹ BGM ã?¨ BGS ã?®è‡ªå‹•åˆ‡ã‚� 替ã?ˆã‚’実行
$game_map.autoplay
# マップを更新 (並列イベント実行)
$game_map.update
#マップ画��切� 替�
$scene = Scene_Map.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} not found.")
end
#====================================================