{"name":"createDiarySubject","title":"createDiarySubject","type":"command","url":"https://community.bistudio.com/wiki/createDiarySubject","revid":364194,"updated":"2024-05-05T10:46:53Z","groups":["Briefing"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","locality":{"argument":"local","effect":"local"},"description":"Creates a new subject in the Diary.","syntaxes":[{"syntax":"player createDiarySubject [subject, displayName, picture]","params":[{"name":"player","type":"Object","type_expr":"Object"},{"name":"subject","type":"String","type_expr":"String"},{"name":"displayName","type":"String","description":"the visible name","type_expr":"String"},{"name":"picture","type":"String","optional":true,"default":"`\"\"`","description":"icon to display next to the subject. Can be set later with setDiarySubjectPicture. Similar to lbSetPictureRight.","type_expr":"String","text":"picture: String - (Optional, default `\"\"`) icon to display next to the subject. Can be set later with setDiarySubjectPicture. Similar to lbSetPictureRight."}],"returns":{"type":"Number","type_expr":"Number","description":"index of the entry that was added"},"form":"binary","left":{"text":"player"},"right":{"text":"[subject, displayName, picture]"}}],"examples":[{"code":["_index = player createDiarySubject [\"myPage\",\"My page\"];"]}],"see_also":["removeDiarySubject","processDiaryLink","createDiaryLink","createDiaryRecord","diarySubjectExists","setDiarySubjectPicture","allDiarySubjects"]}