赞 | 35 |
VIP | 0 |
好人卡 | 72 |
积分 | 62 |
经验 | 38967 |
最后登录 | 2025-7-9 |
在线时间 | 1457 小时 |
Lv4.逐梦者
- 梦石
- 0
- 星屑
- 6235
- 在线时间
- 1457 小时
- 注册时间
- 2015-7-25
- 帖子
- 617
 
|
把我之前改的脚本部分完全删掉,换上这个试一下
class Window_Point_Actor < Window_Base def draw_actor_param_point(x,y) draw_actor_param_to_s(x,y,0) draw_actor_param_to_s(x,y+16,1) draw_actor_param_to_s(x,y+16*3,2) draw_actor_param_to_s(x,y+16*5,3) draw_actor_param_to_s(x,y+16*5,4) draw_actor_param_to_s(x,y+16*6,5) draw_actor_param_to_s(x,y+16*6,6) draw_actor_param_to_s(x,y+16*7,7) end def draw_actor_xparam_point(x,y) 2.times {|i| draw_actor_xparam_to_s(x,y-80+16*3,i)}# draw_actor_xparam_to_s(x,y-96-16*8,7) draw_actor_xparam_to_s(x,y-96-16*7,8) draw_actor_xparam_to_s(x,y-96-16*7,9) draw_actor_xparam_to_s(x,y-96+16*4,4) draw_actor_xparam_to_s(x,y-96+16*8,3) draw_actor_xparam_to_s(x,y-96+16*11,2) end def draw_actor_xparam_to_s(x,y,xparam_id) a=0.00 for i in 0 .. POINT_KIND-1 a+=($temp_point[i]*POINT_ADD_XPARAM[i][xparam_id]/10000.0) end s1 = XARAM_NAME[xparam_id] s2 = sprintf("%02.2f%%",@actor.xparam(xparam_id)*100) s3 = sprintf("%02.2f%%",(@actor.xparam(xparam_id) + a)*100) if @index < POINT_KIND if POINT_ADD_XPARAM[@index][xparam_id]==0 s4="" else s4 = sprintf("+%02.2f%%",POINT_ADD_XPARAM[@index][xparam_id]/100.0) end else s4 = "" end change_color(system_color) draw_text(x+20,y+16*xparam_id,100,line_height,s1) change_color(normal_color) s2+= " →" draw_text(x+82,y+16*xparam_id,120,line_height,s2,2) change_color(system_color) draw_text(x+150,y+16*xparam_id,100,line_height,s3,2) change_color(normal_color) contents.font.size = 14 draw_text(x+266,y+16*xparam_id,100,line_height,s4) contents.font.size = 16 end end
class Window_Point_Actor < Window_Base
def draw_actor_param_point(x,y)
draw_actor_param_to_s(x,y,0)
draw_actor_param_to_s(x,y+16,1)
draw_actor_param_to_s(x,y+16*3,2)
draw_actor_param_to_s(x,y+16*5,3)
draw_actor_param_to_s(x,y+16*5,4)
draw_actor_param_to_s(x,y+16*6,5)
draw_actor_param_to_s(x,y+16*6,6)
draw_actor_param_to_s(x,y+16*7,7)
end
def draw_actor_xparam_point(x,y)
2.times {|i| draw_actor_xparam_to_s(x,y-80+16*3,i)}#
draw_actor_xparam_to_s(x,y-96-16*8,7)
draw_actor_xparam_to_s(x,y-96-16*7,8)
draw_actor_xparam_to_s(x,y-96-16*7,9)
draw_actor_xparam_to_s(x,y-96+16*4,4)
draw_actor_xparam_to_s(x,y-96+16*8,3)
draw_actor_xparam_to_s(x,y-96+16*11,2)
end
def draw_actor_xparam_to_s(x,y,xparam_id)
a=0.00
for i in 0 .. POINT_KIND-1
a+=($temp_point[i]*POINT_ADD_XPARAM[i][xparam_id]/10000.0)
end
s1 = XARAM_NAME[xparam_id]
s2 = sprintf("%02.2f%%",@actor.xparam(xparam_id)*100)
s3 = sprintf("%02.2f%%",(@actor.xparam(xparam_id) + a)*100)
if @index < POINT_KIND
if POINT_ADD_XPARAM[@index][xparam_id]==0
s4=""
else
s4 = sprintf("+%02.2f%%",POINT_ADD_XPARAM[@index][xparam_id]/100.0)
end
else
s4 = ""
end
change_color(system_color)
draw_text(x+20,y+16*xparam_id,100,line_height,s1)
change_color(normal_color)
s2+= " →"
draw_text(x+82,y+16*xparam_id,120,line_height,s2,2)
change_color(system_color)
draw_text(x+150,y+16*xparam_id,100,line_height,s3,2)
change_color(normal_color)
contents.font.size = 14
draw_text(x+266,y+16*xparam_id,100,line_height,s4)
contents.font.size = 16
end
end
|
评分
-
查看全部评分
|