赞 | 0 |
VIP | 190 |
好人卡 | 16 |
积分 | 1 |
经验 | 59358 |
最后登录 | 2017-8-17 |
在线时间 | 1441 小时 |
Lv1.梦旅人 ◇无限的妄想者◇
- 梦石
- 0
- 星屑
- 55
- 在线时间
- 1441 小时
- 注册时间
- 2012-7-14
- 帖子
- 2339
|
脚本编辑器,Window_Base下找到:
#--------------------------------------------------------------------------
# ● 描绘能力值
# actor : 角色
# x : 描画目标 X 坐标
# y : 描画目标 Y 坐标
# type : 能力值种类 (0~6)
#--------------------------------------------------------------------------
def draw_actor_parameter(actor, x, y, type)
case type
when 0
parameter_name = $data_system.words.atk
parameter_value = actor.atk
when 1
parameter_name = $data_system.words.pdef
parameter_value = actor.pdef
when 2
parameter_name = $data_system.words.mdef
parameter_value = actor.mdef
when 3
parameter_name = $data_system.words.str
parameter_value = actor.str
when 4
parameter_name = $data_system.words.dex
parameter_value = actor.dex
when 5
parameter_name = $data_system.words.agi
parameter_value = actor.agi
when 6
parameter_name = $data_system.words.int
parameter_value = actor.int
end
self.contents.font.color = system_color
self.contents.draw_text(x, y, 120, 32, parameter_name)
self.contents.font.color = normal_color
self.contents.draw_text(x + 120, y, 36, 32, parameter_value.to_s, 2)
end
其中对case type下添加为:
case type
when 0
parameter_name = $data_system.words.atk
parameter_value = actor.atk
when 1
parameter_name = $data_system.words.pdef
parameter_value = actor.pdef
when 2
parameter_name = $data_system.words.mdef
parameter_value = actor.mdef
when 3
parameter_name = $data_system.words.str
parameter_value = actor.str
when 4
parameter_name = $data_system.words.dex
parameter_value = actor.dex
when 5
parameter_name = $data_system.words.agi
parameter_value = actor.agi
when 6
parameter_name = $data_system.words.int
parameter_value = actor.int
when 7
parameter_name = "命中"
parameter_value = actor.hit
when 8
parameter_name = "回避"
parameter_value = actor.eva
end
之后在Window_Status里找到:
draw_actor_parameter(@actor, 96, 192, 0)
draw_actor_parameter(@actor, 96, 224, 1)
draw_actor_parameter(@actor, 96, 256, 2)
draw_actor_parameter(@actor, 96, 304, 3)
draw_actor_parameter(@actor, 96, 336, 4)
draw_actor_parameter(@actor, 96, 368, 5)
draw_actor_parameter(@actor, 96, 400, 6)
这一串,在这后面添加:
draw_actor_parameter(@actor, 96, 432, 7)
draw_actor_parameter(@actor, 96, 464, 8)
如果显示位置不大合适,则可以调整Window_Status里找到的这一串调用draw_actor_parameter函数代码的参数
以其中一个为例:draw_actor_parameter(@actor, 96, 464, 8)括号内从左到右依次为显示内容来自的角色,文字的x坐标,文字的y坐标和显示内容代号。
适当调整X,Y坐标可以让位置更合适。(因为是640*480的,所以Y到464肯定不好看,整体减小吧。)
|
评分
-
查看全部评分
|