aliens

Author Topic: [SOLVED] Setting a mission in a specific city.  (Read 2268 times)

Offline efrenespartano

  • Commander
  • *****
  • Posts: 748
  • I know a lot about the law and other lawyerings.
    • View Profile
[SOLVED] Setting a mission in a specific city.
« on: October 28, 2018, 04:27:39 pm »
Hello there!

 I would like to make a specific mission of a city. I know that I can place missions in particular regions using "regionWeights", but I would like to assign missions to cities. I have planned to do rescue missions of important characters in Vladivostok and to recreate the rocket launching bases of Cape Canaveral and Baikonur for some space missions. Thanks in advance!


Enviado desde mi iPhone utilizando Tapatalk
« Last Edit: March 23, 2019, 06:43:12 pm by efrenespartano »

Offline Hobbes

  • Commander
  • *****
  • Posts: 2101
  • Infiltration subroutine in progress
    • View Profile
Re: Setting a mission in a specific city.
« Reply #1 on: October 28, 2018, 04:32:56 pm »
This is the simplest method:

Code: [Select]
regions:
  - type: CHEYENNE_MOUNTAIN
    missionZones:
      -
        - [252.694, 252.694, -38.989, -38.989, -100, STR_CHEYENNE_MOUNTAIN]

Then, you use missionScripts to run a mission on the CHEYENNE_MOUNTAIN region, and the alienMission must be set to run on MissionZone 0 (by setting spawnZone: 0)

Using regions.rul is also possible:

Code: [Select]
regions:
  - type: STR_NORTH_AMERICA
    missionZones:
      -
        - [192, 212, -62, -56]
        - [195, 225, -70, -68]
        - [223, 231, -58, -52]
        - [233, 236, -50, -39]
        - [236, 240, -40, -34]
        - [240, 243, -34, -32]
        - [243, 250, -32, -23]
        - [244, 259, -70, -68]
        - [250, 254, -27, -22]
        - [254, 256, -22, -19]
        - [256, 258, -19, -18]
        - [260, 269, -64, -57]
        - [264, 270, -21, -18]
        - [264, 270, -30, -28]
        - [267, 277, -49, -47]
        - [270, 281, -47, -41]
        - [271, 274, -14, -11]
        - [275, 284, -24, -17]
        - [276, 280, -30, -25]
        - [279, 283, -35, -32]
        - [283, 297, -61, -55]
        - [284, 294, -21, -17]
        - [287, 294, -68, -63]
        - [288, 290, -43, -41]
        - [289, 296, -45, -43]
        - [294, 300, -47, -45]
        - [294, 307, -51, -47]
        - [300, 304, -55, -51]
      -
        - [200, 225, -64, -62]
        - [219, 269, -68, -64]
        - [236, 240, -50, -42]
        - [245, 250, -36, -32]
        - [245, 260, -55, -50]
        - [250, 260, -30, -27]
        - [250, 260, -50, -40]
        - [255, 260, -40, -30]
        - [258, 264, -19, -17.5]
        - [260, 262, -28, -22]
        - [260, 270, -44, -34]
        - [267, 277, -55, -49]
        - [266, 271, -18, -16]
        - [270, 279, -37, -34]
        - [271, 276, -15, -14]
        - [279, 284, -39, -35]
        - [282, 289, -55, -51]
        - [284, 289, -47, -43]
        - [285, 288, -43, -41]
        - [289, 294, -48, -46]
      -
        - [200, 219, -68, -64]
        - [212, 225, -62, -60]
        - [231, 245, -58, -50]
        - [236, 240, -42, -40]
        - [240, 245, -36, -34]
        - [245, 260, -64, -55]
        - [250, 255, -40, -30]
        - [254, 260, -27, -22]
        - [256, 262, -22, -19]
        - [260, 267, -57, -50]
        - [264, 266, -18, -16]
        - [264, 269, -34, -30]
        - [267, 270, -47, -44]
        - [268, 271, -16, -14]
        - [270, 272, -21, -18]
        - [270, 279, -41, -37]
        - [274, 276, -14, -10]
        - [277, 289, -51, -47]
        - [281, 285, -43, -39]
        - [289, 294, -46, -45]
        - [289, 300, -55, -51]
      -
        - [263.375, 263.375, -32.75, -32.75, -1, STR_CITY_RUINS]
        - [264.625, 264.625, -29.75, -29.75, -1, STR_HOUSTON]
        - [265.90, 265.90, -44.43, -44.43, -1, STR_MINNEAPOLIS]
        - [268.69, 268.69, -36.22, -36.22, -1, STR_MEMPHIS]
        - [269.92, 269.92, -29.642, -29.642, -1, STR_NEWORLEANS]
        - [269.5, 269.5, -14.625, -14.625, -1, STR_GUATEMALA]
        - [271.9, 271.9, -20.6, -20.6, -1, STR_CANCUN]
        - [272.375, 272.375, -41.875, -41.875, -1, STR_CITY_RUINS]
        - [273.85, 273.85, -11.5, -11.5, -1, STR_MANAGUA]
        - [273.272, 273.272, -38.83, -38.83, -1, STR_INDIANAPOLIS]
        - [275.625, 275.625, -33.75, -33.75, -1, STR_ATLANTA]
      -
        - [225, 245, -64, -58]
        - [240, 250, -50, -36]
        - [243, 245, -34, -32]
        - [260, 264, -34, -28]
        - [260, 267, -50, -44]
        - [269, 279, -34, -30]
      -
        - [217, 227, -48, -39]
        - [234, 239, -30, -24]
        - [262, 269, -14, -10]
        - [265, 271, -26, -23]
        - [272, 278, -62, -57]
        - [289, 295, -35, -28]
        - [310, 320, -53, -47]
      -
        - [252.694, 252.694, -38.989, -38.989, -100, STR_CHEYENNE_MOUNTAIN]

Again, you use missionScripts to run a mission on any region that contains the specific cities, and the alienMission run must be set to run on MissionZone 6 (on this case)
« Last Edit: October 28, 2018, 04:40:03 pm by Hobbes »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8598
    • View Profile
Re: Setting a mission in a specific city.
« Reply #2 on: October 28, 2018, 04:36:30 pm »
What Hobbes said...
... or you can use an existing region and define an additional mission zone in it with just one city and assign this mission zone to your special mission.

Both should work.

Offline efrenespartano

  • Commander
  • *****
  • Posts: 748
  • I know a lot about the law and other lawyerings.
    • View Profile
Re: Setting a mission in a specific city.
« Reply #3 on: October 28, 2018, 06:01:54 pm »
I'm glad that there are many ways to do it. Thank you so much, Hobbes and Meridian!


Enviado desde mi iPhone utilizando Tapatalk