OpenXcom Forum

Modding => Help => Topic started by: Cooper on December 02, 2022, 12:14:53 am

Title: objectiveFailed also on loose mission?
Post by: Cooper 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]

Title: Re: objectiveFailed also on lose mission?
Post by: Meridian 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)