The Wary
Forum posts: 0
File comments: 2
Uploads: 0
|
Change for the Hunter
Great plugin,
As Champs only get 5 Fev, and Hunters get 9 focus, I changed the plugin to reflect the count differently for hunters.
Hunters "spells" that use Focus, use 3 focus at a time.
So instead of 5 focus points and up show full on the bar, I changed it fill in only 3 bars. 1 bar = 3 focus, or 1 bar = 1 Spell.
The main.lua was modified.
The Hunter's Function was changed from:
function Turbine.Gameplay.Attributes.HunterAttributes:Focus Changed(sender, args)
if(hunter == true) then
foc = player.cA:GetFocus();
if(foc == 0 ) then
mWin.pip1:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip2:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip3:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip4:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip5:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
end
if(foc == 1) then
mWin.pip1:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip2:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip3:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip4:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip5:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
end
if(foc == 2) then
mWin.pip1:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip2:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip3:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip4:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip5:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
end
if (foc == 3) then
mWin.pip1:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip2:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip3:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip4:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip5:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
end
if (foc == 4) then
mWin.pip1:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip2:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip3:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip4:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip5:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
end
if (foc == 5) then
mWin.pip1:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip2:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip3:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip4:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip5:SetBackColor(Turbine.UI.Color(1,0,0))
end
if (foc > 5) then
mWin.pip1:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip2:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip3:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip4:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip5:SetBackColor(Turbine.UI.Color(1,0,0))
end
end
end
TO THIS:
function Turbine.Gameplay.Attributes.HunterAttributes:Focus Changed(sender, args)
if(hunter == true) then
foc = player.cA:GetFocus();
if(foc == 0 ) then
mWin.pip1:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip2:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip3:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip4:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip5:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
end
if(foc >= 3 and foc <= 5) then
mWin.pip1:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip2:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip3:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip4:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip5:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
end
if(foc >= 6 and foc <= 8) then
mWin.pip1:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip2:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip3:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip4:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip5:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
end
if (foc >= 9) then
mWin.pip1:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip2:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip3:SetBackColor(Turbine.UI.Color(1,0,0))
mWin.pip4:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
mWin.pip5:SetBackColor(Turbine.UI.Color(0.47,0.47, 0.47))
end
end
end
|