aliens

Author Topic: Change terrain type of particular polygon as a teraforming type of alien missio  (Read 3221 times)

Offline bladum

  • Colonel
  • ****
  • Posts: 213
  • Bladum
    • View Profile
Hi,

In other alien games there was something like bio-mass or star gates. Aliens were able to change surface of planet.

I wonder is this possible to create a script that would allow to change single polygon on world map into different terrain type.

For example aliens have special mission type = Terra forming that when successful change polygon from terrain X into terrain Y, for example Mars one. This would be logic as aliens want to change Earth into something similar to their planet Mars.

From game perspective it would allow to have mars types of missions before Cydonia which in general would be dark all the time.

PS: this would make more sense if World map contains more polygons then original 600-700 and in more balanced positions.

Tom

Offline Arthanor

  • Commander
  • *****
  • Posts: 2488
  • XCom Armoury Quartermaster
    • View Profile
That would be a cool new mission type! And should come with a hefty amount of points for the aliens if successful. People would freak out!

Offline bladum

  • Colonel
  • ****
  • Posts: 213
  • Bladum
    • View Profile
To be honest that is why i design this world map, to be able to change single polygon into different type of terrain, like Mars like that is always night.

https://openxcom.org/forum/index.php?topic=3159.0

Offline bladum

  • Colonel
  • ****
  • Posts: 213
  • Bladum
    • View Profile
Also some terrains might be covered by snow in particular time makes periods with more polar missions. If you put your first base in Europe you should have more night missions on snow thanks to that if you start game in January.

Harvesting would turn forest into grass, grass into plain, plain into desert... and other global effects. This makes no change other then feeling that this is global war and world is changing and you want to save it!! and change in balance of battlescape terrains.

Actually this is simple to implement. What we need is a new field for terrain. Normally there is "terrainID" for terrain. Lets add an array with 12 items that would simulate change of terrain per months. And when EndMonth trigger is run then change terrain behavior based on this array.

terrainID = 3
terrainMatrix = [3,3,3,3,3,3,5,5,5,5,5,5]

So this terrain is "3" in Jan-Jun but is 5 in Jul-Dec. This works both for visual effect and battlescape.

Tom
« Last Edit: November 27, 2014, 11:31:23 am by bladum »