Off Topic Galore
-
Another bug in v15914;
I had given a +1 attack bonus to fighters against surface ships, which used to work, but now it doesn't.
<attachment name="supportAttachmentAviation" attachTo="destroyer" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType"> <option name="unitType" value="fighter"/> <option name="faction" value="enemy"/> <option name="side" value="offence"/> <option name="dice" value="strength"/> <option name="bonus" value="1"/> <option name="number" value="1"/> <option name="bonusType" value="anti-ship"/> <option name="players" value="Germany:Italy:Japan:The_Soviet_Union:The_British_Empire:The_United_States"/> </attachment> <attachment name="supportAttachmentAviation" attachTo="cruiser" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType"> <option name="unitType" value="fighter"/> <option name="faction" value="enemy"/> <option name="side" value="offence"/> <option name="dice" value="strength"/> <option name="bonus" value="1"/> <option name="number" value="1"/> <option name="bonusType" value="anti-ship"/> <option name="players" value="Germany:Italy:Japan:The_Soviet_Union:The_British_Empire:The_United_States"/> </attachment> <attachment name="supportAttachmentAviation" attachTo="carrier" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType"> <option name="unitType" value="fighter"/> <option name="faction" value="enemy"/> <option name="side" value="offence"/> <option name="dice" value="strength"/> <option name="bonus" value="1"/> <option name="number" value="1"/> <option name="bonusType" value="anti-ship"/> <option name="players" value="Germany:Italy:Japan:The_Soviet_Union:The_British_Empire:The_United_States"/> </attachment> <attachment name="supportAttachmentAviation" attachTo="battleship" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType"> <option name="unitType" value="fighter"/> <option name="faction" value="enemy"/> <option name="side" value="offence"/> <option name="dice" value="strength"/> <option name="bonus" value="1"/> <option name="number" value="1"/> <option name="bonusType" value="anti-ship"/> <option name="players" value="Germany:Italy:Japan:The_Soviet_Union:The_British_Empire:The_United_States"/> </attachment> <attachment name="supportAttachmentAviation" attachTo="transport" javaClass="games.strategy.triplea.attachments.UnitSupportAttachment" type="unitType"> <option name="unitType" value="fighter"/> <option name="faction" value="enemy"/> <option name="side" value="offence"/> <option name="dice" value="strength"/> <option name="bonus" value="1"/> <option name="number" value="1"/> <option name="bonusType" value="anti-ship"/> <option name="players" value="Germany:Italy:Japan:The_Soviet_Union:The_British_Empire:The_United_States"/> </attachment> -
C Cernel pinned this topic
-
@Schulz I'm seeing two things that may or may not matter: you need to test them.
- I think that no support attachment should have the same name as an other support attachment, not even if attached to different units (but I'm not sure in case of different attached units).
- I think that those supports (if working) are giving +1 defence to the fighter (not +1 offence) because they are given by offending units. (You need to change the "side" to "defence" to support attacking fighters or to "offence:defence" to support attacking or defending fighters.)
-
@Cernel Thanks, I changed "side" to "defense" and now it works perfectly again.
Support attachments don't necessarily need to have different names for each of them.
-
-
Deleted Post
-
@Cernel Oops, it was a typo. It's "defence".
-
Is this property doing anything at all?
<attachment name="conditionAttachmentAICompatibility" attachTo="Germany" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player"> <option name="gameProperty" value="AI Compatibility"/> </attachment> -
@Schulz
Not on its own, noI think you need this, and then you can do triggers with it.
<!-- ======================================= GO isAI ======================================= --> <attachment foreach="$All-Players$" name="conditionAttachment_isAI_@All-Players@" attachTo="@All-Players@" javaClass="RulesAttachment" type="player"> <option name="isAI" value="true"/> </attachment> -
Is this property doing anything at all?
<attachment name="conditionAttachmentAICompatibility" attachTo="Germany" javaClass="games.strategy.triplea.attachments.RulesAttachment" type="player"> <option name="gameProperty" value="AI Compatibility"/> </attachment>If you are asking if the condition is doing anything, that just tests that a boolean game property is named "AI Compatibility" and is true. If that is true, than this condition is true.
The condition itself if of course doing nothing alone: it can be used for anything possibly having conditions (like triggers).
For example, if you have a trigger with only that condition, that trigger will fire inasmuch as one of your Game Options is called "AI Compatibility" and is true (assuming that the property is user-editable).
-
Sorry, I've realized that I should have been clearer.
This was not meant to be a topic for posting off-topics (also since a topic for posting off-topic would make off-topic posts on-topic thus not off-topic thus off-topic): this was meant to be a topic for any moderators to move into it anything which is off-topic wherever it has been originally posted.
I'm going to clarify this in the opening post.
(Also, this was just my idea. Other moderators feel free to say if you think it's good or bad. Also, I wonder if this topic should have been locked.)
@Schulz (and everyone) Please do not post inside this topic. If you have any questions which do not fit into an existing topic, open a new topic. Thank you.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login