myonion 发表于 2023-2-1 23:14:43

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

本帖最后由 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,影响不大
NoUnitAI
NotPlayerPlaceable
StartEnabled    默认为启用无需改良科技,所以配合flagid没什么用
NotAlive
TieToWaterSurface
NoTieToGroundflagid="33"大概是这个,测试无限资源时只见水牛踏空而行,感觉前面部分tag和十六进制编辑器中的顺序不一样FlyingUnit? Airfield?
Collideable
NonCollideable具有此flag的单位被击毙似乎会导致报错跳出,其余表现与nonsolid类似
Immoveable   flagid="4"初始具有集结点的建筑无法右击地面移动(右键插旗
NoHPBar
DieAtZeroHitpoints
DoNotDieAtZeroHitpoints
DieAtZeroResources
DoNotDieAtZeroResources
ValidateResourceInventory
DoNotValidateResourceInventory
NoBloodOnDeath
BloodOnDeath
DoesNotHaveGatherPoint
HasGatherPoint
PlayerPlaceable
NonSolid    flagid="18"
Selectableflagid="12"?
NotSelectable
FlattenGround
FadeInOnCreation
ObscuresUnits
ObscuredByUnits
NotObscuredByUnitsAsFoundation
DoNotShowOnMinimap
NonAutoFormedUnit
DontRotateObstruction
DoNotCreateUnitGroupAutomatically
VisibleUnderFog
VisibleUnderFogIfGaia
AlphaFadeLifespan
Wanders
CollidesWithProjectiles
FadeInOnBuild
NotSearchable
UnlimitedSupply   用在牲畜上时貌似还是会因为腐烂肉量归0而消失
FaceOutwards
SnapPlacement
SplitAtMaxInventory无效?
FadeOutDuringDeathAnimation
ForceToGaiaflagid="42"
DoNotYawDuringMovement
MarketAbility
GivesLOSToAll
Doppled
NotDeleteable
GarrisonBonus
GarrisonSpeedBonus
DestroyProjectile
OnlyInEditor
CannotAttackDisabledUnits
OrientUnitWithGround
AlwaysFullColorAsCursor
ConstrainOrientation
InitialGarrisonOnly
WallBuild
ShowGarrisonButton
NotCommandable
KillOnAnimLoop
AlwaysCheckCollisions
AreaDamageConstant
NoIdleActions
NoProjectileDamage
PlaceAnywhere
ProjectileTerrainOnly
PlayerOwnsObstruction   用于门只阻挡非玩家单位
PlaceSocketWhenPlacing
AlwaysShowAsSocket
StartOnAnimationUpdate
StartOnNoUpdate
DeadReplacementWhenDestroyed
AnnounceConversion
SelectWithObstruction
ConvertOnStartBuild
PlaceAsFoundation
ConvertToGaiaAtZeroHitpoints
MakeUnbuiltAtZeroHitpoints
ExcludeFromPlaytest
SolidFoundation
HideGarrisonFlag
DoppleOnlyWhenDead
DirectProjectile
ForceBuildingData
DecalStickToWaterSurface
AllowAutoGarrison
OverrideInitialGarrison
TownBellButton
MeteredGarrison
RevealFoundation
ColorTransformNonGaia
ApplyHandicapTraining
Tracked
VisibleOwnerOnly
HideFromHelp
HideResourceInventory
NotRotateable
DestroyUnderBuilding
NotScalable
GodPowerExclusion
Invulnerableflagid="103"
DeadReplaceOnlyOnTimeout
SingleGatherer
InvulnerableIfGaia
CorpseDecays
CantBeSlowedflagid="108"
HideHitpointsIfGaia
FlareOnFullyBuilt
AnnounceFoundationStarted
VictoryBuilding
PaintTextureWhenPlacing
Burnable
MutateDopples
InvalidTownBellLocation
UseObstructionOnMinimap
UseAlignedObstructionOnMinimap
RenderAfterWater
DontSortAlphaPolys
DontMarkExtraFog
VisibleUnderFogOnlyAfterSeen
RMCanRotate
KnockoutDeathflagid="123"
VariationLocked
ExperienceUnitflagid="125" 效果应该等同于VeterancyEnable
FadeOutDecalOnDeath
AnnounceDestruction
BattleMusicTrigger
RotateInPlace
AdjustPositionOnTerrainCollision
HeroName1
HeroName2
HideCostFromDetailHelp
PreventsWallBuilding
StartingColonyBuilding
ColonyPlacementCenter
ColonyPlacementL
CreateUniqueInstance
TileAlignPlacement
Nugget
WorldToolTip
OrientWithRiver
TCBuildLimit
PerimeterGenerator
Airfield
Blocker
LockedSquad
SelectOnTrain
PlaceAnywhereRules
ForcePopulationImpactWhenPlaced
CanAutoHeal
ExcludeFromMoveAllMilitary   flagid="154"
DoNotShowAutoGatherRate
CanTargetButTakesNoDamageflagid="156" 用于战役德川技能
YPUsesExtraWorkerSlot
YPForceTrainAtBaseTrainPoints
AllowOverPopCap
ShowTactics
EnterHotkeyContext
CivSpecificText
AlwaysAllowOverPopCap
NeverCountDeathAsLoss
BuildingShowTactics
AllowTrainingOnWater船不用靠岸训练单位
GatherFromTrees
DrawnToCrates
DisplayRange可以用DisplayedRange启用
InvulnerableToAreaDamageflagid="170"免疫范围伤害无论远近程还是卡车 flagid="10"也起到同样/类似效果但不是同一个flag,10号具体是哪个flag未知
DoNotDragSelectWithUnits
TownDefenseUnit
DontTrainInBatches flagid="173"
KillIfConverted鼓舞之旗在用,拿来复刻帝2异端科技也行
ShowUnitResourceActionRates
SettlerBuildLimit
UseSharedBuildLimit
InflictsNoDamageflagid="178"用于假炮
DisplayDecoyInfo
CanDodgeAttacks    效果应该等同于EnableDodge,需要配合DodgeChance使用
NextResearchIsFreeflagid="181" 效果应该等同于SetNextResearchFree
DisableBigButtonUI flagid="182"
UnitTransformFree
UseFarmingAnimsflagid="184" 用于非洲田,对欧洲走动无效
BuiltWithSeedingAnim
RangeDisplayedAsSquare
AllowSocketPlacement
OptionalSocketPlacement
ForceInfluenceRate
AllowPlacementOnIce
GatherableWhenSocketed
DoNotQueue   flagid="192"
MagnetDoesNotLockUnits用于非洲谷仓
UseTacticArmorOverride
ForceBatchTrainflagid="196"令旗军可以批量生产
UISkipActiveTechsflagid="197"
ApplyResourceReturnIfDeleted
AlliesIgnoreInfluenceRate
GatherableByAllies
ShowAutoGatherAbsoluteInfo
DoTacticToSameUnitType
DoNotDeleteDeadHuntOnPlacement
CannotSnare用于奇穆大按钮
BaseSpeedRunAnim   用于奇穆大按钮
HCEconomicGatherPointOnlyflagid="206"
ForceGatherSiteResourceflagid="207" 用于墨西哥大庄园,对欧洲田走动无效
UseStaticFarmingAnimsflagid="208" 用于墨西哥大庄园,对欧洲田走动无效
UseDanceActions
GatherGarrisonToggle
HerdablesIgnoreGatherPoint
CountHerdableAsGatherer
GatherersContributeToResourceRate
AllowGatheringWhenFull
ShowAreaHealRate
ForceFullTechUpdate
UseAnimalsLabel
DanceActionNoWorkers疑似宝典中提到的亚洲自带隐形跳舞农
ChargeMoveAnim   蓄力好时有不同的移动动画,如骷髅骑转刀
SocketFreeBuilding
CannotAttackIfGaia历史地图意大利城塔
ApplyFlagOverrideIfGaia
ForceFullTechUpdateTeam
AllowRebuildInGrouping
ForceUpdateVisualWhenCnverted
DisplaySocketPanel
TeamKillBounty
MinimapDisplayOnTop
NotRepairable
KillSocketWhenDestroyed
TeamBuildLimit
IgnoreDefaultEjectTimeout
DoNotQueueEjectActions
SharedGarrison
DisplayMinimumRange
DoNotAllowAllowAlliedGarrison
DetonationDeath
BuildingExtendedDeathAnim
EnforceBigButtonUI
DeploymentUngarrison
ForceDisplaySquadModes
HideIfSocketedFoundationUntouched
DisplayMaxRangeOnSelection
DisplayRangeToEnemies
ChargeIdleAnim
DoNotDamageTrees
TacticArmorUseBaseIfNotSet
TransformPropagateChargeState
HerdableForceOriginalResource
NativePreview
SocketSubCivAlliance                                          

dablive 发表于 2023-2-2 01:01:44

{:8_309:}

こはね 发表于 2023-2-2 11:39:39

我觉得偏移的可能性不大,就像civs.xml,他们肯定试过随便在一个位置插入国家,结果后面发现影响到现有剧情又改回去了

こはね 发表于 2024-11-22 20:29:56

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

页: [1]
查看完整版本: 决定版techtreeProtoUnitFlag语句所使用的flagid汇总(不完全)