请选择 进入手机版 | 继续访问电脑版
收起左侧

[交流] 决定版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,他们肯定试过随便在一个位置插入国家,结果后面发现影响到现有剧情又改回去了
こはね发表于 2024-11-22 20:29:56

test


InternalProtoUnitFlagsandIDs
0cHasGatherData
1cPlayerPlaceable
2cCollideable
3cTieToGround
4cImmoveable
5cDisplayHitpointsIfSelected
6cTieToWaterSurface
7cGenerateWaterSplashes
8cVisibleUnderFog
9cVisibleUnderFogIfGaia
10cProjectile
11cHasLOS
12cSelectable
13cDieAtZeroHitpoints
14cDieAtZeroResources
15cValidateResourceInventory
16cHasGatherPoint
17cBloodOnDeath
18cNonSolid
19cObscuresUnits
20cObscuredByUnits
21cNotObscuredByUnitsAsFoundation
22cFlattenGround
23cUseProtoUnitMinimapColor
24cFadeInOnCreation
25cShowOnMinimap
26cAutoFormedUnit
27cRotateObstruction
28cCreateUnitGroupAutomatically
29cCollidesWithProjectiles
30cFadeInOnBuild
31cAlphaFadeLifespan
32cWanders
33cFlyingUnit
34cHeightBob
35cSearchable
36cUnlimitedSupply
37cFaceOutwards
38cSnapPlacement
39cStartEnabled
40cSplitAtMaxInventory
41cFadeOutDuringDeathAnimation
42cForceToGaia
43cYawDuringMovement
44cMarketAbility
45cGivesLOSToAll
46cDoppled
47cDeleteable
48cDestroyProjectile
49cOnlyInEditor
50cGarrisonBonus
51cCanAttackDisabledUnits
52cUnused1
53cOrientUnitWithGround
54cAlwaysFullColorAsCursor
55cConstrainOrientation
56cPaintTextureWhenPlacing
57cInitialGarrisonOnly
58cWallBuild
59cShowGarrisonButton
60cCommandable
61cKillOnAnimLoop
62cAlwaysCheckCollisions
63cAreaDamageConstant
64cNoIdleActions
65cProjectileDamage
66cGarrisonSpeedBonus
67cPlaceAnywhere
68cProjectileTerrainOnly
69cPlayerOwnsObstruction
70cPlaceSocketWhenPlacing
71cAlwaysShowAsSocket
72cStartOnAnimationUpdate
73cStartOnNoUpdate
74cDeadReplacementWhenDestroyed
75cAnnounceConversion
76cSelectWithObstruction
77cDestroyUnderBuilding
78cConvertOnStartBuild
79cPlaceAsFoundation
80cConvertToGaiaAtZeroHitpoints
81cMakeUnbuiltAtZeroHitpoints
82cExcludeFromPlaytest
83cSolidFoundation
84cHideGarrisonFlag
85cDoppleOnlyWhenDead
86cDirectProjectile
87cForceBuildingData
88cDecalStickToWaterSurface
89cAllowAutoGarrison
90cOverrideInitialGarrison
91cTownBellButton
92cMeteredGarrison
93cRevealFoundation
94cMinimapColorXfrmNonGaia
95cApplyHandicapTraining
96cTracked
97cVisibleOwnerOnly
98cHideFromHelp
99cHideResourceInventory
100cRotateable
101cScalable
102cGodPowerExclusion
103cInvulnerable
104cDeadReplaceOnlyOnTimeout
105cSingleGatherer
106cInvulnerableIfGaia
107cCorpseDecays
108cCantBeSlowed
109cHideHitpointsIfGaia
110cFlareOnFullyBuilt
111cAnnounceFoundationStarted
112cVictoryBuilding
113cBurnable
114cMutateDopples
115cUseObstructionOnMinimap
116cUseAlignedObstructionOnMinimap
117cInvalidTownBellLocation
118cRenderAfterWater
119cDontSortAlphaPolys
120cDontMarkExtraFog
121cVisibleUnderFogOnlyAfterSeen
122cRMCanRotate
123cKnockoutDeath
124cVariationLocked
125cExperienceUnit
126cFadeOutDecalOnDeath
127cAnnounceDestruction
128cBattleMusicTrigger
129cRotateInPlace
130cAdjustPositionOnTerrainCollision
131cHeroName1
132cHeroName2
133cHideCostFromDetailHelp
134cPreventsWallBuilding
135cColonyBuilding
136cStartingColonyBuilding
137cColonyPlacementCenter
138cColonyPlacementL
139cCreateUniqueInstance
140cUniqueInstance
141cTileAlignPlacement
142cNugget
143cWorldToolTip
144cOrientWithRiver
145cTCBuildLimit
146cPerimeterGenerator
147cAirfield
148cBlocker
149cLockedSquad
150cSelectOnTrain
151cPlaceAnywhereRules
152cForcePopulationImpactWhenPlaced
153cCanAutoHeal
154cExcludeFromMoveAllMilitary
155cShowAutoGatherRate
156cCanTargetButTakesNoDamage
157cUsesExtraWorkerSlot
158cForceTrainAtBaseTrainPoints
159cAllowOverPopCap
160cShowTactics
161cEnterHotkeyContext
162cCivSpecificText
163cAlwaysAllowOverPopCap
164cNeverCountDeathAsLoss
165cBuildingShowTactics
166cAllowTrainingOnWater,
167cGatherFromTrees
168cDrawnToCrates
169cDisplayRange
170cInvulnerableToAreaDamage
171cDoNotDragSelectWithUnits
172cTownDefenseUnit
173cDontTrainInBatches
174cKillIfConverted
175cShowUnitResourceActionRates
176cSettlerBuildLimit
177cUseSharedBuildLimit
178cInflictsNoDamage
179cDisplayDecoyInfo
180cCanDodgeAttacks
181cNextResearchIsFree
182cDisableBigButtonUI
183cUnitTransformFree
184cUseFarmingAnims
185cBuiltWithSeedingAnim
186cRangeDisplayedAsSquare
187cAllowSocketPlacement
188cOptionalSocketPlacement
189cForceInfluenceRate
190cAllowPlacementOnIce
191cGatherableWhenSocketed
192cDoNotQueue
193cMagnetDoesNotLockUnits
194cUseTacticArmorOverride
195cResourceReturnRateTotalCost
196cForceBatchTrain
197cUISkipActiveTechs
198cApplyResourceReturnIfDeleted
199cAlliesIgnoreInfluenceRate
200cGatherableByAllies
201cShowAutoGatherAbsoluteInfo
202cDoTacticToSameUnitType
203cDoNotDeleteDeadHuntOnPlacement
204cCannotSnare
205cBaseSpeedRunAnim
206cHCEconomicGatherPointOnly
207cDeadTransformBuildLimit
208cForceGatherSiteResource
209cUseStaticFarmingAnims
210cUseDanceActions
211cGatherGarrisonToggle
212cHerdablesIgnoreGatherPoint
213cFreeRepair
214cCountHerdableAsGatherer
215cGatherersContributeToResourceRate
216cAllowGatheringWhenFull
217cShowAreaHealRate
218cForceFullTechUpdate
219cUseAnimalsLabel
220cDanceActionNoWorkers
221cChargeMoveAnim
222cSocketFreeBuilding
223cCannotAttackIfGaia
224cApplyFlagOverrideIfGaia
225cForceFullTechUpdateTeam
226cInvestmentBuilding
227cFakeConversion
228cAllowRebuildInGrouping
229cForceUpdateVisualWhenCnverted
230cDisplaySocketPanel
231cTeamKillBounty
232cMinimapDisplayOnTop
233cRepairable
234cKillSocketWhenDestroyed
235cTeamBuildLimit
236cIgnoreDefaultEjectTimeout
237cQueueEjectActions
238cSharedGarrison
239cDisplayMinimumRange
240cAllowAlliedGarrison
241cDetonationDeath
242cBuildingExtendedDeathAnim
243cEnforceBigButtonUI
244cDeploymentUngarrison
245cForceDisplaySquadModes
246cHideIfSocketedFoundationUntouched
247cDisplayMaxRangeOnSelection
248cDisplayRangeToEnemies
249cChargeIdleAnim
250cDamageTrees
251cTacticArmorUseBaseIfNotSet
252cTransformPropagateChargeState
253cHerdableForceOriginalResource

跳转到