{"name":"BIS_fnc_addCuratorChallenge","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.16"}],"since":{"game":"arma3","name":"Arma 3","version":"1.16"},"arma3_since":"1.16","branch":null,"locality":{"argument":null,"effect":null,"server_exec":true},"exec":null,"description":"Add challenges for curator to complete","syntaxes":[{"syntax":"[param0, param0, param1, param2] call BIS_fnc_addCuratorChallenge","since":null,"effect":null,"exec":null,"params":[{"name":"param0","type":"Object","types":["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):\nCODE or [CODE,STRING] - code executed upon completing all challenges and reward description\nArguments passed to the code are:","since":null,"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):\nCODE or [CODE,STRING] - code executed upon completing all challenges and reward description\nArguments passed to the code are:","source":"docblock"},{"name":"param0","type":"Object","types":["Object"],"optional":false,"default":null,"description":"curator","since":null,"text":"0: OBJECT - curator","source":"docblock"},{"name":"param1","type":"Number","types":["Number"],"optional":false,"default":null,"description":"number of previously completed challenges by given curator","since":null,"text":"1: NUMBER - number of previously completed challenges by given curator","source":"docblock"},{"name":"param2","type":"String","types":["String"],"optional":true,"default":null,"description":"parent task ID\n5 (Optional): STRING - parent task ID","since":null,"text":"2: STRING - parent task ID\n5 (Optional): STRING - parent task ID","source":"docblock"}],"returns":{"type":"String","types":["String"],"description":null,"text":"STRING - ID of parent task under which all challenge tasks are","source":"docblock"},"inferred":true}],"examples":[],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: CuratorChallenges","Functions","Functions: Server Execution","Introduced with Arma 3 version 1.16"],"docblock":{"author":null,"description":"Add challenges for curator to complete","params":[{"index":0,"name":null,"types":["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):\nCODE or [CODE,STRING] - code executed upon completing all challenges and reward description\nArguments passed to the code are:","text":"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):\nCODE or [CODE,STRING] - code executed upon completing all challenges and reward description\nArguments passed to the code are:"},{"index":0,"name":null,"types":["Object"],"optional":false,"default":null,"description":"curator","text":"OBJECT - curator"},{"index":1,"name":null,"types":["Number"],"optional":false,"default":null,"description":"number of previously completed challenges by given curator","text":"NUMBER - number of previously completed challenges by given curator"},{"index":2,"name":null,"types":["String"],"optional":true,"default":null,"description":"parent task ID\n5 (Optional): STRING - parent task ID","text":"STRING - parent task ID\n5 (Optional): STRING - parent task ID"}],"returns":{"types":["String"],"text":"STRING - ID of parent task under which all challenge tasks are"},"examples":[],"syntax":null,"execution":null,"notes":null,"requirements":null,"meta":{},"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"]}