Frictional Games Forum (read-only)
Diaries don't open the journal - 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: Diaries don't open the journal (/thread-6864.html)



Diaries don't open the journal - Viperdream - 03-12-2011

I have a small problem considering diaries.

I know that I need to add a callback in the level editor. I used PickDiary like in the files from the real game:
Game file:
Spoiler below!
// Player picks diary page, start guardian event
void PickDiary(string &in asItem, int alEntryIdx)
{
AddDebugMessage("Picked diary page", false);
PlayMusic("28_paper_daniel01.ogg", false, 0.4f, 0.5f, 10, false);

//DISABLED HERE, AFTER FIRST ALTAR INSTEAD AND NOT THE MAIN LARGE DOOR, THE SMALL ENTRANCE INSTEAD
//AddTimer("TimerGuardianRoar", 2.0f, "TimerGuardianRoar");
}
My script:
Spoiler below!
//Diaries
void PickDiary(string &in asItem, int alEntryIdx)
{
PlayMusic("22_paper_daniel01.ogg", false, 1.0f, 4.0f, 3, true);
}


They show up in the journal if I manually access them. But I want to let them automatically open like in the game and with notes. I tried the ReturnOpenJournal(true); but that didn't work.

Help is appreciated Smile


RE: Diaries don't open the journal - Pandemoneus - 03-12-2011

Are you using the same settings in the entity tab?

[Image: 10nxg5e.jpg]


RE: Diaries don't open the journal - Viperdream - 03-12-2011

I am, this is what is in it:
[Image: diary.jpg]