#-------------------------------------------------------------------------- # ● 设置敌人 # enemy : 要显示名字和状态的敌人 #-------------------------------------------------------------------------- def set_enemy(actor) self.contents.clear draw_actor_name(actor, 0, 0) draw_actor_hp(actor, 100, 0) draw_actor_sp(actor, 280, 0) [url=home.php?mod=space&uid=95897]@actor[/url] = actor @text = nil self.visible = true end end
#--------------------------------------------------------------------------
# ● 设置敌人
# enemy : 要显示名字和状态的敌人
#--------------------------------------------------------------------------
def set_enemy(actor)
self.contents.clear
draw_actor_name(actor, 0, 0)
draw_actor_hp(actor, 100, 0)
draw_actor_sp(actor, 280, 0)
[url=home.php?mod=space&uid=95897]@actor[/url] = actor
@text = nil
self.visible = true
end
end
这样就可以看到怪物的名字 hp sp了,想弄成图2那样, |