I am currently trying to play a particle effect within an alcove after placement of an item.
Here is my current code:
end
SpoilerShow
function gemaCheck()
local itemFound = false
for i in alcovegema:containedItems() do
if i.name == "blue_gem" then
itemFound = true
end
end
if itemFound then
spawn("fx", 1, 29, 10, 3, "smoke")
smoke:setParticleSystem("smoke_1")
smoke:translate(2, 1, 0)
blue_gem_2:destroy()
gemdoora:open()
gemdoorc:open()
hudPrint("A second secret door opens nearby...")
playSound("secret")
party:getChampion(1):gainExp(60)
party:getChampion(2):gainExp(60)
party:getChampion(3):gainExp(60)
party:getChampion(4):gainExp(60)
else
gemdoora:close()
end
end
local itemFound = false
for i in alcovegema:containedItems() do
if i.name == "blue_gem" then
itemFound = true
end
end
if itemFound then
spawn("fx", 1, 29, 10, 3, "smoke")
smoke:setParticleSystem("smoke_1")
smoke:translate(2, 1, 0)
blue_gem_2:destroy()
gemdoora:open()
gemdoorc:open()
hudPrint("A second secret door opens nearby...")
playSound("secret")
party:getChampion(1):gainExp(60)
party:getChampion(2):gainExp(60)
party:getChampion(3):gainExp(60)
party:getChampion(4):gainExp(60)
else
gemdoora:close()
end
end
Any and all help is appreciated!