BIS fnc manageCuratorChallenges: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (GVI 1.00 --> 1.16 http://dev.arma3.com/post/spotrep-00023 (It's Zeus update, obvious))
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
(13 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
| arma3
____________________________________________________________________________________________


| arma3 |= Game name
|1.16


|1.16|= Game version
|gr1 = CuratorChallenges
____________________________________________________________________________________________


| <pre>/*
| Handle repeated curator challenges.
When rewards defined in the argument are exceeded, refilling points bar fill be offered instead.


Description:
| [curator,challenges,numChallenges,rewards,defaultRewards]] call [[BIS_fnc_manageCuratorChallenges]]
Handle repeated curator challenges.
When rewards defined in the argument are exceeded, refilling points bar fill be offered instead.


Parameter(s):
|p1=curator [[Object]] - Curator
0: OBJECT - curator
1 (Optional): ARRAY - list of supported challenges from CfgCuratorChallenges (default: all challenges)
2 (Optional): NUMBER - number of added challenges (default: 3)
3 (Optional): ARRAY of ARRAYs in format [<code>,<description>] - rewards and their descriptions
4 (Optional): ARRAY of ARRAYs in format [<code>,<description>] - default reward (used when previous rewards are exhausted)
Returns:
BOOL
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|p2=challenges [[Array]] - (Optional, default all challenges) List of supported challenges from CfgCuratorChallenges
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_manageCuratorChallenges]]; --> |= Syntax
|p3=challenges [[Number]] - (Optional, default 3) Number of added challenges


|p1= |= Parameter 1
|p4=rewards [[Array]] of [[Array|arrays]] - (Optional, default []) Rewards and their descriptions in format:
*0: [[Code]] - Code executed
*1: [[String]] - Description


| |= Return value
|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


|x1= <code></code> |=
| [[Boolean]]
____________________________________________________________________________________________


| |= See also
|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]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: CuratorChallenges|{{uc:manageCuratorChallenges}}]]
[[Category:Functions|{{uc:manageCuratorChallenges}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:manageCuratorChallenges}}]]

Revision as of 01:25, 17 February 2021

Hover & click on the images for description

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