![]() |
[SCRIPT] Add quest after reading note? - 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] Add quest after reading note? (/thread-21213.html) |
Add quest after reading note? - serbusfish - 04-19-2013 I was just wondering how do I add a quest once you have picked up and read a note? RE: Add quest after reading note? - The chaser - 04-19-2013 Just use: void OnStart() { SetEntityCallbackFunc("DaNote", "OnPickup"); } void OnPickup (string &in asEntity, string &in asType) { AddQuest("Nameofthequest", "Entryofthequest"); } RE: Add quest after reading note? - PutraenusAlivius - 04-19-2013 For the quest after note thing; PHP Code: void OnStart() @The Chaser The quest will be added when the Player picks it up. He wants it to be added when the Player was finished reading it too. RE: Add quest after reading note? - i3670 - 04-19-2013 (04-19-2013, 03:22 PM)JustAnotherPlayer Wrote: For the quest after note thing; There's no script that can check if the player has read the note only if the player has picked it up. Anyway, the note will open automatically on pick up so just use the interactcallback RE: Add quest after reading note? - ClayPigeon - 04-19-2013 Once the player picks a note up, the game is paused. So it's enough setting a 0.1 ms timer. RE: Add quest after reading note? - The chaser - 04-19-2013 With the correction of JustAnotherPlayer, it would be like this: void OnStart() { SetEntityCallbackFunc("DaNote", "OnPickup"); } void OnPickup (string &in asEntity, string &in asType) { AddTimer("", 0.1, "AddDaQuest"); } void AddDaQuest(string &in asTimer) { AddQuest("Nameofthequest", "Entryofthequest"); } RE: Add quest after reading note? - WALP - 04-19-2013 just curious random person passing by. is mementos and quest the same thing? RE: Add quest after reading note? - FlawlessHappiness - 04-19-2013 Yes. In script language it's called quests. Ingame it was called mementos, but you can call it what you want if you have a FC RE: Add quest after reading note? - serbusfish - 04-22-2013 Thank you guys I will give it a go ![]() |