if @character.name == "敌人1" and $game_switches[103] == false
#是敌人1的情况下,显示敌人1的HP
if @hp != $game_variables[501] or
@maxhp != $game_variables[476]
@hp = $game_variables[501]
@maxhp = $game_variables[476]
hp = HPSP血条长度/($game_variables[476].to_f/$game_variables[501].to_f)
@sprite.bitmap.clear
@sprite.bitmap.fill_rect(100,100, hp, 2, Color.new(255, 0, 51))
end
end
end
end [LINE]1,#dddddd[/LINE]版务信息:本贴由楼主自主结贴~作者: hitlerson 时间: 2009-6-2 20:21
红的移到最后第五行后呢作者: stella 时间: 2009-6-3 17:30
这么改?也没效果啊。。。血条显示了就不消失{/gg}
if @character.name == "敌人1"
#是敌人1的情况下,显示敌人1的HP
if @hp != $game_variables[501] or
@maxhp != $game_variables[476]
@hp = $game_variables[501]
@maxhp = $game_variables[476]
hp = HPSP血条长度/($game_variables[476].to_f/$game_variables[501].to_f)
if $game_switches[103] == false
@sprite.bitmap.clear
@sprite.bitmap.fill_rect(100,100, hp, 2, Color.new(255, 0, 51))
end
end
end
end
end