The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Diaries don't open the journal
Viperdream Offline
Member

Posts: 124
Threads: 16
Joined: Jan 2011
Reputation: 0
#1
Diaries don't open the journal

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

03-12-2011, 09:00 PM
Find


Messages In This Thread
Diaries don't open the journal - by Viperdream - 03-12-2011, 09:00 PM



Users browsing this thread: 1 Guest(s)