赞 | 46 |
VIP | 271 |
好人卡 | 233 |
积分 | 94 |
经验 | 181865 |
最后登录 | 2024-9-17 |
在线时间 | 2748 小时 |
Lv4.逐梦者 「Pemercyia」 泱 银 Urhurrenna
- 梦石
- 0
- 星屑
- 9397
- 在线时间
- 2748 小时
- 注册时间
- 2008-9-5
- 帖子
- 3543
|
啊……哀家罪过了啊……
好久没碰这些脚本……忘记了这些东西了啊!
原谅哀家~
以下~LS的一句话让哀家无地自容……
明明……唉~以下,代替原谅的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
- if actor.base_atk > actor.atk
- color = Color.new(0, 0, 255)
- elsif actor.base_atk < actor.atk
- color = Color.new(255, 0, 0)
- else
- color = normal_color
- end
- when 1
- parameter_name = $data_system.words.pdef
- parameter_value = actor.pdef
- if actor.base_pdef > actor.pdef
- color = Color.new(0, 0, 255)
- elsif actor.base_pdef < actor.pdef
- color = Color.new(255, 0, 0)
- else
- color = normal_color
- end
- when 2
- parameter_name = $data_system.words.mdef
- parameter_value = actor.mdef
- if actor.base_mdef > actor.mdef
- color = Color.new(0, 0, 255)
- elsif actor.base_mdef < actor.mdef
- color = Color.new(255, 0, 0)
- else
- color = normal_color
- end
- when 3
- parameter_name = $data_system.words.str
- parameter_value = actor.str
- if actor.base_str > actor.str
- color = Color.new(0, 0, 255)
- elsif actor.base_str < actor.str
- color = Color.new(255, 0, 0)
- else
- color = normal_color
- end
- when 4
- parameter_name = $data_system.words.dex
- parameter_value = actor.dex
- if actor.base_dex > actor.dex
- color = Color.new(0, 0, 255)
- elsif actor.base_dex < actor.dex
- color = Color.new(255, 0, 0)
- else
- color = normal_color
- end
- when 5
- parameter_name = $data_system.words.agi
- parameter_value = actor.agi
- if actor.base_agi > actor.agi
- color = Color.new(0, 0, 255)
- elsif actor.base_agi < actor.agi
- color = Color.new(255, 0, 0)
- else
- color = normal_color
- end
- when 6
- parameter_name = $data_system.words.int
- parameter_value = actor.int
- if actor.base_int > actor.int
- color = Color.new(0, 0, 255)
- elsif actor.base_int < actor.int
- color = Color.new(255, 0, 0)
- else
- color = normal_color
- end
- end
- self.contents.font.color = system_color
- self.contents.draw_text(x, y, 120, 32, parameter_name)
- self.contents.font.color = color
- self.contents.draw_text(x + 120, y, 36, 32, parameter_value.to_s, 2)
- end
复制代码 |
|