![]() |
[SOLVED]Memento dont work - 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: [SOLVED]Memento dont work (/thread-25361.html) Pages:
1
2
|
[SOLVED]Memento dont work - Rowzter - 05-25-2014 I created an area that give's the player a memento. but when the player looks up the memento there is no text. Script: Quote:AddEntityCollideCallback("Player", "padlock", "padlockquest", true, 1);.lang: Quote:<Entry Name="Quest_padlockdoor_Name">Padlock.</Entry> I have no idea whats missing. i checked so the entry name and text is under the journal category RE: Memento dont work - Radical Batz - 05-25-2014 (05-25-2014, 01:57 PM)Rowzter Wrote: I created an area that give's the player a memento. but when the player looks up the memento there is no text. Make sure your area has the right name? and is that your whole lang file? Code: remember to always put this at the end of the journal entry </CATEGORY> and I hope you have this If you already made all of that and still doesn't work then Idk what's the prob :/ RE: Memento dont work - Rowzter - 05-25-2014 (05-25-2014, 02:04 PM)Badcat5550 Wrote:(05-25-2014, 01:57 PM)Rowzter Wrote: I created an area that give's the player a memento. but when the player looks up the memento there is no text. The area must be correct because i get the memento in my journal but there is no text. and i check so there is both the Category end and language end RE: Memento dont work - Radical Batz - 05-25-2014 The area must be correct because i get the memento in my journal but there is no text. [/quote] Probably something wrong with your lang file then. as I said Code: remember to always put this at the end of every category </CATEGORY> and I hope you have this RE: Memento dont work - Rowzter - 05-25-2014 (05-25-2014, 02:09 PM)Badcat5550 Wrote: The area must be correct because i get the memento in my journal but there is no text. Probably something wrong with your lang file then. as I said Code: remember to always put this at the end of every category </CATEGORY> and I hope you have this my full lang: Code: <LANGUAGE> RE: Memento dont work - Radical Batz - 05-25-2014 Try this void padlockquest(string &in asParent, string &in asChild, int alState) { AddQuest ("YOUR AREA NAME", "padlockdoor"); } because I think I found the problem! If that works then why not give me a rating if you want. RE: Memento dont work - Rowzter - 05-25-2014 (05-25-2014, 02:22 PM)Badcat5550 Wrote: Try this Yay! that worked =D. Let's give ratings! Meanwhile i got ur attention. how to u make a key unlock a leveldoor that is in another level/map RE: Memento dont work - Mudbill - 05-25-2014 Does any other text in your story appear? For example the menu description? If not, something's causing the lang to not load, but if it does, the problem lies with the memento itself. You know mementos don't use names, just text? You can cut out that _Name one. A memento looks like this: PHP Code: <CATEGORY Name="Journal"> Oh, and the AddQuest script does not work like that. The problem must be that you put "Journal" in your quotes. The category is hard-coded, so you never define it anywhere. Put padlockdoor in both strings. First string is the reference name of the quest, the second is the entry in the lang. Edit: Looks like you figured it out, but oh well. There's an explanation at least. To make a key unlock a level door, you must use the SetLevelDoorLocked("DoorName", false); in the level.hps you want it to happen in. As long as the key name matches, it can be used in any level. RE: Memento dont work - Romulator - 05-25-2014 Spoiler below!
Add this to the .hps file which has the locked Level door in its .map file: PHP Code: void OnStart() RE: Memento dont work - Radical Batz - 05-25-2014 Meanwhile i got ur attention. how to u make a key unlock a leveldoor that is in another level/map [/quote] It doesn't matter which map it is to unlock a level door, if you get a key from one level and go to another level it will still be the same. But yeah this is the code to make a key unlock any level door. Code: AddUseItemCallback("", "NAME OF YOUR KEY", "NAME OF THE LEVEL DOOR YOU WANNA UNLOCK", "LevelDoorunlocked", True); Hope that helps. ![]() |