aliens

Author Topic: Might be a bug I need to report.  (Read 2139 times)

wcho035

  • Guest
Might be a bug I need to report.
« on: November 18, 2019, 02:54:29 pm »
Hey guys, I am testing my Hybrid mod today. I found a discrepancy. Maybe my coding is incorrect, but I have double check it.

In Starting condition, you have checks like forbiddenArmors:

Here is my code.

  - type: STR_UNDERWATERTEST
    forbiddenVehicles:
      - STR_TANK_CANNON
      - STR_TANK_ROCKET_LAUNCHER
      - STR_HOVERTANK_PLASMA
      - STR_TANK_LASER_CANNON
      - STR_HOVERTANK_LAUNCHER
    forbiddenCraft:
      - STR_SKYRANGER
      - STR_LIGHTNING
      - STR_AVENGER          
    forbiddenArmors:   
      - STR_NONE_UC
      - STR_PERSONAL_ARMOR_UC

In this case here, STR_NONE_UC is not allowed in the battlescape. Unfortunately, this check didn't work. Is this a bug?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9089
    • View Profile
Re: Might be a bug I need to report.
« Reply #1 on: November 18, 2019, 03:19:04 pm »
No, it's not a bug.

wcho035

  • Guest
Re: Might be a bug I need to report.
« Reply #2 on: November 18, 2019, 03:29:21 pm »
Thanks for replying Meridian.

Is there a mistake in the code? I check with the other mods like Dioxine's Piratez how this is coded. It appeared to be syntax correct. How come it is not working?

Shouldn't the Battlescape mission be blocked from starting if the starting condition is not met?

wcho035

  • Guest
Re: Might be a bug I need to report.
« Reply #3 on: November 18, 2019, 03:40:55 pm »
I think understand how this forbiddenarmour work now. There is a default armour it switch to.

I suppose I have make the necessary changes. Thank you.