Project1
标题:
怎么设置抗性雷达表示脚本脚本
[打印本页]
作者:
隐藏主角
时间:
2012-3-12 04:19
标题:
怎么设置抗性雷达表示脚本脚本
QQ截图20120312041447.png
(356.08 KB, 下载次数: 3)
下载附件
保存到相册
2012-3-12 04:17 上传
怎么把抗性雷达移动到左边来?或把HP等数据和武器装备等移到左边? dsu_plus_rewardpost_czw
作者:
钢铁列兵
时间:
2012-3-12 22:45
你连原始脚本都没有,算了,试试我这套吧。
# ▼▲▼ XRXS_MP 4. ステータス・属性防御レーダーグラフ ver.1.5 ▼▲▼
# by 桜雅 在土
#==============================================================================
# ■ Window_Base
#==============================================================================
class Window_Base
def draw_line(start_x, start_y, end_x, end_y, color_1sthalf = normal_color, width = 1, color_2ndhalf = color_1sthalf)
distance = (start_x - end_x).abs + (start_y - end_y).abs # 大きめに直角時の長さ
for i in 1..distance
x = (start_x + 1.0 * (end_x - start_x) * i / distance).to_i
y = (start_y + 1.0 * (end_y - start_y) * i / distance).to_i
r = color_1sthalf.red * (distance-i)/distance + color_2ndhalf.red * i/distance
g = color_1sthalf.green * (distance-i)/distance + color_2ndhalf.green * i/distance
b = color_1sthalf.blue * (distance-i)/distance + color_2ndhalf.blue * i/distance
a = color_1sthalf.alpha * (distance-i)/distance + color_2ndhalf.alpha * i/distance
self.contents.fill_rect(x, y, width, width, Color.new(r, g, b, a))
end
end
end
#==============================================================================
# ■ Window_Status
#==============================================================================
class Window_Status < Window_Base
#--------------------------------------------------------------------------
# ● リフレッシュ
#--------------------------------------------------------------------------
alias xrxs_mp4_refresh refresh
def refresh
xrxs_mp4_refresh
# ここで表示位置を調整可能。表示座標 → X Y
draw_actor_element_radar_graph(@actor, 390, 60)
draw_actor_element_radar_graph2(@actor, 390, 250)
end
#--------------------------------------------------------------------------
# ● 属性防御レーダーグラフの描写
#--------------------------------------------------------------------------
def draw_actor_element_radar_graph(actor, x, y, radius = 56)
# 各変数の準備(ユーザーが値を任意に変更可能)
font_size = 16 # 属性名のフォントサイズ
word_element_guard = "属性耐久度" # 用語「属性防御」
element_order = [0,1,3,8,5,2,4,7,6] # 属性の順番。最初の0は固定
graph_line_color1 = Color.new(255, 255, 255, 128) # グラフの目盛線色
graph_line_color2 = Color.new( 0, 0, 0, 192) # グラフの目盛線色・影
graph_line_color3 = Color.new(255, 255, 64, 255) # グラフの線色 通常時
graph_line_color4 = Color.new( 64, 255, 255, 255) # グラフの線色 吸収時
graph_line_color5 = Color.new(255, 64, 64, 255) # グラフの線色 弱点時
# 各変数の準備(固定)
cx = x + radius + font_size + 48
cy = y + radius + font_size + 32
tilt_length = (radius / 1.41421356).to_i
# 用語「属性防御」の描写
self.contents.font.color = system_color
# self.contents.draw_text(x + 30 , y - 40 , 120, 32, word_element_guard)
# 各属性名の描写
self.contents.font.size = font_size
self.contents.draw_text(cx - font_size/2 , cy - radius - font_size , font_size, font_size, $data_system.elements[element_order[1]])
self.contents.draw_text(cx - font_size/2 , cy + radius , font_size, font_size, $data_system.elements[element_order[5]])
self.contents.draw_text(cx + radius + 0 , cy - font_size / 2 , font_size, font_size, $data_system.elements[element_order[3]])
self.contents.draw_text(cx - 2 - radius - font_size , cy - font_size / 2 , font_size, font_size, $data_system.elements[element_order[7]])
self.contents.draw_text(cx + tilt_length , cy - tilt_length - font_size, font_size, font_size, $data_system.elements[element_order[2]])
self.contents.draw_text(cx + tilt_length , cy + tilt_length , font_size, font_size, $data_system.elements[element_order[4]])
self.contents.draw_text(cx - tilt_length - font_size, cy + tilt_length , font_size, font_size, $data_system.elements[element_order[6]])
self.contents.draw_text(cx - tilt_length - font_size, cy - tilt_length - font_size, font_size, font_size, $data_system.elements[element_order[8]])
# i = @actor.element_rate(element_order[1])
# text_1 = ((200 - i) / 20).to_s
# i = @actor.element_rate(element_order[2])
# text_2 = ((200 - i) / 20).to_s
# i = @actor.element_rate(element_order[3])
# text_3 = ((200 - i) / 20).to_s
# i = @actor.element_rate(element_order[4])
# text_4 = ((200 - i) / 20).to_s
# i = @actor.element_rate(element_order[5])
# text_5 = ((200 - i) / 20).to_s
# i = @actor.element_rate(element_order[6])
# text_6 = ((200 - i) / 20).to_s
# i = @actor.element_rate(element_order[7])
# text_7 = ((200 - i) / 20).to_s
# i = @actor.element_rate(element_order[8])
# text_8 = ((200 - i) / 20).to_s
# 各属性数値の描写(↑からコピペ(素))
# self.contents.font.color = Color.new(255, 255, 255, 128)
# self.contents.draw_text(cx - font_size*1.8 , cy - radius - font_size * 2 , font_size*2, font_size, text_1 , 2)
# self.contents.draw_text(cx - font_size*2.8 , cy + radius + font_size , font_size*3, font_size, text_5 , 2)
# self.contents.draw_text(cx + radius - font_size*1/2 , cy - font_size / 2 , font_size*3, font_size, text_3 , 2)
# self.contents.draw_text(cx-2 - radius - font_size *4, cy - font_size / 2 , font_size*3, font_size, text_7 , 2)
# self.contents.draw_text(cx +tilt_length -font_size*3/2, cy -tilt_length -font_size*2, font_size*3, font_size, text_2 , 2)
# self.contents.draw_text(cx +tilt_length -font_size*3/2, cy +tilt_length +font_size , font_size*3, font_size, text_4 , 2)
# self.contents.draw_text(cx-tilt_length-font_size*7/2, cy +tilt_length +font_size , font_size*3, font_size, text_6 , 2)
# self.contents.draw_text(cx-tilt_length-font_size*7/2, cy -tilt_length -font_size*2, font_size*3, font_size, text_8 , 2)
# グラフ線の描写
cx += 1
cy += 1
draw_line(cx - radius, cy, cx + radius, cy, graph_line_color2)
draw_line(cx, cy - radius, cx, cy + radius, graph_line_color2)
draw_line(cx - tilt_length, cy - tilt_length, cx + tilt_length, cy + tilt_length, graph_line_color2, 1)
draw_line(cx + tilt_length, cy - tilt_length, cx - tilt_length, cy + tilt_length, graph_line_color2, 1)
# 第一属性から第三属性
start_x = cx
start_y = cy - radius
end_x = cx + (radius / 1.41421356).to_i
end_y = -1 * end_x + cx + cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color2)
# 第三属性から第八属性
start_x = end_x
start_y = end_y
end_x = cx + radius
end_y = cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color2)
# 第八属性から第五属性
start_x = end_x
start_y = end_y
end_x = cx + (radius / 1.41421356).to_i
end_y = end_x - cx + cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color2)
# 第五属性から第二属性
start_x = end_x
start_y = end_y
end_x = cx
end_y = cy + radius
draw_line(start_x, start_y, end_x, end_y, graph_line_color2)
# 第二属性から第四属性
start_x = end_x
start_y = end_y
end_x = cx - (radius / 1.41421356).to_i
end_y = -1 * end_x + cx + cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color2)
# 第四属性から第七属性
start_x = end_x
start_y = end_y
end_x = cx - radius
end_y = cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color2)
# 第七属性から第六属性
start_x = end_x
start_y = end_y
end_x = cx - (radius / 1.41421356).to_i
end_y = end_x - cx + cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color2)
# 第六属性から第一属性
start_x = end_x
start_y = end_y
end_x = cx
end_y = cy - radius
draw_line(start_x, start_y, end_x, end_y, graph_line_color2)
cx -= 1
cy -= 1
draw_line(cx - radius, cy, cx + radius, cy, graph_line_color1)
draw_line(cx, cy - radius, cx, cy + radius, graph_line_color1)
draw_line(cx - tilt_length, cy - tilt_length, cx + tilt_length, cy + tilt_length, graph_line_color1, 1)
draw_line(cx + tilt_length, cy - tilt_length, cx - tilt_length, cy + tilt_length, graph_line_color1, 1)
# 第一属性から第三属性
start_x = cx
start_y = cy - radius
end_x = cx + (radius / 1.41421356).to_i
end_y = -1 * end_x + cx + cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color1)
# 第三属性から第八属性
start_x = end_x
start_y = end_y
end_x = cx + radius
end_y = cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color1)
# 第八属性から第五属性
start_x = end_x
start_y = end_y
end_x = cx + (radius / 1.41421356).to_i
end_y = end_x - cx + cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color1)
# 第五属性から第二属性
start_x = end_x
start_y = end_y
end_x = cx
end_y = cy + radius
draw_line(start_x, start_y, end_x, end_y, graph_line_color1)
# 第二属性から第四属性
start_x = end_x
start_y = end_y
end_x = cx - (radius / 1.41421356).to_i
end_y = -1 * end_x + cx + cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color1)
# 第四属性から第七属性
start_x = end_x
start_y = end_y
end_x = cx - radius
end_y = cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color1)
# 第七属性から第六属性
start_x = end_x
start_y = end_y
end_x = cx - (radius / 1.41421356).to_i
end_y = end_x - cx + cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color1)
# 第六属性から第一属性
start_x = end_x
start_y = end_y
end_x = cx
end_y = cy - radius
draw_line(start_x, start_y, end_x, end_y, graph_line_color1)
# 再び色を変えて描く↓
# 第一属性から第三属性
er = (200 - actor.element_rate(element_order[1])) / 2
color_1sthalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
start_x = cx
start_y = cy - er.abs * radius / 100
er = (200 - actor.element_rate(element_order[2])) / 2
color_2ndhalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
end_x = cx + (er.abs * radius / 1.41421356 / 100).to_i
end_y = -1 * end_x + cx + cy
draw_line(start_x, start_y, end_x, end_y, color_1sthalf, 2, color_2ndhalf)
# 第三属性から第八属性
er = (200 - actor.element_rate(element_order[3])) / 2
color_1sthalf = color_2ndhalf
color_2ndhalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
start_x = end_x
start_y = end_y
end_x = cx + (er.abs * radius / 100).to_i
end_y = cy
draw_line(start_x, start_y, end_x, end_y, color_1sthalf, 2, color_2ndhalf)
# 第八属性から第五属性
er = (200 - actor.element_rate(element_order[4])) / 2
color_1sthalf = color_2ndhalf
color_2ndhalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
start_x = end_x
start_y = end_y
end_x = cx + (er.abs * radius / 1.41421356 / 100).to_i
end_y = end_x - cx + cy
draw_line(start_x, start_y, end_x, end_y, color_1sthalf, 2, color_2ndhalf)
# 第五属性から第二属性
er = (200 - actor.element_rate(element_order[5])) / 2
color_1sthalf = color_2ndhalf
color_2ndhalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
start_x = end_x
start_y = end_y
end_x = cx
end_y = cy + (er.abs * radius / 100).to_i
draw_line(start_x, start_y, end_x, end_y, color_1sthalf, 2, color_2ndhalf)
# 第二属性から第四属性
er = (200 - actor.element_rate(element_order[6])) / 2
color_1sthalf = color_2ndhalf
color_2ndhalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
start_x = end_x
start_y = end_y
end_x = cx - (er.abs * radius / 1.41421356 / 100).to_i
end_y = -1 * end_x + cx + cy
draw_line(start_x, start_y, end_x, end_y, color_1sthalf, 2, color_2ndhalf)
# 第四属性から第七属性
er = (200 - actor.element_rate(element_order[7])) / 2
color_1sthalf = color_2ndhalf
color_2ndhalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
start_x = end_x
start_y = end_y
end_x = cx - (er.abs * radius / 100).to_i
end_y = cy
draw_line(start_x, start_y, end_x, end_y, color_1sthalf, 2, color_2ndhalf)
# 第七属性から第六属性
er = (200 - actor.element_rate(element_order[8])) / 2
color_1sthalf = color_2ndhalf
color_2ndhalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
start_x = end_x
start_y = end_y
end_x = cx - (er.abs * radius / 1.41421356 / 100).to_i
end_y = end_x - cx + cy
draw_line(start_x, start_y, end_x, end_y, color_1sthalf, 2, color_2ndhalf)
# 第六属性から第一属性
er = (200 - actor.element_rate(element_order[1])) / 2
color_1sthalf = color_2ndhalf
color_2ndhalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
start_x = end_x
start_y = end_y
end_x = cx
end_y = cy - er.abs * radius / 100
draw_line(start_x, start_y, end_x, end_y, color_1sthalf, 2, color_2ndhalf)
end
#--------------------------------------------------------------------------
# ● 属性防御レーダーグラフの描写
#--------------------------------------------------------------------------
def draw_actor_element_radar_graph2(actor, x, y, radius = 56)
# 各変数の準備(ユーザーが値を任意に変更可能)
font_size = 16 # 属性名のフォントサイズ
word_element_guard = "状态抗性" # 用語「属性防御」
element_order = [0,9,11,16,13,10,12,15,14] # 属性の順番。最初の0は固定
graph_line_color1 = Color.new(255, 255, 255, 128) # グラフの目盛線色
graph_line_color2 = Color.new( 0, 0, 0, 192) # グラフの目盛線色・影
graph_line_color3 = Color.new(255, 255, 64, 255) # グラフの線色 通常時
graph_line_color4 = Color.new( 64, 255, 255, 255) # グラフの線色 吸収時
graph_line_color5 = Color.new(255, 64, 64, 255) # グラフの線色 弱点時
# 各変数の準備(固定)
cx = x + radius + font_size + 48
cy = y + radius + font_size + 32
tilt_length = (radius / 1.41421356).to_i
# 用語「属性防御」の描写
self.contents.font.color = system_color
# self.contents.draw_text(x + 30 , y - 40 , 120, 32, word_element_guard)
# 各属性名の描写
self.contents.font.size = font_size
self.contents.draw_text(cx - 32/2 , cy - radius - 32 , 32,32, $data_system.elements[element_order[1]])
self.contents.draw_text(cx - 32/2 , cy + radius , 32,32, $data_system.elements[element_order[5]])
self.contents.draw_text(cx + radius + 0 , cy - 32 / 2 , 32,32, $data_system.elements[element_order[3]])
self.contents.draw_text(cx - 2 - radius - 32 , cy - 32 / 2 , 32,32, $data_system.elements[element_order[7]])
self.contents.draw_text(cx + tilt_length , cy - tilt_length - 32, 32,32, $data_system.elements[element_order[2]])
self.contents.draw_text(cx + tilt_length , cy + tilt_length , 32,32, $data_system.elements[element_order[4]])
self.contents.draw_text(cx - tilt_length - 32, cy + tilt_length , 32,32, $data_system.elements[element_order[6]])
self.contents.draw_text(cx - tilt_length - 32, cy - tilt_length - 32, 32,32, $data_system.elements[element_order[8]])
cx += 1
cy += 1
draw_line(cx - radius, cy, cx + radius, cy, graph_line_color2)
draw_line(cx, cy - radius, cx, cy + radius, graph_line_color2)
draw_line(cx - tilt_length, cy - tilt_length, cx + tilt_length, cy + tilt_length, graph_line_color2, 1)
draw_line(cx + tilt_length, cy - tilt_length, cx - tilt_length, cy + tilt_length, graph_line_color2, 1)
# 第一属性から第三属性
start_x = cx
start_y = cy - radius
end_x = cx + (radius / 1.41421356).to_i
end_y = -1 * end_x + cx + cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color2)
# 第三属性から第八属性
start_x = end_x
start_y = end_y
end_x = cx + radius
end_y = cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color2)
# 第八属性から第五属性
start_x = end_x
start_y = end_y
end_x = cx + (radius / 1.41421356).to_i
end_y = end_x - cx + cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color2)
# 第五属性から第二属性
start_x = end_x
start_y = end_y
end_x = cx
end_y = cy + radius
draw_line(start_x, start_y, end_x, end_y, graph_line_color2)
# 第二属性から第四属性
start_x = end_x
start_y = end_y
end_x = cx - (radius / 1.41421356).to_i
end_y = -1 * end_x + cx + cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color2)
# 第四属性から第七属性
start_x = end_x
start_y = end_y
end_x = cx - radius
end_y = cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color2)
# 第七属性から第六属性
start_x = end_x
start_y = end_y
end_x = cx - (radius / 1.41421356).to_i
end_y = end_x - cx + cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color2)
# 第六属性から第一属性
start_x = end_x
start_y = end_y
end_x = cx
end_y = cy - radius
draw_line(start_x, start_y, end_x, end_y, graph_line_color2)
cx -= 1
cy -= 1
draw_line(cx - radius, cy, cx + radius, cy, graph_line_color1)
draw_line(cx, cy - radius, cx, cy + radius, graph_line_color1)
draw_line(cx - tilt_length, cy - tilt_length, cx + tilt_length, cy + tilt_length, graph_line_color1, 1)
draw_line(cx + tilt_length, cy - tilt_length, cx - tilt_length, cy + tilt_length, graph_line_color1, 1)
# 第一属性から第三属性
start_x = cx
start_y = cy - radius
end_x = cx + (radius / 1.41421356).to_i
end_y = -1 * end_x + cx + cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color1)
# 第三属性から第八属性
start_x = end_x
start_y = end_y
end_x = cx + radius
end_y = cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color1)
# 第八属性から第五属性
start_x = end_x
start_y = end_y
end_x = cx + (radius / 1.41421356).to_i
end_y = end_x - cx + cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color1)
# 第五属性から第二属性
start_x = end_x
start_y = end_y
end_x = cx
end_y = cy + radius
draw_line(start_x, start_y, end_x, end_y, graph_line_color1)
# 第二属性から第四属性
start_x = end_x
start_y = end_y
end_x = cx - (radius / 1.41421356).to_i
end_y = -1 * end_x + cx + cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color1)
# 第四属性から第七属性
start_x = end_x
start_y = end_y
end_x = cx - radius
end_y = cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color1)
# 第七属性から第六属性
start_x = end_x
start_y = end_y
end_x = cx - (radius / 1.41421356).to_i
end_y = end_x - cx + cy
draw_line(start_x, start_y, end_x, end_y, graph_line_color1)
# 第六属性から第一属性
start_x = end_x
start_y = end_y
end_x = cx
end_y = cy - radius
draw_line(start_x, start_y, end_x, end_y, graph_line_color1)
# 再び色を変えて描く↓
# 第一属性から第三属性
er = (200 - actor.element_rate(element_order[1])) / 2
color_1sthalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
start_x = cx
start_y = cy - er.abs * radius / 100
er = (200 - actor.element_rate(element_order[2])) / 2
color_2ndhalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
end_x = cx + (er.abs * radius / 1.41421356 / 100).to_i
end_y = -1 * end_x + cx + cy
draw_line(start_x, start_y, end_x, end_y, color_1sthalf, 2, color_2ndhalf)
# 第三属性から第八属性
er = (200 - actor.element_rate(element_order[3])) / 2
color_1sthalf = color_2ndhalf
color_2ndhalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
start_x = end_x
start_y = end_y
end_x = cx + (er.abs * radius / 100).to_i
end_y = cy
draw_line(start_x, start_y, end_x, end_y, color_1sthalf, 2, color_2ndhalf)
# 第八属性から第五属性
er = (200 - actor.element_rate(element_order[4])) / 2
color_1sthalf = color_2ndhalf
color_2ndhalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
start_x = end_x
start_y = end_y
end_x = cx + (er.abs * radius / 1.41421356 / 100).to_i
end_y = end_x - cx + cy
draw_line(start_x, start_y, end_x, end_y, color_1sthalf, 2, color_2ndhalf)
# 第五属性から第二属性
er = (200 - actor.element_rate(element_order[5])) / 2
color_1sthalf = color_2ndhalf
color_2ndhalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
start_x = end_x
start_y = end_y
end_x = cx
end_y = cy + (er.abs * radius / 100).to_i
draw_line(start_x, start_y, end_x, end_y, color_1sthalf, 2, color_2ndhalf)
# 第二属性から第四属性
er = (200 - actor.element_rate(element_order[6])) / 2
color_1sthalf = color_2ndhalf
color_2ndhalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
start_x = end_x
start_y = end_y
end_x = cx - (er.abs * radius / 1.41421356 / 100).to_i
end_y = -1 * end_x + cx + cy
draw_line(start_x, start_y, end_x, end_y, color_1sthalf, 2, color_2ndhalf)
# 第四属性から第七属性
er = (200 - actor.element_rate(element_order[7])) / 2
color_1sthalf = color_2ndhalf
color_2ndhalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
start_x = end_x
start_y = end_y
end_x = cx - (er.abs * radius / 100).to_i
end_y = cy
draw_line(start_x, start_y, end_x, end_y, color_1sthalf, 2, color_2ndhalf)
# 第七属性から第六属性
er = (200 - actor.element_rate(element_order[8])) / 2
color_1sthalf = color_2ndhalf
color_2ndhalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
start_x = end_x
start_y = end_y
end_x = cx - (er.abs * radius / 1.41421356 / 100).to_i
end_y = end_x - cx + cy
draw_line(start_x, start_y, end_x, end_y, color_1sthalf, 2, color_2ndhalf)
# 第六属性から第一属性
er = (200 - actor.element_rate(element_order[1])) / 2
color_1sthalf = color_2ndhalf
color_2ndhalf = er < 0 ? graph_line_color4 : er > 100 ? graph_line_color5 : graph_line_color3
start_x = end_x
start_y = end_y
end_x = cx
end_y = cy - er.abs * radius / 100
draw_line(start_x, start_y, end_x, end_y, color_1sthalf, 2, color_2ndhalf)
end
end
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1