{"name":"BIS_fnc_addCuratorChallenge","title":"BIS fnc addCuratorChallenge","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_addCuratorChallenge","revid":279021,"updated":"2021-06-13T21:47:50Z","groups":["CuratorChallenges"],"status":"ok","games":{"arma3":"1.16"},"since":"arma3 1.16","arma3_since":"1.16","locality":{"server_exec":true},"description":"Add challenges for curator to complete","syntaxes":[{"syntax":"[param0] call BIS_fnc_addCuratorChallenge","params":[{"name":"param0","type":"Object","type_expr":"Object","optional":true,"default":"all challenges","description":"curator\n1 (Optional): ARRAY - list of supported challenges from CfgCuratorChallenges (default: all challenges)\n2 (Optional): NUMBER - number of added challenges (default: 3)\n3 (Optional): CODE - condition for challenges to remain active {default: true}\n4 (optional):\n    CODE or [CODE,STRING] - code executed upon completing all challenges and reward description\n    Arguments passed to the code are:\n        0: OBJECT - curator\n        1: NUMBER - number of previously completed challenges by given curator\n        2: STRING - parent task ID\n5 (Optional): STRING - parent task ID","text":"0: OBJECT - curator\n1 (Optional): ARRAY - list of supported challenges from CfgCuratorChallenges (default: all challenges)\n2 (Optional): NUMBER - number of added challenges (default: 3)\n3 (Optional): CODE - condition for challenges to remain active {default: true}\n4 (optional):\n    CODE or [CODE,STRING] - code executed upon completing all challenges and reward description\n    Arguments passed to the code are:\n        0: OBJECT - curator\n        1: NUMBER - number of previously completed challenges by given curator\n        2: STRING - parent task ID\n5 (Optional): STRING - parent task ID","source":"docblock"}],"returns":{"type":"String","type_expr":"String","description":"ID of parent task under which all challenge tasks are","text":"STRING - ID of parent task under which all challenge tasks are","source":"docblock"},"inferred":true}],"docblock":{"text":"Description:\nAdd challenges for curator to complete\n\nParameter(s):\n    0: OBJECT - curator\n    1 (Optional): ARRAY - list of supported challenges from CfgCuratorChallenges (default: all challenges)\n    2 (Optional): NUMBER - number of added challenges (default: 3)\n    3 (Optional): CODE - condition for challenges to remain active {default: true}\n    4 (optional):\n        CODE or [CODE,STRING] - code executed upon completing all challenges and reward description\n        Arguments passed to the code are:\n            0: OBJECT - curator\n            1: NUMBER - number of previously completed challenges by given curator\n            2: STRING - parent task ID\n    5 (Optional): STRING - parent task ID\n\nReturns:\nSTRING - ID of parent task under which all challenge tasks are"},"filled_from_docblock":["description","params","syntax","returns"]}