BIS fnc manageCuratorChallenges: Difference between revisions
Jump to navigation
Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki) |
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
||
(15 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | |||
| arma3 | |||
| | |1.16 | ||
| | |gr1 = CuratorChallenges | ||
| | | Handle repeated curator challenges. | ||
When rewards defined in the argument are exceeded, refilling points bar fill be offered instead. | |||
| [curator,challenges,numChallenges,rewards,defaultRewards]] call [[BIS_fnc_manageCuratorChallenges]] | |||
|p1=curator [[Object]] - Curator | |||
|p2=challenges [[Array]] - (Optional, default all challenges) List of supported challenges from CfgCuratorChallenges | |||
| | |p3=challenges [[Number]] - (Optional, default 3) Number of added challenges | ||
| | |p4=rewards [[Array]] of [[Array|arrays]] - (Optional, default []) Rewards and their descriptions in format: | ||
*0: [[Code]] - Code executed | |||
*1: [[String]] - Description | |||
| | | |p5=defaultRewards [[Array]] of [[Array|arrays]] - (Optional, default []) Default reward, used when previous rewards are exausted in format: | ||
*0: [[Code]] - Code executed | |||
*1: [[String]] - Description | |||
| | | [[Boolean]] | ||
| | |x1= <code>[ BIS_curator, nil, 1, [ [{ [[hint]] "Message" }, "Description" ] ] ] [[call]] [[BIS_fnc_manageCuratorChallenges]];</code> | ||
|seealso= [[Arma 3: Curator]],[[BIS_fnc_formatCuratorChallengeObjects]],[[BIS_fnc_finishCuratorChallenge]],[[BIS_fnc_addCuratorChallenge]] | |||
}} | }} | ||
Revision as of 00:25, 17 February 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- CuratorChallenges
Syntax
- Syntax:
- Syntax needed
- 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:
- Return value needed
Examples
- Example 1:
[ BIS_curator, nil, 1, [ [{ hint "Message" }, "Description" ] ] ] call BIS_fnc_manageCuratorChallenges;
Additional Information
- See also:
- Arma 3: CuratorBIS_fnc_formatCuratorChallengeObjectsBIS_fnc_finishCuratorChallengeBIS_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