Re: adding a party member further into the dungeon
Posted: Thu Sep 27, 2012 3:57 am
Hmmm.. not quite there, but I know im close. Maybe you can take a look at this?
Im using an activated torch (torchHolder1) to get rid of my party. And trying to use a lever (partyLever) to add one member back.
I've connected the torch to a lua script with this:
function oneMember()
if torchHolder1:hasTorch() == true then
party:getChampion(2):setEnabled(false)
party:getChampion(3):setEnabled(false)
party:getChampion(4):setEnabled(false)
end
end
And i've connected the lever to a separate lua script here:
function addParty()
if party:getChampion(2):setEnabled(false) and
partyLever:getLeverState() == "activated" then
party:getChampion(2):setEnabled(enabled)
end
end
Any thoughts on the disconnect? I think if I can figure this out. I can do whatever else I might need for adding members back later (whether is through quest, items, levers, etc.)
Im using an activated torch (torchHolder1) to get rid of my party. And trying to use a lever (partyLever) to add one member back.
I've connected the torch to a lua script with this:
function oneMember()
if torchHolder1:hasTorch() == true then
party:getChampion(2):setEnabled(false)
party:getChampion(3):setEnabled(false)
party:getChampion(4):setEnabled(false)
end
end
And i've connected the lever to a separate lua script here:
function addParty()
if party:getChampion(2):setEnabled(false) and
partyLever:getLeverState() == "activated" then
party:getChampion(2):setEnabled(enabled)
end
end
Any thoughts on the disconnect? I think if I can figure this out. I can do whatever else I might need for adding members back later (whether is through quest, items, levers, etc.)