![]() |
Need help with adding mementos/quests. - 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 with adding mementos/quests. (/thread-9664.html) |
Need help with adding mementos/quests. - SonOfLiberty796 - 08-09-2011 Ok so here's my script: Code: .hps I got the AddQuest to work (it shows up in my game that i received a memento. However, when i try to delete that memento, it doesnt. Btw i added .hps and .lang just to clarify that its those files, its not in my script. Any help? Please and thank you. RE: Need help with adding mementos/quests. - Kurton - 08-09-2011 Try changing CompleteQuest("readnotecomplete", "readnotecomplete"); to CompleteQuest("readnote", "readnote"); That is what deletes it, I'm pretty sure. RE: Need help with adding mementos/quests. - SonOfLiberty796 - 08-09-2011 (08-09-2011, 06:21 AM)Kurton Wrote: Try changing Hm, it does delete it, but it instantly deletes it. Like it doesnt even tell me what the quest was... RE: Need help with adding mementos/quests. - Kurton - 08-09-2011 Oh! Derp, I didn't notice; You have the AddQuest and CompleteQuest in the same function, of course it will delete once it is added. Move the CompleteQuest to a function called when the objective is actually completed, then. RE: Need help with adding mementos/quests. - SonOfLiberty796 - 08-09-2011 (08-09-2011, 06:29 AM)Kurton Wrote: Oh! Derp, I didn't notice; You have the AddQuest and CompleteQuest in the same function, of course it will delete once it is added. Move the CompleteQuest to a function called when the objective is actually completed, then. I understand you..but um...im a noob at scripting (pretty much the quests/mementos part got me stuck) so i would love if you could explain a example? EDIT: Code: void OnEnter() Like this? If so, what do i fill the "void (blank)" with? EDIT2:Never mind! I finally figured it out! ![]() ![]() ![]() |