I'm currently working on my first Amnesia Custom Story and just began scripting quests for it.
I've added 3 quests to my first map, and one of them won't load. It's supposed to trigger when entering an area but it simply wont.
<CATEGORY Name = "CustomStoryMain">
<Entry Name="Description">Spooky time...</Entry>
</CATEGORY>
<CATEGORY Name="Journal">
<Entry Name="Note_A1_Name">Doctor's Note</Entry>
<Entry Name="Note_A1_Text">Doctor's Note date 1833 24th June.[br][br] I finally to escape these god forsaken monsters. They've been chasing me ever since I created them... Unthankful bastards!</Entry>
<Entry Name="Note_A2_Name">Weird behavior</Entry>
<Entry Name="Note_A2_Text">Still 1833 24th June.[br][br] Don't really know why I am writing these notes... I am the only human for a thousand miles. Oh, and if you happend to find a key in this room, don't use it to open the next door, weird shit might happen.</Entry>
<Entry Name="Note_A3_Name">Concerning the coffin</Entry>
<Entry Name="Note_A3_Text">1833 23rd June[br][br] A brunt found me hiding, I had to escape through the tunnel and get to my working place.</Entry>
<Entry Name="Quest_IsDoctorHere_Text">There might be a key this room here somewhere...</Entry>
<Entry Name="Quest_ExloreArea_Text">Exlore this room.</Entry>
<Entry Name="Quest_opendoor_Text">Open the Locked Door with the key you just acquired.</Entry>
<Entry Name="Quest_LockedDoor2_Text">Open the Locked Door with the key you just acquired.</Entry>
<Entry Name="Quest_BreakBoards_Text">Need to find something to break those boards.</Entry>
<Entry Name="Quest_LockedDoor1_Text">Need to find a key to unlock this room.</Entry>
</CATEGORY>
<CATEGORY Name="Messages">
<Entry Name="DoorLocked">You need a key.</Entry>
</CATEGORY>
<CATEGORY Name="Inventory">
<Entry Name="ItemName_Key1">Key to Working Place</Entry>
<Entry Name="ItemDesc_Key1">Tag reads "Working Place".</Entry>
<Entry Name="ItemName_Key_2">Key to get the Hell out of here.</Entry>
<Entry Name="ItemDesc_Key_2">Tag reads "Hell".</Entry>
<Entry Name="ItemName_Key_3">Key to outside</Entry>
<Entry Name="ItemDesc_Key_3">Tag reads "Outside".</Entry>
<Entry Name="ItemName_nyckel_1">Key to appartment</Entry>
<Entry Name="ItemDesc_nyckel_1">Tag reads "'Appartment'".</Entry>
<Entry Name="ItemName_supermobnyckel">Key to Death Pain Room of Impending Doom.</Entry>
<Entry Name="ItemDesc_supermobnyckel">Tag reads "Pain Room".</Entry>
</CATEGORY>
<CATEGORY Name="Strangeness">
<Entry Name="Intro">The Plane?[br]I remember now...[br]The shearing of metal...[br]The rush of wind as the plane ripped itself apart...[br]And yet everyone is calm...[br]The oxygen they gave us caused that...[br]Made us docile...[br]Accepted of our fate...[br]Our inevitable end...</Entry>
<Entry Name="Arrival">Where...[br]What is this place?[br]How did I get here?</Entry>
<Entry Name="Hallucination">That... monster?![br]It destroyed the doors...[br]But it wasn't real...</Entry>
<Entry Name="EmotionStone_1">I can't place it but it was like I was there but wasn't...</Entry>
</CATEGORY>
<CATEGORY Name="EmotionStone">
<Entry Name="EmotionStone_1">The experiment failed, I have created a monster...[br][br]"This is a delicate procedure, it ain't a laughing matter."</Entry>
</CATEGORY>
<CATEGORY Name="Ending">
<Entry Name="Credits">This is only the beginning...[br][br][br][br][br][br][br]Level Design, Scripting, Story[br]Dark88[br][br][br][br]Thanks to[br][br]Frictional Games for making this game,[br][br][br]and Frictional Forum Community for helping out with scripting,[br][br][br]and You for playing...</Entry>
</CATEGORY>
</LANGUAGE>
Danger Ahead (QQ2 won't load when entering ScriptArea_1)
ERROR: Unable to open config file 'MainEditorSettings.cfg'! Invalid filepointer returned!
and my Extra_English.lang file is taken from someone elses map, and changed so all strings fits my map, don't know what the QuestCompleted entry means :<
ERROR: Unable to open config file 'MainEditorSettings.cfg'! Invalid filepointer returned!
and my Extra_English.lang file is taken from someone elses map, and changed so all strings fits my map, don't know what the QuestCompleted entry means :<
QQ2 -> remove that 2. I think that if you use numbers in function it might cause errors. Try to use like: QQTwo instead, or something like that. I am not sure, but give it a try
/// Ignore above, it is only if function starts with number
Anyway, when you use collide callback, then later in function you need to use:
void FunctionName(string &in asParent, string &in asChild, int alState)
(02-04-2012, 10:04 PM)Elven Wrote: I am not sure if it is cause, but:
QQ2 -> remove that 2. I think that if you use numbers in function it might cause errors. Try to use like: QQTwo instead, or something like that. I am not sure, but give it a try
/// Ignore above, it is only if function starts with number
Anyway, when you use collide callback, then later in function you need to use:
void FunctionName(string &in asParent, string &in asChild, int alState)
Yes this fixed the second quest!
But the gigantic error still remains when starting the second map Noob.map