赞 | 1 |
VIP | 337 |
好人卡 | 3 |
积分 | 1 |
经验 | 37815 |
最后登录 | 2024-11-25 |
在线时间 | 380 小时 |
Lv1.梦旅人 魔王 ⑨
- 梦石
- 0
- 星屑
- 95
- 在线时间
- 380 小时
- 注册时间
- 2006-10-16
- 帖子
- 4299
|
全局搜索draw_actor_parameter
def draw_actor_parameter(actor, x, y, type)
假设数据库一号职业为弓箭手,二号为魔法师,则
case type
when 0
if actor.class_id == 1
parameter_name = "远程攻击力"
eslif actor.class_id == 2
parameter_name = "魔法攻击力"
else
parameter_name = $data_system.words.atk
end
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 系统信息:本贴由本区版主认可为正确答案,66RPG感谢您的热情解答~ |
|