26 lines
1.0 KiB
Plaintext
26 lines
1.0 KiB
Plaintext
-- Modifications to sample scripts will be lost the next time you start the game.
|
|
local Health = Localize("/Lotus/Language/Labels/HUD_COLOR_HEALTH")
|
|
local Shield = Localize("/Lotus/Language/Labels/HUD_COLOR_SHIELD")
|
|
local Armor = Localize("/Lotus/Language/Labels/HUD_COLOR_ARMOR")
|
|
local Overguard = Localize("/Lotus/Language/Labels/HUD_COLOR_PROTECTED_HEALTH")
|
|
repeat
|
|
for gRegion:FindAll(Type("/Lotus/Types/Game/LotusNpcAvatar")) as ent do
|
|
local dc = ent:DamageControl()
|
|
|
|
local name = Localize(ent:GetLocTag():c_str())
|
|
if ent:GetEnhancementCount() ~= 0 then
|
|
name = Localize(ent:GetEnhancementLocTag():c_str(), {
|
|
ENEMY = name
|
|
})
|
|
end
|
|
|
|
ent:SetDynamicUIName(true)
|
|
ent:SetUIName(
|
|
name
|
|
.."\r\n"..Health..": "..string.formatint(ent:GetHealth()).." / "..string.formatint(ent:GetMaxHealth())
|
|
.."\r\n"..Shield..": "..string.formatint(dc:GetShield()).." / "..string.formatint(dc:GetMaxShield())
|
|
.."\r\n"..Armor..": "..string.formatint(dc:GetArmourRating())
|
|
.."\r\n"..Overguard..": "..string.formatint(dc:GetOverguardAmount())
|
|
)
|
|
end
|
|
until yield() |