Chest Locks with Keys not Lock Picks

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
User avatar
Eleven Warrior
Posts: 752
Joined: Thu Apr 18, 2013 2:32 pm
Location: Australia

Chest Locks with Keys not Lock Picks

Post by Eleven Warrior »

Hi al sorry about this. I think I read how someone changed the Lock on a Chest to accept a Key(s) other than the Lock Pick, if so can someone please give me the code or object etc.... Thxs for your time guys :) Or how do I change a Iron Key to be a lock pick but with a different name and GUI name?

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
User avatar
Drakkan
Posts: 1318
Joined: Mon Dec 31, 2012 12:25 am

Re: Chest Locks with Keys not Lock Picks

Post by Drakkan »

Breath from the unpromising waters.
Eye of the Atlantis
User avatar
Eleven Warrior
Posts: 752
Joined: Thu Apr 18, 2013 2:32 pm
Location: Australia

Re: Chest Locks with Keys not Lock Picks

Post by Eleven Warrior »

Thxs Drakkan :)
Post Reply