Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
** SOLVED ** Key Doesn't Unlock Door!
DeAngelo Offline
Senior Member

Posts: 263
Threads: 26
Joined: Feb 2013
Reputation: 11
#2
RE: Key Doesn't Unlock Door, No Desc or Key Name?

Two things:

Your Lang problem is highlighted in red here:
<LANGUAGE>

<RESOURCES>

</RESOURCES>



<CATEGORY Name="CustomStoryMain">

<Entry Name="Description">Dare to enter the castle tombs...</Entry>

</CATEGORY>

<CATEGORY Name="Messages">

<Entry Name="doorlock1">No need to go back outside...</Entry>

</CATEGORY>

<CATEGORY Name="Inventory">

<Entry Name="ItemName_Key1">room key</Entry>

<Entry Name="ItemDesc_Key1">The key for my room.</Entry>

</CATERGORY>



</LANGUAGE>


and your key not unlocking your door, the problem is highlighted in red here:


void OnStart()

{

AddUseItemCallback("item", "Key1", "masion_Door", "FUNCTION", true);

}



void OnEnter()

{



}



void OnLeave()

{



}

void FUNCTION(string &in asItem, string &in asEntity)

{

SetLevelDoorLocked("masion_Door", false);

PlayGuiSound("unlock.door.snt", 100);

RemoveItem("item");

}


Make those changes and it should work. Oh and the "item" in your RemoveItem at the end should be changed to RemoveItem("Key1"); if you're wanting it to remove the key that unlocked the door. Unless you actually have an item named "item" it won't work.

A Late Night Drink http://www.moddb.com/mods/a-late-night-drink
Check out my LP channel, CatBearGaming, I take all Custom Story requests!
05-01-2013, 12:26 PM
Find


Messages In This Thread
RE: Key Doesn't Unlock Door, No Desc or Key Name? - by DeAngelo - 05-01-2013, 12:26 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 12:49 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 12:54 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 01:02 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 01:05 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 01:09 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 01:12 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 01:14 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 01:16 PM
RE: Key Doesn't Unlock Door! - by FurtherGames - 05-01-2013, 01:39 PM
RE: Key Doesn't Unlock Door! - by Kullin - 05-01-2013, 01:17 PM
RE: Key Doesn't Unlock Door! - by DeAngelo - 05-01-2013, 01:19 PM



Users browsing this thread: 2 Guest(s)