![]() |
Something's wrong? - 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: Something's wrong? (/thread-10842.html) |
Something's wrong? - Victor - 10-19-2011 About the extra_english file: <LANGUAGE> <RESOURCES> </RESOURCES> <CATEGORY Name="Dark Territory"> <Entry Name="Description">You wake in a huge mansion with amnesia.</Entry> </CATEGORY> <CATEGORY Name="Journal"> <Entry Name="Note_testament_Name">Johan Gambolputty's Testament</Entry> <Entry Name="Note_testament_Text">My dearest Joanna, I don't have much time to write this to you because there are some people coming after me... Of course I'm letting you EVERYTHING I have... or... had... I can hear them knocking on the door. It's time... Sorry.[br] I love you. [br] [br] Johan Gambolputty</Entry> </CATEGORY> <CATEGORY Name="Inventory"> <Entry Name="ItemName_livingkey">Living Key</Entry> <Entry Name="ItemDesc_livingkey">Let's hope this is the key to the door over there.</Entry> </CATEGORY> </LANGUAGE> The description is not appearing and there's no text in the note, but the name and description of the key are working, such as the name of the level. I couldn't find anything wrong (but I don't know nothing about scripting, so...). And the .hps file (it has the same name as the .map file): //////////////////////////// // Run first time starting map void wakeUp() { FadeOut(2); FadeIn(20); FadeImageTrailTo(2, 2); FadeSepiaColorTo(100, 4); SetPlayerActive(false); FadePlayerRollTo(60, 350, 350); FadeRadialBlurTo(0.15, 2); SetPlayerCrouching(true); AddTimer("trig1", 20.0f, "beginStory"); AddUseItemCallback("", "livingkey", "livingdoor", "KeyOnDoor", true); } void KeyOnDoor(string &in asItem, string &in asEntity) { SetSwingDoorLocked("livingdoor", false, true); PlaySoundAtEntity("", "unlock_door", "livingdoor", 0, false); RemoveItem("livingkey"); } void beginStory(string &in asTimer) { ChangePlayerStateToNormal(); SetPlayerActive(true); FadePlayerRollTo(0, 33, 33); FadeRadialBlurTo(0.0, 1); FadeSepiaColorTo(0, 4); SetPlayerCrouching(false); FadeImageTrailTo(0,1); } //////////////////////////// // Run when entering map void OnEnter() { } //////////////////////////// // Run when leaving map void OnLeave() { } In this file, I've copied the code of the thread over here: http://www.frictionalgames.com/forum/thread-4626.html , but this intro isn't working, such as the key (livingkey). Please, help! And also... anybody know how to make things move? RE: Something's wrong? - Rapture - 10-19-2011 Is the name "testament" in Code: <Entry Name="Note_testament_Name"> |