赞 | 0 |
VIP | 5 |
好人卡 | 3 |
积分 | 1 |
经验 | 6913 |
最后登录 | 2017-8-20 |
在线时间 | 108 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 108 小时
- 注册时间
- 2014-5-1
- 帖子
- 220
|
TimePrologue 发表于 2014-5-8 13:51
感謝,遊戲內儲存頁成功顯示
但關掉再繼續遊戲那裏金錢只顯示0G,
你不点【回复】我根本收不到提醒,回复自己没有用的。
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
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
|
评分
-
查看全部评分
|