To many hudprints
Posted: Sat Feb 29, 2020 3:21 am
With the below code it create 4 hudprints and I only want the one hudprint and that is the champ who plays the flute.
Ty for the help
Code: Select all
function Music01()
for i=1,4 do
local ch = party.party:getChampion(i)
if ch:isAlive() then
ch:gainExp(50)
end
hudPrint(" "..ch:getName().." plays the flute gained 50 XP.")
end
playSound("level_up")
end