Author Topic: objectiveFailed also on loose mission?  (Read 858 times)

Offline Cooper

  • Colonel
  • ****
  • Posts: 149
  • Chryssalids are awesome
    • View Profile
objectiveFailed also on loose mission?
« on: December 02, 2022, 12:14:53 am »
When using this code, the debriefing screen only after aborting gives -500 points, but if loosing the mission  I just get "Craft is lost" and  not -500 points. Is there a way to get this in both abort and loose situations?

objectiveFailed: [STR_TERROR_MISSION_LOST, -500]


Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8598
    • View Profile
Re: objectiveFailed also on lose mission?
« Reply #1 on: April 10, 2023, 05:44:31 pm »
No, such functionality is currently not achievable.


I don't know how exactly these attributes should work.
The only description I found is here by Hobbes: https://openxcom.org/forum/index.php/topic,4288.0.html
But it seems to describe only "timed" missions.

Somebody already reported it here: https://openxcom.org/forum/index.php/topic,4694.msg66092.html#msg66092
and here: https://openxcom.org/forum/index.php/topic,4695.0.html
They even say in the second thread that it was supposedly fixed in the latest nightly... but I can confirm that it definitely wasn't.


I don't know who asked for this feature, but your best bet is to talk to Hobbes (who did something with it, maybe even was the original requestor)
and Warboy (who implemented it, maybe he also "requested" it, and used it for UFO vs TFTD unification).

Here is the original implementation with some comments: https://github.com/OpenXcom/OpenXcom/commit/0d75384a


PS: my personal guess is that this whole thing was only intended to be used when there are actual objectives in the mission... not for normal missions without objectives (e.g. terror mission)
« Last Edit: April 10, 2023, 05:56:52 pm by Meridian »