收起左侧

[交流] 决定版techtreeProtoUnitFlag语句所使用的flagid汇总(不完全)

[复制链接]
myonion发表于 2023-2-1 23:14:43
 本帖最后由 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中的使用实例不难推出用途
  1. UseBuckets 不确定是不是个flag,影响不大
  2. NoUnitAI
  3. NotPlayerPlaceable
  4. StartEnabled 默认为启用无需改良科技,所以配合flagid没什么用
  5. NotAlive
  6. TieToWaterSurface
  7. NoTieToGround flagid="33"大概是这个,测试无限资源时只见水牛踏空而行,感觉前面部分tag和十六进制编辑器中的顺序不一样FlyingUnit? Airfield?
  8. Collideable
  9. NonCollideable 具有此flag的单位被击毙似乎会导致报错跳出,其余表现与nonsolid类似
  10. Immoveable flagid="4" 初始具有集结点的建筑无法右击地面移动(右键插旗
  11. NoHPBar
  12. DieAtZeroHitpoints
  13. DoNotDieAtZeroHitpoints
  14. DieAtZeroResources
  15. DoNotDieAtZeroResources
  16. ValidateResourceInventory
  17. DoNotValidateResourceInventory
  18. NoBloodOnDeath
  19. BloodOnDeath
  20. DoesNotHaveGatherPoint
  21. HasGatherPoint
  22. PlayerPlaceable
  23. NonSolid flagid="18"
  24. Selectable flagid="12"?
  25. NotSelectable
  26. FlattenGround
  27. FadeInOnCreation
  28. ObscuresUnits
  29. ObscuredByUnits
  30. NotObscuredByUnitsAsFoundation
  31. DoNotShowOnMinimap
  32. NonAutoFormedUnit
  33. DontRotateObstruction
  34. DoNotCreateUnitGroupAutomatically
  35. VisibleUnderFog
  36. VisibleUnderFogIfGaia
  37. AlphaFadeLifespan
  38. Wanders
  39. CollidesWithProjectiles
  40. FadeInOnBuild
  41. NotSearchable
  42. UnlimitedSupply 用在牲畜上时貌似还是会因为腐烂肉量归0而消失
  43. FaceOutwards
  44. SnapPlacement
  45. SplitAtMaxInventory 无效?
  46. FadeOutDuringDeathAnimation
  47. ForceToGaia flagid="42"
  48. DoNotYawDuringMovement
  49. MarketAbility
  50. GivesLOSToAll
  51. Doppled
  52. NotDeleteable
  53. GarrisonBonus
  54. GarrisonSpeedBonus
  55. DestroyProjectile
  56. OnlyInEditor
  57. CannotAttackDisabledUnits
  58. OrientUnitWithGround
  59. AlwaysFullColorAsCursor
  60. ConstrainOrientation
  61. InitialGarrisonOnly
  62. WallBuild
  63. ShowGarrisonButton
  64. NotCommandable
  65. KillOnAnimLoop
  66. AlwaysCheckCollisions
  67. AreaDamageConstant
  68. NoIdleActions
  69. NoProjectileDamage
  70. PlaceAnywhere
  71. ProjectileTerrainOnly
  72. PlayerOwnsObstruction 用于门只阻挡非玩家单位
  73. PlaceSocketWhenPlacing
  74. AlwaysShowAsSocket
  75. StartOnAnimationUpdate
  76. StartOnNoUpdate
  77. DeadReplacementWhenDestroyed
  78. AnnounceConversion
  79. SelectWithObstruction
  80. ConvertOnStartBuild
  81. PlaceAsFoundation
  82. ConvertToGaiaAtZeroHitpoints
  83. MakeUnbuiltAtZeroHitpoints
  84. ExcludeFromPlaytest
  85. SolidFoundation
  86. HideGarrisonFlag
  87. DoppleOnlyWhenDead
  88. DirectProjectile
  89. ForceBuildingData
  90. DecalStickToWaterSurface
  91. AllowAutoGarrison
  92. OverrideInitialGarrison
  93. TownBellButton
  94. MeteredGarrison
  95. RevealFoundation
  96. ColorTransformNonGaia
  97. ApplyHandicapTraining
  98. Tracked
  99. VisibleOwnerOnly
  100. HideFromHelp
  101. HideResourceInventory
  102. NotRotateable
  103. DestroyUnderBuilding
  104. NotScalable
  105. GodPowerExclusion
  106. Invulnerable flagid="103"
  107. DeadReplaceOnlyOnTimeout
  108. SingleGatherer
  109. InvulnerableIfGaia
  110. CorpseDecays
  111. CantBeSlowed flagid="108"
  112. HideHitpointsIfGaia
  113. FlareOnFullyBuilt
  114. AnnounceFoundationStarted
  115. VictoryBuilding
  116. PaintTextureWhenPlacing
  117. Burnable
  118. MutateDopples
  119. InvalidTownBellLocation
  120. UseObstructionOnMinimap
  121. UseAlignedObstructionOnMinimap
  122. RenderAfterWater
  123. DontSortAlphaPolys
  124. DontMarkExtraFog
  125. VisibleUnderFogOnlyAfterSeen
  126. RMCanRotate
  127. KnockoutDeath flagid="123"
  128. VariationLocked
  129. ExperienceUnit flagid="125" 效果应该等同于VeterancyEnable
  130. FadeOutDecalOnDeath
  131. AnnounceDestruction
  132. BattleMusicTrigger
  133. RotateInPlace
  134. AdjustPositionOnTerrainCollision
  135. HeroName1
  136. HeroName2
  137. HideCostFromDetailHelp
  138. PreventsWallBuilding
  139. StartingColonyBuilding
  140. ColonyPlacementCenter
  141. ColonyPlacementL
  142. CreateUniqueInstance
  143. TileAlignPlacement
  144. Nugget
  145. WorldToolTip
  146. OrientWithRiver
  147. TCBuildLimit
  148. PerimeterGenerator
  149. Airfield
  150. Blocker
  151. LockedSquad
  152. SelectOnTrain
  153. PlaceAnywhereRules
  154. ForcePopulationImpactWhenPlaced
  155. CanAutoHeal
  156. ExcludeFromMoveAllMilitary flagid="154"
  157. DoNotShowAutoGatherRate
  158. CanTargetButTakesNoDamage flagid="156" 用于战役德川技能
  159. YPUsesExtraWorkerSlot
  160. YPForceTrainAtBaseTrainPoints
  161. AllowOverPopCap
  162. ShowTactics
  163. EnterHotkeyContext
  164. CivSpecificText
  165. AlwaysAllowOverPopCap
  166. NeverCountDeathAsLoss
  167. BuildingShowTactics
  168. AllowTrainingOnWater 船不用靠岸训练单位
  169. GatherFromTrees
  170. DrawnToCrates
  171. DisplayRange 可以用DisplayedRange启用
  172. InvulnerableToAreaDamage flagid="170"免疫范围伤害无论远近程还是卡车 flagid="10"也起到同样/类似效果但不是同一个flag,10号具体是哪个flag未知
  173. DoNotDragSelectWithUnits
  174. TownDefenseUnit
  175. DontTrainInBatches flagid="173"
  176. KillIfConverted 鼓舞之旗在用,拿来复刻帝2异端科技也行
  177. ShowUnitResourceActionRates
  178. SettlerBuildLimit
  179. UseSharedBuildLimit
  180. InflictsNoDamage flagid="178" 用于假炮
  181. DisplayDecoyInfo
  182. CanDodgeAttacks 效果应该等同于EnableDodge,需要配合DodgeChance使用
  183. NextResearchIsFree flagid="181" 效果应该等同于SetNextResearchFree
  184. DisableBigButtonUI flagid="182"
  185. UnitTransformFree
  186. UseFarmingAnims flagid="184" 用于非洲田,对欧洲走动无效
  187. BuiltWithSeedingAnim
  188. RangeDisplayedAsSquare
  189. AllowSocketPlacement
  190. OptionalSocketPlacement
  191. ForceInfluenceRate
  192. AllowPlacementOnIce
  193. GatherableWhenSocketed
  194. DoNotQueue flagid="192"
  195. MagnetDoesNotLockUnits 用于非洲谷仓
  196. UseTacticArmorOverride
  197. ForceBatchTrain flagid="196"令旗军可以批量生产
  198. UISkipActiveTechs flagid="197"
  199. ApplyResourceReturnIfDeleted
  200. AlliesIgnoreInfluenceRate
  201. GatherableByAllies
  202. ShowAutoGatherAbsoluteInfo
  203. DoTacticToSameUnitType
  204. DoNotDeleteDeadHuntOnPlacement
  205. CannotSnare 用于奇穆大按钮
  206. BaseSpeedRunAnim 用于奇穆大按钮
  207. HCEconomicGatherPointOnly flagid="206"
  208. ForceGatherSiteResource flagid="207" 用于墨西哥大庄园,对欧洲田走动无效
  209. UseStaticFarmingAnims flagid="208" 用于墨西哥大庄园,对欧洲田走动无效
  210. UseDanceActions
  211. GatherGarrisonToggle
  212. HerdablesIgnoreGatherPoint
  213. CountHerdableAsGatherer
  214. GatherersContributeToResourceRate
  215. AllowGatheringWhenFull
  216. ShowAreaHealRate
  217. ForceFullTechUpdate
  218. UseAnimalsLabel
  219. DanceActionNoWorkers 疑似宝典中提到的亚洲自带隐形跳舞农
  220. ChargeMoveAnim 蓄力好时有不同的移动动画,如骷髅骑转刀
  221. SocketFreeBuilding
  222. CannotAttackIfGaia 历史地图意大利城塔
  223. ApplyFlagOverrideIfGaia
  224. ForceFullTechUpdateTeam
  225. AllowRebuildInGrouping
  226. ForceUpdateVisualWhenCnverted
  227. DisplaySocketPanel
  228. TeamKillBounty
  229. MinimapDisplayOnTop
  230. NotRepairable
  231. KillSocketWhenDestroyed
  232. TeamBuildLimit
  233. IgnoreDefaultEjectTimeout
  234. DoNotQueueEjectActions
  235. SharedGarrison
  236. DisplayMinimumRange
  237. DoNotAllowAllowAlliedGarrison
  238. DetonationDeath
  239. BuildingExtendedDeathAnim
  240. EnforceBigButtonUI
  241. DeploymentUngarrison
  242. ForceDisplaySquadModes
  243. HideIfSocketedFoundationUntouched
  244. DisplayMaxRangeOnSelection
  245. DisplayRangeToEnemies
  246. ChargeIdleAnim
  247. DoNotDamageTrees
  248. TacticArmorUseBaseIfNotSet
  249. TransformPropagateChargeState
  250. HerdableForceOriginalResource
  251. NativePreview
  252. SocketSubCivAlliance
复制代码


dablive发表于 2023-2-2 01:01:44
  • こはね : 見てるこれがdablive大佬
  • こはね : 
  • dablive 回复 こはね : 
こはね发表于 2023-2-2 11:39:39
我觉得偏移的可能性不大,就像civs.xml,他们肯定试过随便在一个位置插入国家,结果后面发现影响到现有剧情又改回去了
跳转到