| 赞 | 1 |
| VIP | |
| 好人卡 | |
| 积分 | 7 |
| 经验 | |
| 最后登录 | 2026-4-21 |
| 在线时间 | 663 小时 |
- 梦石
- 0
- 星屑
- 710
- 在线时间
- 663 小时
- 注册时间
- 2012-10-21
- 回帖
- 251
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
这是动态血槽值的脚本:https://rpg.blue/forum.php?mod=v ... =%E5%8A%A8%E6%80%81
如何在其他地方调用动态槽值?为什么我在战斗时,在class Window_BattleStatus下,直接调用draw_hp_by_value(actor, actor.hp, x, y, width = 124),只出现一个槽?而不是每个人都一个?
原来是这样的
原来的 def draw_item(index)
return if index.nil?
clear_item(index)
actor = battle_members[index]
rect = item_rect(index)
item_x = rect.x + 6
return if actor.nil?
draw_actor_face(actor, item_x - 8, rect.y - 1, actor.alive?)
#draw_actor_name(actor, item_x, rect.y, rect.width-8)
draw_actor_action(actor, item_x + 80, rect.y - 2)
draw_actor_icons(actor, rect.x, line_height*3, rect.width+48 )
#draw_actor_icons(actor, item_x + 12, rect.y + 134, rect.width)
gx = YEA::BATTLE::BATTLESTATUS_HPGAUGE_Y_PLUS
yadj = 10
contents.font.size = YEA::BATTLE::BATTLESTATUS_TEXT_FONT_SIZE
draw_actor_hp(actor, item_x - 7, line_height*3+gx, rect.width-4-17)
draw_actor_mp(actor, item_x - 2, line_height*4+gx-yadj+1, rect.width-4-17)
draw_actor_tp(actor, rect.x+22, line_height*2+4+22, rect.width-4-17)
我把draw_actor_hp(actor, item_x - 7, line_height*3+gx, rect.width-4-17)替换为draw_hp_by_value(actor, actor.hp, x, y, width = 124)不能正常显示? |
|