03-12-2011, 09:00 PM
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:
My script:
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
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");
}
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");
}
Spoiler below!
//Diaries
void PickDiary(string &in asItem, int alEntryIdx)
{
PlayMusic("22_paper_daniel01.ogg", false, 1.0f, 4.0f, 3, true);
}
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