BIS fnc manageCuratorChallenges: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )R([a-z])" to "$1r$3")
m (Text replacement - "(\|[pr][0-9]+ *= *[^-]+) *- *C([a-eg-z])" to "$1 - c$2")
Line 11: Line 11:
|s1= [curator,challenges,numChallenges,rewards,defaultRewards]] call [[BIS_fnc_manageCuratorChallenges]]
|s1= [curator,challenges,numChallenges,rewards,defaultRewards]] call [[BIS_fnc_manageCuratorChallenges]]


|p1=curator [[Object]] - Curator
|p1=curator [[Object]] - curator


|p2=challenges [[Array]] - (Optional, default all challenges) list of supported challenges from CfgCuratorChallenges
|p2=challenges [[Array]] - (Optional, default all challenges) list of supported challenges from CfgCuratorChallenges

Revision as of 14:59, 8 November 2023

Hover & click on the images for description

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:
[ BIS_curator, nil, 1, [ [{ hint "Message" }, "Description" ] ] ] call BIS_fnc_manageCuratorChallenges;

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