• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

TheHeathen

Private
11 Badges
May 30, 2018
19
1
  • Warlock: Master of the Arcane
  • Stellaris
  • Steel Division: Normandy 44
  • BATTLETECH
  • BATTLETECH: Flashpoint
  • BATTLETECH: Season pass
  • BATTLETECH: Heavy Metal
  • Crusader Kings II
  • Magicka
  • Majesty 2
  • Sword of the Stars
I created a Artemis IV FCS using CustomActivatableEquipment. Right now when activated it just applies a +4 to accuracy for all missiles. Does anyone know what tags I need to restrict it to LRMs/SRMs and direct fire to be in line with TT rules? Here is the relevant section:

"statisticData" : {
"appliesEachTick" : false,
"effectsPersistAfterDestruction" : false,
"statName" : "AccuracyModifier",
"operation" : "Float_Add",
"modValue" : "-4.0",
"modType" : "System.Single",
"additionalRules" : "NotSet",
"targetCollection" : "Weapon",
"targetWeaponCategory" : "Missile",
"targetWeaponType" : "NotSet",
"targetAmmoCategory" : "NotSet",
"targetWeaponSubType" : "NotSet"
},
 
i have no idea other then suggesting that there are mods on Nexus that have Artemis systems and see how they did it.
 
o_O why are you using CAE for that? CAE is for M.A.C.Ss, TSM, superchargers, EMC and so on activatables. It is not possible to restrict indirect fire via statistic data, cause it is not a statistic parameter.
 
@KMiSSioN Cause I am having fun? :D Actually, I think I have been able to do it. It seemed to have worked in my tests., but I just finished it last night and more needs to be tested.

"Custom":{
"Color" : { "UIColor" : "MissileColor" },
"Category" : [
{"CategoryID" : "Activatable"}
],
"ActivatableComponent":{
"ButtonName":"ARTIV",
"FailFlatChance":0.10,
"FailRoundsStart":0,
"FailChancePerTurn":0.0,
"FailISDamage": 0,
"FailCrit":false,
"MechTonnageWeightMult" : 0
"MechTonnageSlotsMult" : 0
"EngineTonnageWeightMult" : 0,
"EngineTonnageSlotsMult" : 0,
"FailPilotingBase": 0,
"FailPilotingMult": 0.0,
"DeactivationMessage":"DEACTIVATED",
"ActivationMessage" : "ACTIVATED",
"CanNotBeActivatedManualy":false,
"FailDamageLocations":[],
"statusEffects" : [
{
"durationData" : {
"duration" : -1,
"ticksOnActivations" : false,
},
"targetingData" : {
"effectTriggerType" : "Passive",
"effectTargetType" : "Creator",
"showInTargetPreview" : true,
"showInStatusPanel" : true
},
"effectType" : "StatisticEffect",
"Description" : {
"Id" : "StatusEffectAttackToHitMissile",
"Name" : "Missle Accuracy",
"Details" : "Missile weapon attacks have their hit improved by [AMT].",
"Icon" : "uixSvgIcon_equipment_TTS"
},
"statisticData" : {
"appliesEachTick" : false,
"effectsPersistAfterDestruction" : false,
"statName" : "AccuracyModifier",
"operation" : "Float_Add",
"modValue" : "-4.0",
"modType" : "System.Single",
"additionalRules" : "NotSet",
"targetCollection" : "Weapon",
"targetWeaponCategory" : "Missile",
"targetWeaponType" : ["LRM","SRM"],
"targetAmmoCategory" : "NotSet",
"targetWeaponSubType" : "NotSet"
},
"nature" : "Buff",
},
{
"durationData" : {
"duration" : -1,
"ticksOnActivations" : false,
},
"targetingData" : {
"effectTriggerType" : "OnActivation",
"effectTargetType" : "Creator",
"showInTargetPreview" : true,
"showInStatusPanel" : true
},
"effectType" : "StatisticEffect",
"Description" : {
"Id" : "StatusEffectAttackToHitIndirect",
"Name" : "Indirect Accuracy",
"Details" : "Indirect weapon attacks have their hit decreased by 4.",
"Icon" : "uixSvgIcon_equipment_TTS"
},
"statisticData" : {
"appliesEachTick" : false,
"effectsPersistAfterDestruction" : false,
"statName" : "ToHitIndirectModifier",
"operation" : "Float_Add",
"modValue" : "4.0",
"modType" : "System.Single",
"additionalRules" : "NotSet",
"targetCollection" : "NotSet",
"targetWeaponCategory" : "NotSet",
"targetWeaponType" : "NotSet",
"targetAmmoCategory" : "NotSet",
"targetWeaponSubType" : "NotSet"
},
"nature" : "Buff",
},
{
"durationData" : {
"duration" : -1,
"ticksOnActivations" : false,
},
"targetingData" : {
"effectTriggerType" : "Passive",
"effectTargetType" : "Creator",
"showInTargetPreview" : true,
"showInStatusPanel" : true
},
"effectType" : "StatisticEffect",
"Description" : {
"Id" : "StatusEffectHeatGenIncrese",
"Name" : "Heat Generation Increased",
"Details" : "Heat generation increased by [AMT].",
"Icon" : "uixSvgIcon_equipment_ThermalExchanger"
},
"statisticData" : {
"appliesEachTick" : false,
"effectsPersistAfterDestruction" : false,
"statName" : "HeatGenerated",
"operation" : "Float_Add",
"modValue" : "10.0",
"modType" : "System.Single",
"additionalRules" : "NotSet",
"targetCollection" : "Weapon",
"targetWeaponCategory" : "Missile",
"targetWeaponType" : ["LRM","SRM"],
"targetAmmoCategory" : "NotSet",
"targetWeaponSubType" : "NotSet"
},
"nature" : "Buff",
}
]
}
},
"StatName" : null,
"RelativeModifier" : 0,
"AbsoluteModifier" : 0,
"Description": {
"Cost": 1750000,
"Rarity": 7,
"Purchasable": true,
"Manufacturer": "Lostech",
"Model": "Artemis IV FCS",
"UIName": "Artemis IV FCS",
"Id": "Gear_TargetingTrackingSystem_ARTEMISIV",
"Name": "Artemis IV FCS",
"Details": "Introduced in 2598 by the Terran Hegemony, lost to the Inner Sphere in 2855, the Artemis IV Fire Control System is a guidance system that utilizes an infrared laser designator and tight-beam microwave transmitter which improves the accuracy of LRMs and SRMs. \r\n\r\n<b>Effect:</b>\r\n\r\n<color=#ffcc00>+4 Accuracy with missles on activation.\r\n10% Chance to fail on first activation.\r\n10% Heat generated.\r\nDoes not apply to indirect fire.</color>\r\n\r\n<color=#d9d9d9><b>Activation state can be toggled by ctrl-clicking the move button in the HUD.</b></color>",
"Icon": "uixSvgIcon_equipment_TTS"
},
"BonusValueA" : "",
"BonusValueB" : "",
"ComponentType" : "Upgrade",
"ComponentSubType" : "NotSet",
"PrefabIdentifier" : "",
"BattleValue" : 0,
"InventorySize" : 2,
"Tonnage" : 3,
"AllowedLocations" : "Torso",
"DisallowedLocations" : "All",
"CriticalComponent" : false,
"statusEffects" : [
],
"ComponentTags" : {
"items" : [
"component_type_stock",
"cae_ai_offence",
"component_type_lostech"
],
"tagSetSourceFile" : ""

I did a search off all stat names and found "ToHitIndirectModifier" and a first glance it appears to be working.