[SCRIPT] (SOLVED) Help! Mementos not working?? - 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: [SCRIPT] (SOLVED) Help! Mementos not working?? (/thread-18139.html) |
(SOLVED) Help! Mementos not working?? - bri2ny - 09-03-2012 My scripting is set to popup a text on the screen plus add a memento after the player has interacted with a locked door...but every time I run the game in dev_ the text on the screen appears though the memento entry is just "-". Here is my scripting for just the two functions: In HPS Code: void OnStart(){SetEntityPlayerInteractCallback("librarydoor_1", "Hint01", true);} In .lang Code: The upstairs door is locked, I need to find a way around. RE: Help! Mementos not working?? - Steve - 09-03-2012 void Hint01(string &in asEntity) { SetMessage("Hints", "Hint01", 3); AddQuest("Memento1", "Quest1"); } this highlighted should do it. RE: Help! Mementos not working?? - bri2ny - 09-03-2012 (09-03-2012, 07:49 PM)Steve Wrote: void Hint01(string &in asEntity)Ah crap, now I feel dumb...I guess the Engine scripts wiki confused me under "AddQuest" when it said "asNameAndTextEntry - entry in the .lang file. Must start with “Quest_<texthere>_Text”, and be in category “Journal”!" Sorry about that Thanks! |