User Tools

Site Tools


4rpl:commands:getmissionobjectivestate

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
4rpl:commands:getmissionobjectivestate [2023/06/22 22:46] – Hold objective specification. Vertu4rpl:commands:getmissionobjectivestate [2023/11/20 00:26] (current) – Added objective number referense. Vertu
Line 7: Line 7:
  
 ===== Description ===== ===== Description =====
-Gets state (1, -1 or 0) of a mission objective. Mission objectives are defined in the game menu of a mission. When criteria is met, the objective is set to 1. +Gets state (1, -1 or 0) of a mission objective. Mission objectives are defined in the game menu of a mission.\\ 
-When the mission objective is failed, -1 is returned +Mission objectives are referenced by a number, 0-5.\\ 
-Mission objectives are referenced by a number, 0-5. \\+0 = "Nullify Enemies"\\ 
 +1 = "Activate Totems"\\ 
 +2 = "Reclaim"\\ 
 +3 = "Survive" \\ 
 +4 = "Collect Items"\\ 
 +5 = "Custom"
  
-:WARNINGIn this syntax: <color #00FFFF>if(GetMissionObjectiveState(3))</color>, -1 and 1 are treated the same (as true). You must instead write eq(1). <color #00FFFF>if(GetMissionObjectiveState(3) eq(1))</color> +States are 
-This is likely due to the shorthand <color #00FFFF>if(GetMissionObjectiveState(3))</color> being treated as a neq0 format.+  ? 0 
 +  Objective not (yetachieved 
 +  ? 1 
 +  : Objective achieved 
 +  ? -1 
 +  : Objective failed 
 +  
  
  
- 
-See [[AcquireMissionObjective]] for the enumeration of mission objectives.  
  
 ===== Examples ===== ===== Examples =====
Line 22: Line 31:
 GetMissionObjectiveState(5) ->customObjState GetMissionObjectiveState(5) ->customObjState
 </code> </code>
 +
 +==== See Also ====
 +
 +[[AcquireMissionObjective]]
 +
 <=[[4rpl:start| Index]] <=[[4rpl:start| Index]]
  
4rpl/commands/getmissionobjectivestate.1687488364.txt.gz · Last modified: 2023/06/22 22:46 by Vertu