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.)
adding a party member further into the dungeon
- Shloogorgh
- Posts: 45
- Joined: Sat Sep 22, 2012 12:24 am
Re: adding a party member further into the dungeon
Silly me, when I copied the relevant bit from my script, I forgot to insert the correction: setEnabled(true) instead of setEnabled(enabled)
Sorry about that, I better edit the original post so that doesn't happen again
Sorry about that, I better edit the original post so that doesn't happen again