Page 2 of 2

Re: adding a party member further into the dungeon

Posted: Thu Sep 27, 2012 3:57 am
by tyterrio
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.)

Re: adding a party member further into the dungeon

Posted: Thu Sep 27, 2012 4:26 am
by Shloogorgh
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