{"name":"selectDiarySubject","operator":null,"title":"selectDiarySubject","type":"command","url":"https://community.bistudio.com/wiki/selectDiarySubject","revid":349165,"updated":"2023-11-08T14:49:52Z","groups":["Briefing"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":"local","effect":"local","server_exec":false},"exec":null,"description":"Selects a subject page in the diary. The subject page is selected but the command does not open the map by default, which could be opened with openMap if necessary.","syntaxes":[{"syntax":"player selectDiarySubject subject","since":null,"effect":null,"exec":null,"params":[{"name":"player","type":"Object","optional":false,"default":null,"description":"player","types":["Object"],"since":null,"text":"player: Object - player"},{"name":"subject","type":"String","optional":false,"default":null,"description":"subject name, for example \"Diary\" (see also Diary).\n\n> [!NOTE]\n> In order to open a specific record inside a subject one can append `Record#` to the subject name.\n>\n> ```sqf\n> player selectDiarySubject \"Diary:Record0\"; // selects the first record in the diary subject (from bottom to top)\n> player selectDiarySubject \"Diary:Record1\"; // selects the second record\n> ```","types":["String"],"since":null,"text":"subject: String - subject name, for example \"Diary\" (see also Diary).\n\n> [!NOTE]\n> In order to open a specific record inside a subject one can append `Record#` to the subject name.\n>\n> ```sqf\n> player selectDiarySubject \"Diary:Record0\"; // selects the first record in the diary subject (from bottom to top)\n> player selectDiarySubject \"Diary:Record1\"; // selects the second record\n> ```"}],"returns":{"type":"Boolean","types":["Boolean"],"description":"true if subject was successfully selected","text":"Boolean - true if subject was successfully selected"},"form":"binary","operator":null,"left":{"text":"player","types":["Object"]},"right":{"text":"subject","types":["String"]}}],"examples":[{"text":"```sqf\nopenMap true;\nplayer selectDiarySubject \"Diary\";\n```","code":["openMap true;\nplayer selectDiarySubject \"Diary\";"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["processDiaryLink","createDiaryLink","createDiarySubject","diarySubjectExists","allDiarySubjects"],"notes":[],"categories":["Arma 2: New Scripting Commands","Arma 2: Operation Arrowhead: Scripting Commands","Arma 2: Scripting Commands","Arma 3: Scripting Commands","Command Group: Briefing","Introduced with Arma 2 version 1.00","Scripting Commands","Scripting Commands: Local Effect","Take On Helicopters: Scripting Commands"]}