# MultiObjective 2023-03-16 # Grants the custom objective if the player has completed enough of the other objectives. # Default use of this script is for the custom objective to be required, and all other objectives be optional. # This will make the map be completed when a certain number of objectives are completed. $ObjectivesRequired:2 $Nullify:1 # Set these to 0 to prevent them from counting $Totems:1 # Unused objectives do not need to have their parameters set to 0. $Reclaim:1 $Hold:1 $Collect:1 # Numbers other than 0 and 1 can be used to give different weights to the objectives. # As an example, setting Nullify to 2 would have nullify count as 2 objectives when completed. # If ObjectivesRequired is also set to 2 this would make the custom objective 'Nullify all or complete 2 objectives' GetMissionObjectiveState(0) <-Nullify mul GetMissionObjectiveState(1) <-Totems mul add GetMissionObjectiveState(2) <-Reclaim mul add max(GetMissionObjectiveState(3) 0) <-Hold mul add GetMissionObjectiveState(4) <-Collect mul add ->Points if(<-Points <-ObjectivesRequired gte) once AcquireMissionObjective(5 false) endonce endif