本帖最后由 myonion 于 2023-4-11 23:32 编辑 RT,ProtoUnitFlag是决定版新增的科技改良效果,可以对单位的<Flag>进行增删,可惜这效果调用的是flagid而不是flag名称,于是我用dnspy的十六进制编辑器从13.29985版本的主程序(那个时候导出的列表,最近才有空试,不过期间techtree中已有实例未曾变动)中找出了单位flag列表,并根据techtree中的应用实例推测试出了一部分感觉用得上的flagid如下(此帖发布时的版本为13.38085.0 P1,存在日后更新导致flagid出现偏移的可能性)ps:大部分flag都是字面意思,结合proto和power中的使用实例不难推出用途UseBuckets 不确定是不是个flag,影响不大NoUnitAINotPlayerPlaceableStartEnabled 默认为启用无需改良科技,所以配合flagid没什么用NotAliveTieToWaterSurfaceNoTieToGround flagid="33"大概是这个,测试无限资源时只见水牛踏空而行,感觉前面部分tag和十六进制编辑器中的顺序不一样FlyingUnit? Airfield?CollideableNonCollideable 具有此flag的单位被击毙似乎会导致报错跳出,其余表现与nonsolid类似Immoveable flagid="4" 初始具有集结点的建筑无法右击地面移动(右键插旗NoHPBarDieAtZeroHitpointsDoNotDieAtZeroHitpointsDieAtZeroResourcesDoNotDieAtZeroResourcesValidateResourceInventoryDoNotValidateResourceInventoryNoBloodOnDeathBloodOnDeathDoesNotHaveGatherPointHasGatherPointPlayerPlaceableNonSolid flagid="18"Selectable flagid="12"?NotSelectableFlattenGroundFadeInOnCreationObscuresUnitsObscuredByUnitsNotObscuredByUnitsAsFoundationDoNotShowOnMinimapNonAutoFormedUnitDontRotateObstructionDoNotCreateUnitGroupAutomaticallyVisibleUnderFogVisibleUnderFogIfGaiaAlphaFadeLifespanWandersCollidesWithProjectilesFadeInOnBuildNotSearchableUnlimitedSupply 用在牲畜上时貌似还是会因为腐烂肉量归0而消失FaceOutwardsSnapPlacementSplitAtMaxInventory 无效?FadeOutDuringDeathAnimationForceToGaia flagid="42"DoNotYawDuringMovementMarketAbilityGivesLOSToAllDoppledNotDeleteableGarrisonBonusGarrisonSpeedBonusDestroyProjectileOnlyInEditorCannotAttackDisabledUnitsOrientUnitWithGroundAlwaysFullColorAsCursorConstrainOrientationInitialGarrisonOnlyWallBuildShowGarrisonButtonNotCommandableKillOnAnimLoopAlwaysCheckCollisionsAreaDamageConstantNoIdleActionsNoProjectileDamagePlaceAnywhereProjectileTerrainOnlyPlayerOwnsObstruction 用于门只阻挡非玩家单位PlaceSocketWhenPlacingAlwaysShowAsSocketStartOnAnimationUpdateStartOnNoUpdateDeadReplacementWhenDestroyedAnnounceConversionSelectWithObstructionConvertOnStartBuildPlaceAsFoundationConvertToGaiaAtZeroHitpointsMakeUnbuiltAtZeroHitpointsExcludeFromPlaytestSolidFoundationHideGarrisonFlagDoppleOnlyWhenDeadDirectProjectileForceBuildingDataDecalStickToWaterSurfaceAllowAutoGarrisonOverrideInitialGarrisonTownBellButtonMeteredGarrisonRevealFoundationColorTransformNonGaiaApplyHandicapTrainingTrackedVisibleOwnerOnly HideFromHelpHideResourceInventoryNotRotateableDestroyUnderBuildingNotScalableGodPowerExclusionInvulnerable flagid="103"DeadReplaceOnlyOnTimeoutSingleGathererInvulnerableIfGaiaCorpseDecaysCantBeSlowed flagid="108"HideHitpointsIfGaiaFlareOnFullyBuiltAnnounceFoundationStartedVictoryBuildingPaintTextureWhenPlacingBurnableMutateDopplesInvalidTownBellLocationUseObstructionOnMinimapUseAlignedObstructionOnMinimapRenderAfterWaterDontSortAlphaPolysDontMarkExtraFogVisibleUnderFogOnlyAfterSeenRMCanRotateKnockoutDeath flagid="123"VariationLockedExperienceUnit flagid="125" 效果应该等同于VeterancyEnableFadeOutDecalOnDeathAnnounceDestructionBattleMusicTriggerRotateInPlaceAdjustPositionOnTerrainCollisionHeroName1HeroName2HideCostFromDetailHelpPreventsWallBuildingStartingColonyBuildingColonyPlacementCenterColonyPlacementLCreateUniqueInstanceTileAlignPlacementNuggetWorldToolTipOrientWithRiverTCBuildLimitPerimeterGeneratorAirfieldBlockerLockedSquadSelectOnTrainPlaceAnywhereRulesForcePopulationImpactWhenPlacedCanAutoHealExcludeFromMoveAllMilitary flagid="154"DoNotShowAutoGatherRateCanTargetButTakesNoDamage flagid="156" 用于战役德川技能YPUsesExtraWorkerSlotYPForceTrainAtBaseTrainPointsAllowOverPopCapShowTacticsEnterHotkeyContextCivSpecificTextAlwaysAllowOverPopCapNeverCountDeathAsLossBuildingShowTacticsAllowTrainingOnWater 船不用靠岸训练单位GatherFromTreesDrawnToCratesDisplayRange 可以用DisplayedRange启用InvulnerableToAreaDamage flagid="170"免疫范围伤害无论远近程还是卡车 flagid="10"也起到同样/类似效果但不是同一个flag,10号具体是哪个flag未知DoNotDragSelectWithUnitsTownDefenseUnitDontTrainInBatches flagid="173"KillIfConverted 鼓舞之旗在用,拿来复刻帝2异端科技也行ShowUnitResourceActionRatesSettlerBuildLimitUseSharedBuildLimitInflictsNoDamage flagid="178" 用于假炮DisplayDecoyInfoCanDodgeAttacks 效果应该等同于EnableDodge,需要配合DodgeChance使用NextResearchIsFree flagid="181" 效果应该等同于SetNextResearchFreeDisableBigButtonUI flagid="182"UnitTransformFreeUseFarmingAnims flagid="184" 用于非洲田,对欧洲走动无效BuiltWithSeedingAnimRangeDisplayedAsSquareAllowSocketPlacementOptionalSocketPlacementForceInfluenceRateAllowPlacementOnIceGatherableWhenSocketedDoNotQueue flagid="192"MagnetDoesNotLockUnits 用于非洲谷仓UseTacticArmorOverrideForceBatchTrain flagid="196"令旗军可以批量生产UISkipActiveTechs flagid="197"ApplyResourceReturnIfDeletedAlliesIgnoreInfluenceRateGatherableByAlliesShowAutoGatherAbsoluteInfoDoTacticToSameUnitTypeDoNotDeleteDeadHuntOnPlacementCannotSnare 用于奇穆大按钮BaseSpeedRunAnim 用于奇穆大按钮HCEconomicGatherPointOnly flagid="206"ForceGatherSiteResource flagid="207" 用于墨西哥大庄园,对欧洲田走动无效UseStaticFarmingAnims flagid="208" 用于墨西哥大庄园,对欧洲田走动无效UseDanceActionsGatherGarrisonToggleHerdablesIgnoreGatherPointCountHerdableAsGathererGatherersContributeToResourceRateAllowGatheringWhenFullShowAreaHealRateForceFullTechUpdateUseAnimalsLabelDanceActionNoWorkers 疑似宝典中提到的亚洲自带隐形跳舞农ChargeMoveAnim 蓄力好时有不同的移动动画,如骷髅骑转刀SocketFreeBuildingCannotAttackIfGaia 历史地图意大利城塔ApplyFlagOverrideIfGaiaForceFullTechUpdateTeamAllowRebuildInGroupingForceUpdateVisualWhenCnvertedDisplaySocketPanelTeamKillBountyMinimapDisplayOnTopNotRepairableKillSocketWhenDestroyedTeamBuildLimitIgnoreDefaultEjectTimeoutDoNotQueueEjectActionsSharedGarrisonDisplayMinimumRangeDoNotAllowAllowAlliedGarrisonDetonationDeathBuildingExtendedDeathAnimEnforceBigButtonUIDeploymentUngarrisonForceDisplaySquadModesHideIfSocketedFoundationUntouchedDisplayMaxRangeOnSelectionDisplayRangeToEnemiesChargeIdleAnimDoNotDamageTreesTacticArmorUseBaseIfNotSetTransformPropagateChargeStateHerdableForceOriginalResourceNativePreviewSocketSubCivAlliance 复制代码
我觉得偏移的可能性不大,就像civs.xml,他们肯定试过随便在一个位置插入国家,结果后面发现影响到现有剧情又改回去了