載入存檔案頁只有隊員和遊戲時間, 很難分出它們的進度, 新手悄悄試驗, 金錢只可顯示0G(如附圖), 職業更毫無頭緒的說... 請問要怎樣加上金錢及主角職業? ...
TimePrologue 发表于 2014-5-8 13:51 感謝,遊戲內儲存頁成功顯示 但關掉再繼續遊戲那裏金錢只顯示0G,
class Game_System attr_accessor :save_gold attr_accessor :save_leaderend class Window_SaveFile < Window_Base def draw_party_characters(x, y) for i in [email]0...@characters.size[/email] name = @characters[i][0] index = @characters[i][1] draw_character(name, index, x + i * 48, y) end draw_actor_class(@game_system.save_leader, 470, 0) draw_currency_value(@game_system.save_gold, 0, 0, 200) endend class Scene_File < Scene_Base def do_save $game_system.save_gold = $game_party.gold $game_system.save_leader = $game_party.members[0] file = File.open(@savefile_windows[@index].filename, "wb") write_save_data(file) file.close return_scene endend
class Game_System attr_accessor :save_gold attr_accessor :save_leader end class Window_SaveFile < Window_Base def draw_party_characters(x, y) for i in [email]0...@characters.size[/email] name = @characters[i][0] index = @characters[i][1] draw_character(name, index, x + i * 48, y) end draw_actor_class(@game_system.save_leader, 470, 0) draw_currency_value(@game_system.save_gold, 0, 0, 200) end end class Scene_File < Scene_Base def do_save $game_system.save_gold = $game_party.gold $game_system.save_leader = $game_party.members[0] file = File.open(@savefile_windows[@index].filename, "wb") write_save_data(file) file.close return_scene end end
查看全部评分
奇奇 发表于 2014-5-8 14:51 你不点【回复】我根本收不到提醒,回复自己没有用的。 class Game_System attr_accessor :save_gold
1.PNG (48.29 KB, 下载次数: 30)
下载附件 保存到相册
2014-5-8 13:13 上传
class Window_SaveFile < Window_Base def draw_party_characters(x, y) for i in [email]0...@characters.size[/email] name = @characters[i][0] index = @characters[i][1] draw_character(name, index, x + i * 48, y) end draw_actor_class($game_party.members[0], 470, 0) draw_currency_value($game_party.gold, 0, 0, 200) endend
class Window_SaveFile < Window_Base def draw_party_characters(x, y) for i in [email]0...@characters.size[/email] name = @characters[i][0] index = @characters[i][1] draw_character(name, index, x + i * 48, y) end draw_actor_class($game_party.members[0], 470, 0) draw_currency_value($game_party.gold, 0, 0, 200) end end
折叠内容标题(非必须)
折叠内容
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-11-15 14:25
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.