存取檔案改造腳本問題@@
存取檔案改造腳本問題@@
我是用這個腳本這裡
昨天測試遊戲時存檔,結果發現存檔後,在讀檔時地圖圖片沒有顯示出來,而是顯示這個樣子→青蛙網
該腳本需要丟的screenshot.dll檔我也有丟,這問題是昨天才出現的,昨天我有修改戰鬥勝利後的經驗值/物品取得視窗。
是否因為這樣而出現問題的呢?(總覺得改Window_BattleResult這腳本不會影響到阿= =)
請幫我看看吧!以下是我修改的Window_BattleResult(原鯉魚—魔導聖戰腳本)
求助~~@@
昨天測試遊戲時存檔,結果發現存檔後,在讀檔時地圖圖片沒有顯示出來,而是顯示這個樣子→青蛙網
該腳本需要丟的screenshot.dll檔我也有丟,這問題是昨天才出現的,昨天我有修改戰鬥勝利後的經驗值/物品取得視窗。
是否因為這樣而出現問題的呢?(總覺得改Window_BattleResult這腳本不會影響到阿= =)
請幫我看看吧!以下是我修改的Window_BattleResult(原鯉魚—魔導聖戰腳本)
- 代碼:
#==============================================================================
# ■ Window_BattleResult
#------------------------------------------------------------------------------
# 戰鬥結束時、顯示獲得的 EXP 及金錢、寶物的視窗。
#==============================================================================
class Window_BattleResult < Window_Base
#--------------------------------------------------------------------------
# ● 初始化物件
# exp : EXP
# gold : 金錢
# treasures : 寶物
#--------------------------------------------------------------------------
def initialize(exp, gold, treasures)
@exp = exp
@gold = gold
@treasures = treasures
super(160, 0, 320, @treasures.size * 30 + 150)
self.contents = Bitmap.new(width - 32, height - 32)
self.y = 160 - height / 2
self.back_opacity = 160
self.z = 700
refresh
end
#--------------------------------------------------------------------------
# ● 刷新
#--------------------------------------------------------------------------
def refresh
self.contents.clear
self.contents.font.size = 22
self.contents.font.color = normal_color
self.contents.draw_text(-16,0,320,32,"戰鬥勝利".to_s,1)
self.contents.font.size = 18
self.contents.font.color = system_color
self.contents.draw_text(-16,40,320,32,"獲得 經驗值".to_s, 1)
self.contents.draw_text(-16,70,320,32,"獲得 金幣".to_s, 1)
self.contents.font.color = normal_color
self.contents.draw_text(-16,40,320,32,@exp.to_s, 1)
self.contents.draw_text(-16,70,320,32,@gold.to_s, 1)
self.contents.font.color = Color.new(255, 255, 128, 255)
self.contents.draw_text(-16,83,320,32,"_______________".to_s, 1)
for i in 0...@treasures.size
self.contents.font.color = system_color
self.contents.draw_text(9,110+i*30,320,32,"取得".to_s)
self.contents.blt(85, 114+i*30, RPG::Cache.icon(@treasures[i].icon_name), Rect.new(0, 0, 24, 24))
self.contents.font.color = normal_color
self.contents.draw_text(115,110+i*30,320,32,@treasures[i].name.to_s)
end
end
end
求助~~@@
阿隨- 賣彩色內褲的小鱉三
- 文章數 : 10
注冊日期 : 2010-05-12
年齡 : 32
來自 : 任何地方= =?
這個論壇的權限:
您 無法 在這個版面回復文章
|
|