Another supportAttachment request...



  • I know that this is getting old, but I have one more idea for supportAttachments. Allow the use of decimals/fractions for the bonus value.

    <attachment name="supportAttachmentInfantryArmorSupport" attachTo="infantry" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType">
       <option name="unitType" value="armor"/>
       <option name="faction" value="allied"/>
       <option name="side" value="offence"/>
       <option name="dice" value="strength"/>
       <option name="bonus" value="0.5"/>
       <option name="number" value="1"/>
       <option name="bonusType" value="ArmorSupport" count="2"/>
    </attachment>
    

    So with this it would take 2 infantry to support 1 armor, and:

    <attachment name="supportAttachmentMarineArmorSupport" attachTo="marine" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType">
       <option name="unitType" value="armor"/>
       <option name="faction" value="allied"/>
       <option name="side" value="offence"/>
       <option name="dice" value="strength"/>
       <option name="bonus" value="0.5"/>
       <option name="number" value="1"/>
       <option name="bonusType" value="ArmorSupport" count="2"/>
    </attachment>
    

    Would allow marines to support armor or one of each.

    Just another thought...

    Cheers...


  • Moderators Admin

    @wc_sumpton I think this would be better made for the number, than the bonus.



  • @Cernel
    I could see the number as a decimal. But if I wanted to include a fighter:

    <attachment name="supportAttachmentFighterInfantrySupport" attachTo="fighter" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType">
       <option name="unitType" value="infantry"/>
       <option name="faction" value="allied"/>
       <option name="side" value="offence"/>
       <option name="dice" value="strength"/>
       <option name="bonus" value="0.5"/>
    <!-- value of "-1" means infinite -->
       <option name="number" value="-1"/>
       <option name="bonusType" value="FighterSupport"/>
    </attachment>
    

    So here a fighter could give half support to an infinite number of infantry. Now I could add artillery:

    <attachment name="supportAttachmentArtilleryInfantrySupport" attachTo="artillery" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType">
       <option name="unitType" value="infantry"/>
       <option name="faction" value="allied"/>
       <option name="side" value="offence:defense"/>
       <option name="dice" value="strength"/>
       <option name="bonus" value="0.5"/>
       <option name="number" value="2"/>
       <option name="bonusType" value="ArtillerySupport"/>
    </attachment>
    

    So one artillery can support 2 infantry or 2 artillery can support 4 infantry... as long as a fighter is supporting the battle. So I think "bonus" gives more flexibility. But ok maybe both "bonus" and "number"?

    Something to think about 😉

    Cheers...


  • Moderators Admin

    @wc_sumpton said in Another supportAttachment request...:

    @Cernel
    I could see the number as a decimal. But if I wanted to include a fighter:

    <attachment name="supportAttachmentFighterInfantrySupport" attachTo="fighter" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType">
       <option name="unitType" value="infantry"/>
       <option name="faction" value="allied"/>
       <option name="side" value="offence"/>
       <option name="dice" value="strength"/>
       <option name="bonus" value="0.5"/>
    <!-- value of "-1" means infinite -->
       <option name="number" value="-1"/>
       <option name="bonusType" value="FighterSupport"/>
    </attachment>
    

    So here a fighter could give half support to an infinite number of infantry. Now I could add artillery:

    <attachment name="supportAttachmentArtilleryInfantrySupport" attachTo="artillery" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType">
       <option name="unitType" value="infantry"/>
       <option name="faction" value="allied"/>
       <option name="side" value="offence:defense"/>
       <option name="dice" value="strength"/>
       <option name="bonus" value="0.5"/>
       <option name="number" value="2"/>
       <option name="bonusType" value="ArtillerySupport"/>
    </attachment>
    

    So one artillery can support 2 infantry or 2 artillery can support 4 infantry... as long as a fighter is supporting the battle. So I think "bonus" gives more flexibility. But ok maybe both "bonus" and "number"?

    Something to think about 😉

    Cheers...

    I see, but what country are you from?

    In my country, 0.5 is usually approximated as 1, as the most common convention. Is it approximated as 0, instead, in yours?

    Otherwise if you mean that the support is effective only when reaching a full number, meaning that a 0.99 would be seen as a 0, then I suggest you clarify it in the original post.

    However, I think things like saying a unit can be supported only if a number of other units are supporting it, at the same time, would be better made with a dedicated option, that tells the unit requires receiving support from another specific "bonusType", for this support to be effective.

    This would be actually very good for cases like, say, having an infantry that is land transported by another unit and you have a self propelled artillery that can support infantry only as long as there is one of these other units in the battle too. Or you have archers and hackneys, and you want the archers supporting the knights only if there is a hackney available for each would-be supporting archer in the battle.



  • @Cernel said in Another supportAttachment request...:

    Otherwise if you mean that the support is effective only when reaching a full number, meaning that a 0.99 would be seen as a 0, then I suggest you clarify it in the original post.

    I was thinking about "movementCostModifier" when used with territoryEffectAttachment, only the whole value would be applied, any decimal remainder would be removed. Thus 0.99 would equal 0.

    @Cernel said in Another supportAttachment request...:

    However, I think things like saying a unit can be supported only if a number of other units are supporting it, at the same time, would be better made with a dedicated option, that tells the unit requires receiving support from another specific "bonusType", for this support to be effective.

    Don't understand why when different "bonusType"s stack together. It seems that your examples given are the same thing that I described, unless I'm missing something. (Which could be the case, I've miss read a lot of thing here lately. 😲 )

    Cheers...


  • Moderators Admin

    @wc_sumpton I meant if the matter was needing two different kind of support/units to get supported, it seems more logical doing it directly rather than 0.5 + 0.5 and ignoring if only one 0.5. Also that would allow for support or nothing when it is a +2 or more. But I have to say several times I wished for something like this, especially when you have land transported units.


Log in to reply
 

39433
1881
2189
Who's Online
Visitors Today