Need help on the inventory texts and door texts! - 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: Need help on the inventory texts and door texts! (/thread-16523.html) Pages:
1
2
|
Need help on the inventory texts and door texts! - TerrorsEnd - 06-26-2012 So. My extra_english.lang has everything correct I think, but I still cant see the mementoes, notes, key text, door text etc. Here's my extra_english.lang <LANGUAGE> <CATEGORY Name="CustomStoryMain"> <Entry Name="Description">In this custom story you play as Joshua Hopkins, an old slave. You wake up in a room, remembering nothing from last night. You will find out that something is beginning to grow. You must stop it and get out of here. Good luck, hope you enjoy! -Esteban and Bundle of TerrorsEnd</Entry> </CATEGORY> <CATEGORY Name="Journal"> <Entry Name="kiisseli_Name">For you strange sir.</Entry> <Entry Name="kiisseli_Text">I found you wandering around the woods drunk which IS NOT recommended since the weird monsters.. -Sir Esteban</Entry> <Entry Name="NoteLetter_Name">Ritual.</Entry> <Entry Name="NoteLetter_Text">I have finally completed this ritual.. Sir Esteban doesn't even know I'm here to do evil.. and I really mean evil things! *Evil laugh* I will destroy the whole world!</Entry> </CATEGORY> <CATEGORY Name="level_cellar_1" <Entry Name="level_cellar_1">This door is locked. A key is required to open it!</Entry> </CATEGORY> <CATEGORY Name="Inventory" <Entry Name="ItemName_Cellarkey">Cellar key</Entry> <Entry Name="ItemDesc_Cellarkey">Key used for Cellar door</Entry> </CATEGORY> <CATEGORY Name="Inventory" <Entry Name="ItemName_Trollkey">Trollkey</Entry> <Entry Name="ItemDesc_Trollkey">Trollkey</Entry> </CATEGORY> </LANGUAGE> RE: Need help on the inventory texts and door texts! - Obliviator27 - 06-26-2012 <CATEGORY Name="Inventory"> <Entry Name="ItemName_Cellarkey">Cellar key</Entry> <Entry Name="ItemDesc_Cellarkey">Key used for Cellar door</Entry> <Entry Name="ItemName_Trollkey">Trollkey</Entry> <Entry Name="ItemDesc_Trollkey">Trollkey</Entry> </CATEGORY> You had two Inventory categories for some reason. You were also missing the > after "Inventory" RE: Need help on the inventory texts and door texts! - TerrorsEnd - 06-27-2012 (06-26-2012, 11:48 PM)Obliviator27 Wrote: Cellar key Did it, doesn't work RE: Need help on the inventory texts and door texts! - Obliviator27 - 06-27-2012 Whoop. Missed it the first time. You're also missing the > after "level_cellar_1". RE: Need help on the inventory texts and door texts! - TerrorsEnd - 06-27-2012 (06-27-2012, 12:03 AM)Obliviator27 Wrote: Whoop. Missed it the first time. Everything else works but the mementoes and note texts :/ Oh and a new error here: I can't get the key working for a level door RE: Need help on the inventory texts and door texts! - Obliviator27 - 06-27-2012 You need to have it as <Entry Name="Note_NOTE TEXT NAME HERE_Name"> And make sure you use SetLevelDoorLocked as opposed to SetSwingDoorLocked. If that's not the issue, then there's probably a naming problem in your level editor. RE: Need help on the inventory texts and door texts! - TerrorsEnd - 06-27-2012 (06-27-2012, 12:18 AM)Obliviator27 Wrote: You need to have it as error: No matching signatures to 'SetLevelDoorLocked(string@&, const bool, const bool)' RE: Need help on the inventory texts and door texts! - Obliviator27 - 06-27-2012 It's not the same as a level door. SetLevelDoorLocked(string& asName, bool abLocked); It's dangerous to script alone. Take this! http://wiki.frictionalgames.com/hpl2/amnesia/script_functions RE: Need help on the inventory texts and door texts! - TerrorsEnd - 06-27-2012 void OnEnter() { AddUseItemCallback("", "cellarkey", "level_cellar_1", "KeyOnDoor", true); } void KeyOnDoor(string &in asItem, string &in asEntity) { SetLevelDoorLocked("level_cellar_1", true); PlaySoundAtEntity("", "unlock_door", "level_cellar_1", 1, false); RemoveItem("cellarkey"); } I have it like this and it doesn't work. Also I got the notes working. RE: Need help on the inventory texts and door texts! - Obliviator27 - 06-27-2012 You'll have to specify what doesn't work. As far as your script goes, you're telling the door to lock. Use false instead of true. |