For making new mission types.
On debriefing, add stats "STR_ENEMY_VIP_CAPTURED" if unit with getSpecialObjective() == SPECOBJ_ENEMY_VIP and getOriginalFaction() == FACTION_HOSTILE and getStatus() == STATUS_DEAD with value = getValue() * 2
Add new value for extendedObjectiveType property processing: STR_ENEMY_VIP
On debriefing, with such extendedObjectiveType, when considering mission success, check, if all enemy units with getSpecialObjective() == SPECOBJ_ENEMY_VIP are either dead, or recovered alive. If true, mission succeed, debriefing _txtTitle->setText(tr("STR_MISSION_ACCOMPLISHED")), else STR_MISSION_FAILED
For making new mission types. On debriefing, add stats "STR_ENEMY_VIP_CAPTURED" if unit with
getSpecialObjective() == SPECOBJ_ENEMY_VIP
andgetOriginalFaction() == FACTION_HOSTILE
andgetStatus() == STATUS_DEAD
with value =getValue() * 2
Add new value for
extendedObjectiveType
property processing:STR_ENEMY_VIP
On debriefing, with such extendedObjectiveType, when considering mission success, check, if all enemy units withgetSpecialObjective() == SPECOBJ_ENEMY_VIP
are either dead, or recovered alive. If true, mission succeed, debriefing_txtTitle->setText(tr("STR_MISSION_ACCOMPLISHED"))
, elseSTR_MISSION_FAILED