OpenXcom Forum

Modding => Help => Topic started by: Docent on April 05, 2022, 12:10:15 am

Title: Penalty for despawning a crashed UFO
Post by: Docent on April 05, 2022, 12:10:15 am
Hi all!
Question about scoring.
In Ruleset Reference Nightly:
"abortPenalty - How many points the xcom will lose when this mission is aborted".  Everything seems to be clear.
"despawnPenalty - How many points the aliens will receive when this site despawns..." the aliens will receive? Not the x-com will lose?
Is it the same? Is what the aliens get deducted from X-com? Or not? What do the aliens get points for?
And the main question: if I want to penalize for despawning a crashed UFO, what and where should I use?
Title: Re: Penalty for despawning a crashed UFO
Post by: Docent on April 09, 2022, 07:26:41 pm
I think I've figured out what the alien points are for. This is how activity and the likelihood of a pact are counted.
What about crashed UFOs?
Does the game have any penalties for ignoring them? And if not, does OXCE allow it?
Title: Re: Penalty for despawning a crashed UFO
Post by: The Reaver of Darkness on April 12, 2022, 01:11:18 am
I think I've figured out what the alien points are for. This is how activity and the likelihood of a pact are counted.
What about crashed UFOs?
Does the game have any penalties for ignoring them? And if not, does OXCE allow it?

Yes. Points scored for the aliens contribute to alien activity in graphs, as well as applying negative points to the player score.

Infiltration is completely separate from score, however. A country signs a pact with the aliens when the aliens complete an infiltration mission on that country.

There are no penalties for crashed UFOs despawning by default. I'm pretty sure you can make them cost points (or grant points) in OXC, but I'm not sure how to do it. It might be as simple as adding a non-zero despawnPenalty value to the UFO site in alienDeployments, but that might cause the point loss also when the landed UFO takes off.
Title: Re: Penalty for despawning a crashed UFO
Post by: Docent on April 12, 2022, 10:42:38 am
Thanks for the answer!
It's strange that no one before had the desire to penalize a player for ignoring a crashed UFO. Or maybe my question is just too stupid )
The penalty for taking off a UFO is already in the game by default. Each takeoff = successful completion of the alien mission.
I'll try experimenting with despawnPenalty in AlienDeployments. It seems like it should work. I don't know why I doubted it...)
Title: Re: Penalty for despawning a crashed UFO
Post by: Meridian on April 12, 2022, 11:09:32 am
There are no penalties for crashed UFOs despawning by default. I'm pretty sure you can make them cost points (or grant points) in OXC, but I'm not sure how to do it.

There is no such thing in OXC/OXCE.

I'll try experimenting with despawnPenalty in AlienDeployments. It seems like it should work. I don't know why I doubted it...)

It works only for despawning mission sites.
Doesn't do anything for landed/crashed UFOs.
Title: Re: Penalty for despawning a crashed UFO
Post by: Docent on April 12, 2022, 11:39:01 am
There is no such thing in OXC/OXCE.

It's a pity. (
It would be great to have such an opportunity.

It works only for despawning mission sites.
Doesn't do anything for landed/crashed UFOs.

Thank you for the clarification.
Title: Re: Penalty for despawning a crashed UFO
Post by: The Reaver of Darkness on April 21, 2022, 08:47:16 am
You could put tiles in the UFO which only show up on crash sites, and are recovered for points. Thus, skipping the crash site removes the opportunity to collect the points.

It takes some advanced level modding, but if you're determined to do it, then get some baseline experience with Volutar's mcdEdit and hit me up on Discord or here for details. Discord is a much faster way to reach me; I am thereaverofdarkness#2362. On the other hand, if you are already an advanced modder, then you can simply peek into my mod Reaver's Harmony and see the method based on how I have done the Data Capsule items.