OpenXcom Forum
Modding => Help => Topic started by: robin on October 06, 2021, 11:46:46 pm
-
I'm somehow getting double mission sites (on the same coordinates).
Could it be because I set "objective:true" to the escort too? (STR_CRAFT_AIRTRANS is the actual objective-doer of the mission)?
I thought it was correct to do so, but I'm starting to doubt it.
In this example the mission sites last long enough to exist the same time. For other missions (with similar waves setup) the sites happens one after another in rapid succession.
Any idea why this happens?
Thanks.
-
You have two(even 3 in fact) ufo with "objective: true".
Objective: true must have only one ufo, one which must land.
-
As I understand it, any mission with objective: 3 will create a mission site wherever a UFO with objective: true decides to land. The mission should then be complete, and not spawn anymore waves. If other waves have already spawned before it lands, and they are also set to objective: true, they should also create a mission site wherever they land.
spawnZone: 3 will cause the mission site to be made at a random waypoint selected from missionZone: 3 which, by default, is pinpointed over cities. This gives a high likelihood of missions spawning in exactly the same place. Or perhaps the mission only ever selects one location for the site, and all UFOs belonging to the same mission which create sites land at the same position. I've never played around with it so I don't know.
You can bypass it by using multiple similar missionScripts to spawn multiple similar missions on the same month (in the same region if that's what you want) and have them make sites that aren't in the same place. Also, you can try using spawnZone: 1 or 2 which have large spawn boxes over regions, so that there are thousands of possible locations where they can spawn their mission.
-
At the time I had to add "objective: true" to the escorts, otherwise the mission site was not spawned.
Here what Hobbes replied back then:
alienMissions:
- type: STR_SKYNET_INTERDICTION
waves:
- ufo: STR_HK_TRANSPORT_1
count: 1
trajectory: T7
timer: 15000
objective: true
- ufo: STR_HK_FIGHTER_1
count: 1
timer: 10
trajectory: T0
objective: true
escort: true
The escort (STR_HK_FIGHTER_1) also requires objective: true for the terror site to appear
I guess this has changed?
In the weekend I'll test without it and report back.
-
Maybe the last wave needs it set to true.
-
maybe I'm doing something wrong but...
..example:
waves:
- UFO_A
- UFO_B
objective:true
- UFO_C
hunterKillerPercentage: 100
escort:true
in this situation the following happens:
- if UFO_A is defined, UFO_C will escort it.
- if no UFO_A is defined, UFO_C will fly alone.
setting objective:true to UFO_C doesn't change escort behavior, but you get doubled mission site.
so I guess there is no way to escort the mission-carrier UFO?
-
you cannot "choose" which UFO will be escorted
if a UFO is marked as an escort... and it is not otherwise occupied (e.g. by hunting)... it will try to escort "someone";
that someone will need to:
1. be from the same alien mission
2. be a normal UFO, i.e. not a hunter-killer
if there are multiple potential UFOs to escort, the oldest one will be chosen
so my guess would be that UFO_B from your example is a hunter-killer (violating pre-requisite 2.)?
if not, prepare a small mod and a small save to demonstrate
-
UFO_B is a normal UFO, the hunter killer is UFO_C.
Sorry for incomplete info.
Here a complete example:
----------
waves:
- ufo: STR_UFO_PROBE
count: 1
trajectory: A0
timer: 9000
- ufo: STR_UFO_SCOUT <--
count: 1
trajectory: A1
timer: 10
- ufo: STR_UFO_PROBE
count: 1
trajectory: A0
timer: 10
hunterKillerPercentage: 100
escort: true
- ufo: STR_UFO_SCOUT
count: 1
trajectory: A3
timer: 10
objective: true
- ufo: STR_UFO_PROBE <--
count: 1
trajectory: A3
timer: 10
#objective: true
hunterKillerPercentage: 100
escort: true
-----------
The last UFO (STR_UFO_PROBE) escorts the second UFO (STR_UFO_SCOUT).
Will check again adn prepare an example in the weekend.