赞 | 1 |
VIP | 0 |
好人卡 | 0 |
积分 | 2 |
经验 | 0 |
最后登录 | 2022-8-6 |
在线时间 | 11 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 190
- 在线时间
- 11 小时
- 注册时间
- 2020-6-21
- 帖子
- 19
|
4楼
楼主 |
发表于 2022-4-18 13:56:55
|
只看该作者
现在我改了Scene_equip 里面的这些:
# 获取变更装备后的能力值
new_str = @actor.str
new_dex = @actor.dex
new_agi = @actor.agi
new_int = @actor.int
# 描画左窗口
@left_window.set_new_parameters(new_int, new_dex, new_agi, new_int)
然后还有window_equipleft里的这些:
def refresh
self.contents.clear
draw_actor_name(@actor, 4, 0)
draw_actor_parameter(@actor, 4, 32, 0)
draw_actor_parameter(@actor, 4, 64, 1)
draw_actor_parameter(@actor, 4, 96, 2)
draw_actor_parameter(@actor, 4, 128, 3)
if @new_str != nil
self.contents.font.color = system_color
self.contents.draw_text(160, 64, 40, 32, "→", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 64, 36, 32, @new_str.to_s, 2)
end
if @new_dex != nil
self.contents.font.color = system_color
self.contents.draw_text(160, 96, 40, 32, "→", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 96, 36, 32, @new_dex.to_s, 2)
end
if @new_agi != nil
self.contents.font.color = system_color
self.contents.draw_text(160, 128, 40, 32, "→", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 128, 36, 32, @new_agi.to_s, 2)
end
if @new_int !=nil
self.contents.font.color = system_color
self.contents.draw_text(160, 128, 40, 32, "→", 1)
self.contents.font.color = normal_color
self.contents.draw_text(200, 128, 36, 32, @new_int.to_s, 2)
end
def set_new_parameters(new_str, new_dex, new_agi, new_int)
if @new_str != new_str or @new_dex != new_dex or @new_agi != new_agi or @new_int != new_int
@new_str = new_str
@new_dex = new_dex
@new_agi = new_agi
@new_int = new_int
refresh
end
end
但是直接就变成了“脚本window_equipleft最后一行发生了SyntaxError”
请问这个是怎么回事呀? |
|