aliens

Author Topic: Trying to impliment alternate weapons in base defense.  (Read 2260 times)

wcho035

  • Guest
Trying to impliment alternate weapons in base defense.
« on: January 26, 2020, 02:52:04 pm »
Hi, I am currently trying to implement alternate weapons used by attackers during a base invasion.

I am aware of

    raceBonus:   
      STR_BANDIT_REGIMENT:
        craftCustomDeploy: STR_ENZEPPELIN_BANDIT
        missionCustomDeploy: STR_BASE_DEFENSE_BANDIT

ufos:
  - type: STR_TRANSPORT
    size: STR_MEDIUM_UC
    sprite: 1
    damageMax: 200
    speedMax: 900
    accel: 2
    power: 90
    range: 60
    score: 600
    reload: 28
    breakOffTime: 1000
    raceBonus:   
      STR_BANDIT_REGIMENT:
        craftCustomDeploy: STR_TRANSPORT_BANDIT
        missionCustomDeploy: STR_BASE_DEFENSE_BANDIT
        hitBonus: 10
    battlescapeTerrainData:
and etc


  - type: STR_TRANSPORT_BANDIT
    data: &transportbandit
      - alienRank: 5
        lowQty: 4
        highQty: 8
        dQty: 4
        percentageOutsideUfo: 50
        itemSets:
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_HARPOON_POD
            - STR_MIND_PROBE
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_HARPOON_POD
            - STR_MIND_PROBE
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_MIND_PROBE
      - alienRank: 4
        lowQty: 1
        highQty: 2
        dQty: 0
        percentageOutsideUfo: 20
        itemSets:
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_HARPOON_POD
            - STR_MIND_PROBE
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_HARPOON_POD
            - STR_MIND_PROBE
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_MIND_PROBE
      - alienRank: 3
        lowQty: 1
        highQty: 2
        dQty: 0
        percentageOutsideUfo: 20
        itemSets:
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_HARPOON_POD
            - STR_MIND_PROBE
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_HARPOON_POD
            - STR_MIND_PROBE
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_MIND_PROBE
      - alienRank: 2
        lowQty: 1
        highQty: 2
        dQty: 0
        percentageOutsideUfo: 20
        itemSets:
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_HARPOON_POD
            - STR_MIND_PROBE
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_HARPOON_POD
            - STR_MIND_PROBE
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_MIND_PROBE
      - alienRank: 1
        lowQty: 1
        highQty: 3
        dQty: 0
        percentageOutsideUfo: 0
        itemSets:
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_HARPOON_POD
            - STR_MIND_PROBE
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_HARPOON_POD
            - STR_MIND_PROBE
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_MIND_PROBE
      - alienRank: 0
        lowQty: 1
        highQty: 1
        dQty: 0
        percentageOutsideUfo: 0
        itemSets:
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_HARPOON_POD
            - STR_MIND_PROBE
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_HARPOON_POD
            - STR_MIND_PROBE
          -
            - STR_JET_HARPOONRAPID
            - STR_HARPOON_POD
            - STR_MIND_PROBE 
      - alienRank: 6
        lowQty: 0
        highQty: 2
        dQty: 1
        percentageOutsideUfo: 50
        itemSets:
          -
            []
          -
            []
          -
            []
      - alienRank: 7
        lowQty: 0
        highQty: 2
        dQty: 1
        percentageOutsideUfo: 50
        itemSets:
          -
            []
          -
            []
          -
            []
    width: 60
    length: 60
    height: 9   

  - type: STR_BASE_DEFENSE_BANDIT
    data: *transportbandit
    width: 100
    length: 100
    height: 6
    #script: XBASE
    terrains:
      - XBASE
    briefing:
      palette: 0
      background: BACK01.SCR
      music: GMENBASE
    points: 5

In the base defense mission, the  game is using the original

  - type: STR_BASE_DEFENSE
    data:
    etc
    width: 100
    length: 100
    height: 6
    #script: XBASE
    terrains:
      - XBASE
    briefing:
      palette: 0
      background: BACK01.SCR
      music: GMENBASE
    points: 5

So, any clue as to why it does so? Am I missing something?
« Last Edit: January 26, 2020, 04:41:24 pm by Precentor Apollyon »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Trying to impliment alternate weapons in base defense.
« Reply #1 on: January 26, 2020, 03:56:44 pm »
Put your ruleset into code blocks like everyone else please.

There is a forum syntax specifically for that, like this:

Code: [Select]
blah blah

wcho035

  • Guest
Re: Trying to impliment alternate weapons in base defense.
« Reply #2 on: January 26, 2020, 04:44:31 pm »
How to for code blocks

And any luck? On why base defense for deployment is not using the correct one? Like

    raceBonus:   
      STR_BANDIT_REGIMENT:
        craftCustomDeploy: STR_ENZEPPELIN_BANDIT
        missionCustomDeploy: STR_BASE_DEFENSE_BANDIT

STR_BASE_DEFENSE is triggered instead of  STR_BASE_DEFENSE_BANDIT

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Trying to impliment alternate weapons in base defense.
« Reply #3 on: January 26, 2020, 05:32:29 pm »
use a toolbar icon for code block

or quote my previous example to see how the syntax works

or google it

