Difference between revisions of "BIS fnc manageCuratorChallenges"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|Game version=" to "|Game version= |gr1 = CuratorChallenges |GROUP1=")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ :\\\-\/|()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
+
{{RV|type=function
____________________________________________________________________________________________
 
  
| arma3 |Game name=
+
| arma3
  
|1.16|Game version=
+
|1.16
  
|gr1 = CuratorChallenges |GROUP1=
+
|gr1 = CuratorChallenges
____________________________________________________________________________________________
 
  
 
| Handle repeated curator challenges.
 
| Handle repeated curator challenges.
When rewards defined in the argument are exceeded, refilling points bar fill be offered instead. |Description=
+
When rewards defined in the argument are exceeded, refilling points bar fill be offered instead.
____________________________________________________________________________________________
 
  
| [curator,challenges,numChallenges,rewards,defaultRewards]] call [[BIS_fnc_manageCuratorChallenges]] |Syntax=
+
| [curator,challenges,numChallenges,rewards,defaultRewards]] call [[BIS_fnc_manageCuratorChallenges]]
  
|p1=curator [[Object]] - Curator |Parameter 1=
+
|p1=curator [[Object]] - Curator
  
|p2=challenges [[Array]] - (Optional, default all challenges) List of supported challenges from CfgCuratorChallenges |Parameter 2=
+
|p2=challenges [[Array]] - (Optional, default all challenges) List of supported challenges from CfgCuratorChallenges
  
|p3=challenges [[Number]] - (Optional, default 3) Number of added challenges |Parameter 3=
+
|p3=challenges [[Number]] - (Optional, default 3) Number of added challenges
  
 
|p4=rewards [[Array]] of [[Array|arrays]] - (Optional, default []) Rewards and their descriptions in format:
 
|p4=rewards [[Array]] of [[Array|arrays]] - (Optional, default []) Rewards and their descriptions in format:
 
*0: [[Code]] - Code executed
 
*0: [[Code]] - Code executed
*1: [[String]] - Description|Parameter 4=
+
*1: [[String]] - Description
  
 
|p5=defaultRewards [[Array]] of [[Array|arrays]] - (Optional, default []) Default reward, used when previous rewards are exausted  in format:
 
|p5=defaultRewards [[Array]] of [[Array|arrays]] - (Optional, default []) Default reward, used when previous rewards are exausted  in format:
 
*0: [[Code]] - Code executed
 
*0: [[Code]] - Code executed
*1: [[String]] - Description|Parameter 5=
+
*1: [[String]] - Description
  
| [[Boolean]] |Return value=
+
| [[Boolean]]
____________________________________________________________________________________________
 
  
|x1= <code>[ BIS_curator, nil, 1, [ [{ [[hint]] "Message" }, "Description" ] ] ] [[call]] [[BIS_fnc_manageCuratorChallenges]];</code>|Example 1=
+
|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]]
 
 
| [[Curator]],[[BIS_fnc_formatCuratorChallengeObjects]],[[BIS_fnc_finishCuratorChallenge]],[[BIS_fnc_addCuratorChallenge]] |See also=
 
 
}}
 
}}
 
 
<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}}]]
 

Latest revision as of 00:25, 17 February 2021

Hover & click on the images for descriptions

Description

Description:
Handle repeated curator challenges. When rewards defined in the argument are exceeded, refilling points bar fill be offered instead.
Execution:
call

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: CuratorBIS_fnc_formatCuratorChallengeObjectsBIS_fnc_finishCuratorChallengeBIS_fnc_addCuratorChallenge
Groups:
CuratorChallenges

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.