Frictional Games Forum (read-only)
AddQuest does not 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: AddQuest does not work (/thread-17573.html)



AddQuest does not work - Lake - 08-07-2012

this is the complete script:

Code:
void tictac(string &in asParient, string &in asChild, int alState)
{
SetEntityActive("mining_room_wall_1", true);
SetEntityActive("mining_room_wall_2", true);
SetEntityActive("mining_room_wall_3", true);
SetLightVisible("PointLight_1", false);
SetLightVisible("PointLight_2", false);
SetMessage("Messages", "sbarre", 0);
SetPlayerActive(false);
StartPlayerLookAt("wine02_1", 1, 1, "");
AddTimer("", 5, "lookat");
AddQuest("", "quest3");
}

lang:

Code:
<CATEGORY Name="Journal">
<Entry Name="Quest_quest3_Text">Cerca un modo per scappare dal primo piano</Entry>
</CATEGORY>

everything works except AddQuest


RE: AddQuest does not work - Statyk - 08-07-2012

AddQuest("QUESTNAME", "quest3");

It needs a name so that you may remove it later.

Also, your syntax is messed up.
void tictac(string &in asParient, string &in asChild, int alState)

Remove the "i"


RE: AddQuest does not work - Lake - 08-08-2012

ok, now it works problem solved, thanks