[LANG] When Key Picked Up It Says Picked Up - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html) +--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: [LANG] When Key Picked Up It Says Picked Up (/thread-13055.html) |
When Key Picked Up It Says Picked Up - heyitsrobert97 - 02-03-2012 I Have Done a Key Script for a door but when i pick up the key it just says 'picked up' and in the description it doesn't say anything can someone please tell me what i am doing wrong In Level Editor the Key is called 'hallkey' and the door 'halldoor' and in the entity tab on the key i put customsubitemname to 'hall_key' so could u help? LANG <LANGUAGE> <CATEGORY Name="CustomStoryMain"> <Entry Name="Description"> You are Inside This strange House that you entered after hearing screams from inside </Entry> </Entry> </CATEGORY> </CATEGORY Name="Inventory"> <Entry Name="ItemName_hall_key">Hall Key</Entry> <Entry Name="ItemDesc_hall_key"> Key Labeled "Hall Key"</Entry> </CATEGORY> </LANGUAGE> and the script works but here it is for anyone who wants a working one. { AddUseItemCallback("", "hallkey", "halldoor", "hallkeydoor", true); } void hallkeydoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("halldoor", false, true); PlaySoundAtEntity("", "unlock_door.snt", "halldoor", 0, false); RemoveItem("hallkey"); PlaySoundAtEntity("", "react_sigh.snt", "Player", 0, false); } RE: When Key Picked Up It Says Picked Up - Obliviator27 - 02-03-2012 You have </CATEGORY Name="Inventory"> Remove the /. RE: When Key Picked Up It Says Picked Up - heyitsrobert97 - 02-03-2012 (02-03-2012, 05:28 AM)Obliviator27 Wrote: You have </CATEGORY Name="Inventory">It Is Still The same RE: When Key Picked Up It Says Picked Up - Your Computer - 02-03-2012 Remove the second </Entry> for the Description entry. RE: When Key Picked Up It Says Picked Up - Obliviator27 - 02-03-2012 ^ Missed that. RE: When Key Picked Up It Says Picked Up - heyitsrobert97 - 02-03-2012 (02-03-2012, 06:23 AM)Obliviator27 Wrote: ^ Missed that.Thanks So Much i was wondering why there was no description either. +rep for you and for Your Computer RE: When Key Picked Up It Says Picked Up - GrAVit - 02-03-2012 Yeah, the whole .lang file just fails if there's even one single typo in the important part of the code or anything like that. Kinda sucks. |