Frictional Games Forum (read-only)
Quest script help - 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 (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Quest script help (/thread-6885.html)



Quest script help - Raymond - 03-14-2011

I need to know what to put for the quest script.

Code:
AddQuest(string& asName, string& asNameAndTextEntry);

I did found the script but i don't know what to put, please help Sad.


RE: Quest script help - Russ Money - 03-14-2011

(03-14-2011, 07:17 AM)Raymond Wrote: I need to know what to put for the quest script.

Code:
AddQuest(string& asName, string& asNameAndTextEntry);

I did found the script but i don't know what to put, please help Sad.

In the Journal category in you .lang file, add the following.

Code:
<Entry Name="Quest_"QUEST NAME HERE"_Text"> "QUEST TEXT HERE" </Entry>
//Remove the quotes and spaces


Then use the func as
Code:
AddQuest("STRING NAME", "QUEST NAME HERE");

Later, once the quest is complete

Code:
CompleteQuest("STRING NAME", "QUEST NAME HERE");

Just change the names in the script, leave the quotes.


RE: Quest script help - Raymond - 03-14-2011

Thank you very much Big Grin.


RE: Quest script help - larslu - 03-21-2011

(03-14-2011, 08:29 AM)Russ Money Wrote:
(03-14-2011, 07:17 AM)Raymond Wrote: I need to know what to put for the quest script.

Code:
AddQuest(string& asName, string& asNameAndTextEntry);

I did found the script but i don't know what to put, please help Sad.

In the Journal category in you .lang file, add the following.

Code:
<Entry Name="Quest_"QUEST NAME HERE"_Text"> "QUEST TEXT HERE" </Entry>
//Remove the quotes and spaces


Then use the func as
Code:
AddQuest("STRING NAME", "QUEST NAME HERE");

Later, once the quest is complete

Code:
CompleteQuest("STRING NAME", "QUEST NAME HERE");

Just change the names in the script, leave the quotes.

One more question, what if you want to add a quest and complete a quest in a area?


RE: Quest script help - Anxt - 03-21-2011

Just use an AddEntityCollideCallback for the player and the area, and have the function that is called give the quest.


RE: Quest script help - Raymond - 03-22-2011

(03-21-2011, 11:54 PM)Anxt Wrote: Just use an AddEntityCollideCallback for the player and the area, and have the function that is called give the quest.
I put a lot of quests in my story. Some of them can't be completed until when you reach the last world.