OpenXcom Forum

Modding => Help => Topic started by: Kilkakon on May 26, 2018, 11:34:09 am

Title: A question regarding cities and terror sites (regions.rul)
Post 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:
Code: [Select]
        - [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
Title: Re: A question regarding cities and terror sites (regions.rul)
Post by: Solarius Scorch on May 26, 2018, 12:55:54 pm
Just a quick question - will these cities be targeted by UFOs, or spawning missions on the ground?
Title: Re: A question regarding cities and terror sites (regions.rul)
Post by: Kilkakon on May 26, 2018, 01:13:04 pm
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
Title: Re: A question regarding cities and terror sites (regions.rul)
Post by: Solarius Scorch on May 26, 2018, 01:31:46 pm
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.)
Title: Re: A question regarding cities and terror sites (regions.rul)
Post by: bulletdesigner on May 26, 2018, 03:14:58 pm
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
Title: Re: A question regarding cities and terror sites (regions.rul)
Post by: Kilkakon on May 26, 2018, 03:46:10 pm
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
Title: Re: A question regarding cities and terror sites (regions.rul)
Post by: bulletdesigner on May 26, 2018, 06:06:16 pm
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
Title: Re: A question regarding cities and terror sites (regions.rul)
Post by: Warboy1982 on May 26, 2018, 08:42:27 pm
yes, this is doable, we do exactly that in TFTD to handle artefact sites
Title: Re: A question regarding cities and terror sites (regions.rul)
Post by: Kilkakon on May 27, 2018, 04:25:28 am
Doing something like this though
Code: [Select]
  - 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
Title: Re: A question regarding cities and terror sites (regions.rul)
Post by: Hobbes on May 28, 2018, 08:25:16 pm
Doing something like this though
Code: [Select]
  - 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