createDiaryLink: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " " to " ")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 42: Line 42:
</code>
</code>


| [[processDiaryLink]], [[createDiaryRecord]], [[createDiarySubject]], [[diarySubjectExists]] [[setDiaryRecordText]]
|seealso= [[processDiaryLink]], [[createDiaryRecord]], [[createDiarySubject]], [[diarySubjectExists]] [[setDiaryRecordText]]
}}
}}



Revision as of 23:30, 16 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Briefing

Syntax

Syntax:
Syntax needed
Parameters:
[subject, record, text]: Array -
subject: String
record: Object, Task or Diary Record
text: String
Return Value:
Return value needed

Examples

Example 1:
_link = createDiarySubject ["Group", player, "Player"]
Example 2:
diaryRec1 = player createDiaryRecord ["diary", ["Record 1", "We can't refer to next record (("]]; diaryRec2 = player createDiaryRecord ["diary", ["Record 2", "Go to " + (createDiaryLink ["Diary", diaryRec1, "record 1"])]]; diaryRec3 = player createDiaryRecord ["diary", ["Record 3", "Go to " + (createDiaryLink ["Diary", diaryRec2, "record 2"])]];
Example 3:
funcProcessDiaryLink = { processDiaryLink createDiaryLink ["diary", _this, ""]; }; diaryRec1 = player createDiaryRecord ["diary", ["Record 1", "In this example, we can go to any next record: go to <execute expression='diaryRec2 call funcProcessDiaryLink'>Record 2</execute>" ]]; diaryRec2 = player createDiaryRecord ["diary", ["Record 2", "Go to <execute expression='diaryRec3 call funcProcessDiaryLink'>Record 3</execute>" ]]; diaryRec3 = player createDiaryRecord ["diary", ["Record 3", "Go to <execute expression='diaryRec1 call funcProcessDiaryLink'>Record 1</execute>" ]];

Additional Information

See also:
processDiaryLinkcreateDiaryRecordcreateDiarySubjectdiarySubjectExists setDiaryRecordText

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note