wcho035

  • Guest
Re: Trying to impliment alternate weapons in base defense.
« Reply #4 on: January 30, 2020, 02:31:25 pm »
Is this Syntax legal? Just yes or no will be enough.

  - type: STR_DREADNOUGHTLAND
    size: STR_VERY_LARGE
    sprite: 6
    damageMax: 3400
    speedMax: 4800
    accel: 6
    power: 140
    range: 60
    score: 700
    reload: 24
    breakOffTime: 4000
    raceBonus:   
      STR_UNDERWATERMIX:
        craftCustomDeploy: STR_DREADNOUGHTLAND                         
        missionCustomDeploy: STR_TERROR_MISSION_TFTD       <-------------             
        missionCustomDeploy: STR_PORT_TERROR_TFTD                      <-------------
        missionCustomDeploy: STR_ISLAND_TERROR_TFTD                  <-------------
        missionCustomDeploy: STR_CARGO_SHIP_P1_TFTD                  <-------------
        missionCustomDeploy: STR_CARGO_SHIP_P2_TFTD                  <-------------
        missionCustomDeploy: STR_CRUISE_SHIP_P1_TFTD                  <-------------
        missionCustomDeploy: STR_CRUISE_SHIP_P2_TFTD                  <-------------
        hitBonus: 10      
    battlescapeTerrainData:
      name: UFO07
      mapDataSets:
        - BLANKS
        - UEXT2UFO
        - UEXT3UFO
        - UINT1
        - UINT2
        - UINT3
        - U_EXT02
      mapBlocks:
        - name: UFO07L
          width: 30
          length: 30
          items:
            STR_ZRBITE:
              - [17, 2, 0]
              - [16, 3, 0]
              - [3, 12, 0]
              - [26, 12, 0]

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Trying to impliment alternate weapons in base defense.
« Reply #5 on: January 30, 2020, 02:54:31 pm »
If you keep ignoring me, I will ignore you.

I officially ask you, as a moderator, to use the code block formatting for any pasted ruleset.
« Last Edit: January 30, 2020, 02:58:16 pm by Meridian »

wcho035

  • Guest
Re: Trying to impliment alternate weapons in base defense.
« Reply #6 on: January 30, 2020, 02:59:05 pm »
? What is this ignoring? I personally have no idea what is happening. Perhaps a miscommunication issue?

I have gotten this to work actually.

In all the examples I have seen on the forum. I have yet to see an example like I did. Having multiple  missionCustomDeploy like I did.

Anyway, I can't test it because I need to overhaul my Alienmission with all my new ufos before I could.  I will probably get to it eventually.

Sighed.  Thanks anyway.


wcho035

  • Guest
Re: Trying to impliment alternate weapons in base defense.
« Reply #7 on: January 30, 2020, 03:01:22 pm »
Oh that.. sorry. Been a while since I posted a question. I will remember next time.

Code: [Select]
- type: STR_DREADNOUGHTLAND
    size: STR_VERY_LARGE
    sprite: 6
    damageMax: 3400
    speedMax: 4800
    accel: 6
    power: 140
    range: 60
    score: 700
    reload: 24
    breakOffTime: 4000
    raceBonus:   
      STR_UNDERWATERMIX:
        craftCustomDeploy: STR_DREADNOUGHTLAND                         
        missionCustomDeploy: STR_TERROR_MISSION_TFTD       <-------------             
        missionCustomDeploy: STR_PORT_TERROR_TFTD                      <-------------
        missionCustomDeploy: STR_ISLAND_TERROR_TFTD                  <-------------
        missionCustomDeploy: STR_CARGO_SHIP_P1_TFTD                  <-------------
        missionCustomDeploy: STR_CARGO_SHIP_P2_TFTD                  <-------------
        missionCustomDeploy: STR_CRUISE_SHIP_P1_TFTD                  <-------------
        missionCustomDeploy: STR_CRUISE_SHIP_P2_TFTD                  <-------------
        hitBonus: 10     
    battlescapeTerrainData:
      name: UFO07
      mapDataSets:
        - BLANKS
        - UEXT2UFO
        - UEXT3UFO
        - UINT1
        - UINT2
        - UINT3
        - U_EXT02
      mapBlocks:
        - name: UFO07L
          width: 30
          length: 30
          items:
            STR_ZRBITE:
              - [17, 2, 0]
              - [16, 3, 0]
              - [3, 12, 0]
              - [26, 12, 0]

Happy?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: Trying to impliment alternate weapons in base defense.
« Reply #8 on: January 30, 2020, 03:09:18 pm »
Happy?

Happy.

And to answer the question, that syntax is not legal.

wcho035

  • Guest
Re: Trying to impliment alternate weapons in base defense.
« Reply #9 on: January 30, 2020, 03:30:48 pm »
Damn. Is there a way to achieve what I seek differently? Different type of terror missions, using the dreadnought deployment  template?

Or this deal is one per UFO only? Like 1 craftcustomdeploy and missioncustomdeploy per UFO?

wcho035

  • Guest
Re: Trying to impliment alternate weapons in base defense.
« Reply #10 on: January 31, 2020, 11:29:36 am »
I found an answer to the problem. May not what I like but it is the only way to make it happen. Thanks.