BIS fnc manageCuratorChallenges: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
Lou Montana (talk | contribs) m (Text replacement - " +\]" to "]") |
||
(32 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | |game1= arma3 | ||
|version1= 1.16 | |||
| | |gr1= CuratorChallenges | ||
| | |descr= Handle repeated curator challenges. | ||
When rewards defined in the argument are exceeded, refilling points bar fill be offered instead. | When rewards defined in the argument are exceeded, refilling points bar fill be offered instead. | ||
| [curator,challenges,numChallenges,rewards,defaultRewards]] call [[BIS_fnc_manageCuratorChallenges]] | |s1= [curator,challenges,numChallenges,rewards,defaultRewards]] call [[BIS_fnc_manageCuratorChallenges]] | ||
|p1=curator [[Object]] - | |p1=curator [[Object]] - curator | ||
|p2=challenges [[Array]] - (Optional, default all challenges) | |p2=challenges [[Array]] - (Optional, default all challenges) list of supported challenges from CfgCuratorChallenges | ||
|p3=challenges [[Number]] - (Optional, default 3) | |p3=challenges [[Number]] - (Optional, default 3) number of added challenges | ||
|p4=rewards [[Array]] of [[Array|arrays]] - (Optional, default []) | |p4=rewards [[Array]] of [[Array|arrays]] - (Optional, default <sqf inline>[]</sqf>) rewards and their descriptions in format: | ||
*0: [[Code]] - Code executed | *0: [[Code]] - Code executed | ||
*1: [[String]] - Description | *1: [[String]] - Description | ||
|p5=defaultRewards [[Array]] of [[Array|arrays]] - (Optional, default []) | |p5=defaultRewards [[Array]] of [[Array|arrays]] - (Optional, default <sqf inline>[]</sqf>) default reward, used when previous rewards are exausted in format: | ||
*0: [[Code]] - Code executed | *0: [[Code]] - Code executed | ||
*1: [[String]] - Description | *1: [[String]] - Description | ||
| [[Boolean]] | |r1= [[Boolean]] | ||
|x1= < | |x1= <sqf>[BIS_curator, nil, 1, [[{ hint "Message" }, "Description"]]] call BIS_fnc_manageCuratorChallenges;</sqf> | ||
|seealso= [[Arma 3: Curator]] [[BIS_fnc_formatCuratorChallengeObjects]] [[BIS_fnc_finishCuratorChallenge]] [[BIS_fnc_addCuratorChallenge]] | |||
| [[Curator]] | |||
}} | }} | ||
Latest revision as of 18:16, 8 November 2023
Description
- Description:
- Handle repeated curator challenges. When rewards defined in the argument are exceeded, refilling points bar fill be offered instead.
- Execution:
- call
- Groups:
- CuratorChallenges
Syntax
- Syntax:
- [curator,challenges,numChallenges,rewards,defaultRewards]] call BIS_fnc_manageCuratorChallenges
- Parameters:
- curator Object - curator
- challenges Array - (Optional, default all challenges) list of supported challenges from CfgCuratorChallenges
- challenges Number - (Optional, default 3) number of added challenges
- rewards Array of arrays - (Optional, default []) rewards and their descriptions in format:
- defaultRewards Array of arrays - (Optional, default []) default reward, used when previous rewards are exausted in format:
- Return Value:
- Boolean
Examples
- Example 1:
Additional Information
- See also:
- Arma 3: Curator BIS_fnc_formatCuratorChallengeObjects BIS_fnc_finishCuratorChallenge BIS_fnc_addCuratorChallenge
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