Custom mission counters are defined via 8 new alienDeployment attributes:
1. `counterSuccess` - increases on mission success
2. `counterFailure` - increases on mission failure and on mission site despawn (which is also a failure, duh)
3. `counterDespawn` - increases on mission site despawn
4. `counterAll` - increases on mission success, failure and despawn
5. `decreaseCounterSuccess` - decreases on mission success
6. `decreaseCounterFailure` - decreases on mission failure and on mission site despawn (which is also a failure, duh)
7. `decreaseCounterDespawn` - decreases on mission site despawn
8. `decreaseCounterAll` - decreases on mission success, failure and despawn
Example:
alienDeployments:
- type: STR_TERROR_MISSION
...
counterSuccess: CUSTOM_TERROR_SUCCESS
counterFailure: CUSTOM_TERROR_FAILURE
counterDespawn: CUSTOM_TERROR_DESPAWN
counterAll: CUSTOM_TERROR_ALL
...
PS: note that just like the default game object counters, also these custom counters have a value in the save file increased by one... keep that in mind when testing/investigating
PS2: counters cannot decrease below zero
PS3: don't decrease non-custom counters, you'll break/crash the game