aliens

Author Topic: [Solved] Need help with startingConditions: & armorTransformations:  (Read 1280 times)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
I've been making a mod to display firing animations in TFTD.

So far the unit sprite sheets are finished but now I need the land variants to be worn by X-Com when not underwater.

The solution to this I'm attempting is to use startingConditions: & armorTransformations: to swap the X-Com soldier's armor for their land versions when engaging in the Base Defence, Port attacks, Island attacks and Ship attack missions.

Unfortunately my attempts to use startingConditions: have not yielded results.


In the current version of my mod when the aliens attack a surface city X-Com soldier's armor is not transformed into the variant without a helmet.


Here is the code involving the transformation.
Code: [Select]
# [====]  Alien Deployments [====]
alienDeployments:

# [=] Island Terror Mission [=]
  - type: STR_ISLAND_TERROR
    startingCondition: STR_LAND_MISSION_HELMETS_OFF

# [=] Port Terror Mission [=]
  - type: STR_PORT_TERROR
    startingCondition: STR_LAND_MISSION_HELMETS_OFF

# [=] Cargo Ship Mission (Part 1) [=]
  - type: STR_CARGO_SHIP_P1
    startingCondition: STR_LAND_MISSION_HELMETS_OFF

# [=] Cargo Ship Mission (Part 2) [=]
  - type: STR_CARGO_SHIP_P2
    startingCondition: STR_LAND_MISSION_HELMETS_OFF

# [=] Cruise Ship Mission (Part 1) [=]
  - type: STR_CRUISE_SHIP_P1
    startingCondition: STR_LAND_MISSION_HELMETS_OFF

# [=] Cruise Ship Mission (Part 2) [=]
  - type: STR_CRUISE_SHIP_P2
    startingCondition: STR_LAND_MISSION_HELMETS_OFF
   
# [=] Base Defence Mission [=]
  - type: STR_BASE_DEFENSE
    startingCondition: STR_LAND_MISSION_HELMETS_OFF
   

# [====] Starting Conditions [====]
startingConditions:
  - type: STR_LAND_MISSION_HELMETS_OFF
    armorTransformations:
      STR_NONE_UC: STR_NONE_UC_LAND
      STR_PLASTIC_AQUA_ARMOR_UC: STR_PLASTIC_AQUA_ARMOR_UC_LAND
      STR_ION_ARMOR_UC: STR_ION_ARMOR_UC_LAND
      STR_MAGNETIC_ION_ARMOR_UC: STR_MAGNETIC_ION_ARMOR_UC_LAND



I've also attached the mod directly to this post as well for convenience:
. Firing Animation for TFTD (V0-4)
« Last Edit: February 12, 2023, 11:31:30 am by Meridian »

Offline Buscher

  • Colonel
  • ****
  • Posts: 167
    • View Profile
Re: Need help with startingConditions: & armorTransformations:
« Reply #1 on: June 23, 2021, 06:41:24 pm »
I think armorTransformations is part of enviroEffects: and not startingConditions:

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: Need help with startingConditions: & armorTransformations:
« Reply #2 on: June 24, 2021, 09:02:21 am »
Thank you very much Buscher, that fixed it.

I was using the coding example found 'here' however judging by 'this' post by Solarius Scorch I found while searching for enviroEffects: it appears that the code structure has changed since it was made.
Perhaps it's related to the separation of startingConditions from enviroEffects in the code? They used to be rolled into startingConditions before.