OpenXcom Forum
Modding => Help => Topic started by: Kilkakon on May 26, 2018, 11:34:09 am
-
Hi there everyone :)
I'm working with regions.rul at the moment. Is it possible to create a new region that only exists to hold cities that can be targeted for a specific mission?
My problem is this, using North Atlantic ocean as an example:
- [336, 336, -37, -37, -2, STR_AZORES]
- [337, 337, -61.25, -61.25, -1, STR_REYKJAVIK]
- [295.125, 295.125, -34.5, -34.5, -2, STR_BERMUDA]
- [286.875, 286.875, -38.25, -38.25, -1, STR_NEW_YORK]
- [290.25, 290.25, -41.25, -41.25, -1, STR_BOSTON]
- [271.25, 271.25, -50.875, -50.875, -1, STR_FORT_SEVERN]
- [318.06, 318.06, -27.96, -27.96, -5, STR_ALTANTICA]
While the missions themselves work fine, they don't play nicely with alien missions. I've had missions intended for site 5 heading to site 1 and vice versa. My idea was to try and use a separate region, but to no success. If this isn't doable let me know :)
Thanks for your time and attention
-
Just a quick question - will these cities be targeted by UFOs, or spawning missions on the ground?
-
By UFOs, yes.
This is for my mod where I have above and below water terror sites--and currently the "surface attacks" can target underwater places and vice versa, which is a bit silly. I can always rename the missions but I'd like to be able to control the frequency of above/below ground missions precisely
-
Certainly should be possible, if you assign a region, globe etc. I have a few such missions in X-Com Files, for example STR_SILO_ATTACK - you might like to check. (I am not at my PC now, sorry.)
-
In the globe editor on falko tools on extra options you can give citys targeted by alien automaticly , besides i think you got to give the area moving traj there , the landing one but this is guess i havent tested
-
Basically what I'm wanting to do is have a region that's solely comprised of cities, is that doable? The underwater sites should be marked with a city icon/name
-
Regions are polygons with 3 or 4 faces you can create a region with several citys , and even give the texture you want . what you are saying is having citys whitout the polygon? Create the city on water , to be honest i dunno .. I guess im not helping :p
-
yes, this is doable, we do exactly that in TFTD to handle artefact sites
-
Doing something like this though
- type: UNDERSEA_BASE_SITES
missionZones:
-
- [312.92, 312.92, 75.34, 75.34, -5, STR_ANTARCTICA]
- [18.51, 18.51, -70.6, -70.6, -5, STR_AURORA_STATION]
- [1.4805, 1.4805, -47.895167, -47.895167, -5, STR_SEALAND]
Doesn't make them show on the map :(
PS Thanks for the work on the bugs I reported last year Warboy, I never got a chance to thank you
-
Doing something like this though
- type: UNDERSEA_BASE_SITES
missionZones:
-
- [312.92, 312.92, 75.34, 75.34, -5, STR_ANTARCTICA]
- [18.51, 18.51, -70.6, -70.6, -5, STR_AURORA_STATION]
- [1.4805, 1.4805, -47.895167, -47.895167, -5, STR_SEALAND]
Doesn't make them show on the map :(
IIRC, for the city markers/names to appear on Geoscape you'll need to define areas for the region UNDERSEA_BASE_SITES