BIS fnc finishCuratorChallenge: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl>" to "") |
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...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.16 | |1.16 | ||
|gr1 = CuratorChallenges | |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. Number of challenges can be retrieved by | When rewards defined in the argument are exceeded, refilling points bar fill be offered instead. Number of challenges can be retrieved by | ||
|p1=curator [[Object]] - Curator | | [curator,input,taskState]] call [[BIS_fnc_finishCuratorChallenge]] | ||
|p1=curator [[Object]] - Curator | |||
|p2=input [[Array]] - Array in format: | |p2=input [[Array]] - Array in format: | ||
*0: [[String]] - Challenge class name | *0: [[String]] - Challenge class name | ||
*1: [[Object]] - Curator | *1: [[Object]] - Curator | ||
|p3= taskState [[String]] - Task state, can be: | |p3= taskState [[String]] - Task state, can be: | ||
Line 23: | Line 23: | ||
*"FAILED" | *"FAILED" | ||
*"CANCELED" | *"CANCELED" | ||
*"ASSIGNED" | *"ASSIGNED" | ||
| [[Boolean]] | | [[Boolean]] | ||
|x1= <code>[BIS_curator,["DestroyVehicle",BIS_curator],"SUCCEEDED"] [[call]] [[BIS_fnc_finishCuratorChallenge]]; | |x1= <code>[BIS_curator,["DestroyVehicle",BIS_curator],"SUCCEEDED"] [[call]] [[BIS_fnc_finishCuratorChallenge]]; | ||
_number = BIS_curator [[getVariable]] "DestroyVehicle";</code> | _number = BIS_curator [[getVariable]] "DestroyVehicle";</code> | ||
| [[Curator]],[[BIS_fnc_formatCuratorChallengeObjects]],[[BIS_fnc_manageCuratorChallenges]],[[BIS_fnc_addCuratorChallenge]] | |||
| [[Curator]],[[BIS_fnc_formatCuratorChallengeObjects]],[[BIS_fnc_manageCuratorChallenges]],[[BIS_fnc_addCuratorChallenge]] | |||
}} | }} | ||
Revision as of 23:00, 17 January 2021
Description
- Description:
- Handle repeated curator challenges. When rewards defined in the argument are exceeded, refilling points bar fill be offered instead. Number of challenges can be retrieved by
- Execution:
- call
- Groups:
- CuratorChallenges
Syntax
- Syntax:
- [curator,input,taskState]] call BIS_fnc_finishCuratorChallenge
- Parameters:
- curator Object - Curator
- input Array - Array in format:
- taskState String - Task state, can be:
- "SUCCEEDED"
- "FAILED"
- "CANCELED"
- "ASSIGNED"
- Return Value:
- Boolean
Examples
- Example 1:
[BIS_curator,["DestroyVehicle",BIS_curator],"SUCCEEDED"] call BIS_fnc_finishCuratorChallenge; _number = BIS_curator getVariable "DestroyVehicle";
Additional Information
- See also:
- CuratorBIS_fnc_formatCuratorChallengeObjectsBIS_fnc_manageCuratorChallengesBIS_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