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
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
Code: Select all
function Music01()
local ch = nil
for i=1,4 do
ch = party.party:getChampion(i)
if ch:isAlive() then
ch:gainExp(50)
end
end
if ch then hudPrint(" "..ch:getName().." plays the flute gained 50 XP.") end
playSound("level_up")
end