aliens

Author Topic: Weird behaviour in starting condition.  (Read 1400 times)

wcho035

  • Guest
Weird behaviour in starting condition.
« on: September 09, 2019, 12:57:56 pm »
Last night, I tested the code for starting condition in one of my underwater Alien deployment.

Say large scout underwater, put the starting condition in the list within of its section in the aliendeployment.rul. 

I then declare the tigger condition in the separate .rul files “starting condition.”

Within the list of conditions I have, for example, the Mi-24 hind. I listed it in the forbiddencraft section.

However, after testing it, in the main game and in the Battlescape where you can choose a random battle, nothing works. I mean the Mi-24 still lands on the sea floor. I tested this in the XComfiles and Piratez mod, they too shows the same problem.

So am I missing something? There is a limitation with the code?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8628
    • View Profile
Re: Weird behaviour in starting condition.
« Reply #1 on: September 09, 2019, 01:10:07 pm »
Here's an example you can try on top of vanilla:

Code: [Select]
startingConditions:
  - type: NO_SKYRANGER
    forbiddenCraft: [STR_SKYRANGER]

alienDeployments:
  - type: STR_SMALL_SCOUT
    startingCondition: NO_SKYRANGER
  - type: STR_MEDIUM_SCOUT
    startingCondition: NO_SKYRANGER
  - type: STR_LARGE_SCOUT
    startingCondition: NO_SKYRANGER