EDIT: Also I know this script works when the champ with the right name activates it, but how do I add a else statement if the champ is not in the party?
Code: Select all
function Sercret1a()
for i=1,4 do
local name = party.party:getChampion(i):getName()
if name == "Shadow" then
hudPrint("Shadow: Wait!! that wall to the right seems strange.")
playSound("discover_spell")
dungeon_door_wooden_1.door:open()
else -- If the champ is not found then it hudPrints the below line----
hudPrint("You need Shadow to open this door.")
end
end
end