飞行模式 | 让单位悬空的方法
飞行模式?是那种像手机开了飞行模式,然后把手机扔出去就能飞起来的模式吗?
找到单位后把
<MovementType>xxxx</MovementType>
将xxxx改为air
非船只单位会直接飞起来,如果需要站在地面按照格式添加
<Flag>TieToWaterSurface</Flag>
这样人就能贴在地面或者表演轻功水上漂了。
例如:
<Unit id="1491" name="KafuuChino">
<DBID>42</DBID>
<DisplayNameID>09945</DisplayNameID>
<EditorNameID>09944</EditorNameID>
<PopulationCount>1</PopulationCount>
<ObstructionRadiusX>0.4900</ObstructionRadiusX>
<ObstructionRadiusZ>0.4900</ObstructionRadiusZ>
<FormationCategory>Ranged</FormationCategory>
<MaxVelocity>6.000000</MaxVelocity>
<MaxRunVelocity>8.0000</MaxRunVelocity>
<MovementType>air</MovementType>
<TurnRate>18.0000</TurnRate>
<AnimFile>Is the order a rabbit\KafuuChino\KafuuChino.xml</AnimFile>
<ImpactType>Flesh</ImpactType>
<PhysicsInfo>dude</PhysicsInfo>
<Icon>Is the order a rabbit\KafuuChino\KafuuChino_icon</Icon>
<PortraitIcon>Is the order a rabbit\KafuuChino\KafuuChino_portrait</PortraitIcon>
<RolloverTextID>09942</RolloverTextID>
<ShortRolloverTextID>09943</ShortRolloverTextID>
<InitialHitpoints>1500.0000</InitialHitpoints>
<MaxHitpoints>1500.0000</MaxHitpoints>
<LOS>34.0000</LOS>
<ProjectileProtoUnit>InvisibleProjectile</ProjectileProtoUnit>
<ProjectileProtoUnit>Grenade</ProjectileProtoUnit>
<AutoAttackRange>16.0000</AutoAttackRange>
<UnitAIType>RangedCombative</UnitAIType>
<TrainPoints>33.0000</TrainPoints>
<Bounty>15000.0000</Bounty>
<BuildBounty>15000.0000</BuildBounty>
<Cost resourcetype="Food">20000.0000</Cost>
<Cost resourcetype="Wood">10000.0000</Cost>
<Cost resourcetype="Gold">20000.0000</Cost>
<Cost resourcetype="Fame">50000.0000</Cost>
<Cost resourcetype="XP">50000.0000</Cost>
<AllowedAge>0</AllowedAge>
<Armor type="Ranged" value="0.9900"/>
<UnitType>LogicalTypeHealed</UnitType>
<UnitType>LogicalTypeValidSharpshoot</UnitType>
<UnitType>LogicalTypeNeededForVictory</UnitType>
<UnitType>LogicalTypeHandUnitsAutoAttack</UnitType>
<UnitType>LogicalTypeLandMilitary</UnitType>
<UnitType>LogicalTypeScout</UnitType>
<UnitType>LogicalTypeValidSPCUnitsDeadCondition</UnitType>
<UnitType>LogicalTypeGarrisonInShips</UnitType>
<UnitType>LogicalTypeRangedUnitsAutoAttack</UnitType>
<UnitType>LogicalTypeVillagersAttack</UnitType>
<UnitType>LogicalTypeHandUnitsAttack</UnitType>
<UnitType>LogicalTypeRangedUnitsAttack</UnitType>
<UnitType>LogicalTypeMinimapFilterMilitary</UnitType>
<UnitType>ConvertsHerds</UnitType>
<UnitType>AbstractRangedInfantry</UnitType>
<UnitType>AbstractCavalryInfantry</UnitType>
<UnitType>CountsTowardMilitaryScore</UnitType>
<UnitType>HasBountyValue</UnitType>
<UnitType>Ranged</UnitType>
<UnitType>Unit</UnitType>
<UnitType>Hero</UnitType>
<UnitType>UnitClass</UnitType>
<UnitType>Military</UnitType>
<UnitType>AbstractInfantry</UnitType>
<Flag>CollidesWithProjectiles</Flag>
<Flag>ApplyHandicapTraining</Flag>
<Flag>TieToWaterSurface</Flag>
<Flag>NotDeleteable</Flag>
<Flag>KnockoutDeath</Flag>
<Flag>CorpseDecays</Flag>
<Flag>ShowGarrisonButton</Flag>
<Flag>DontRotateObstruction</Flag>
<Flag>ObscuredByUnits</Flag>
<Flag>OrientUnitWithGround</Flag>
<Flag>Tracked</Flag>
<Command page="10" column="2">Delete</Command>
<Command page="10" column="1">Stop</Command>
<Command page="10" column="0">Garrison</Command>
<Command page="11" column="0">Abilities</Command>
<Tactics>KafuuChino.tactics</Tactics>
<ProtoAction>
<Name>BuildingAttack</Name>
<Damage>150.000000</Damage>
<DamageType>Siege</DamageType>
<MaxRange>12.000000</MaxRange>
<ROF>3.000000</ROF>
</ProtoAction>
<ProtoAction>
<Name>DefendHandAttack</Name>
<Damage>100.000000</Damage>
<DamageType>Hand</DamageType>
<ROF>1.500000</ROF>
<DamageBonus type="AbstractHeavyInfantry">2.000000</DamageBonus>
<DamageBonus type="AbstractLightCavalry">2.000000</DamageBonus>
<DamageBonus type="xpEagleKnight">2.000000</DamageBonus>
<DamageBonus type="AbstractCavalry">0.750000</DamageBonus>
<DamageBonus type="xpCoyoteMan">0.750000</DamageBonus>
<DamageCap>1000.000000</DamageCap>
<DamageArea>5.000000</DamageArea>
<DamageFlags>GAIAEnemy</DamageFlags>
</ProtoAction>
<ProtoAction>
<Name>DefendRangedAttack</Name>
<Damage>150.000000</Damage>
<DamageType>Ranged</DamageType>
<MinRange>2.000000</MinRange>
<MaxRange>30.000000</MaxRange>
<ROF>3.000000</ROF>
<HitPercentType>Sweep</HitPercentType>
<HitPercent>100.000000</HitPercent>
<DamageBonus type="Unit">2.000000</DamageBonus>
</ProtoAction>
<ProtoAction>
<Name>GrenadierRangedAttack</Name>
<Damage>16.000000</Damage>
<DamageType>Siege</DamageType>
<MinRange>2.000000</MinRange>
<MaxRange>12.000000</MaxRange>
<ROF>3.000000</ROF>
<DamageCap>36.000000</DamageCap>
<DamageArea>3.000000</DamageArea>
<DamageFlags>GAIAEnemy</DamageFlags>
<DamageBonus type="AbstractLightCavalry">0.500000</DamageBonus>
<DamageBonus type="AbstractCavalry">0.50000</DamageBonus>
</ProtoAction>
<ProtoAction>
<Name>MeleeHandAttack</Name>
<Damage>100.000000</Damage>
<DamageType>Hand</DamageType>
<ROF>1.500000</ROF>
<DamageBonus type="AbstractHeavyInfantry">2.000000</DamageBonus>
<DamageBonus type="AbstractLightCavalry">2.000000</DamageBonus>
<DamageBonus type="xpEagleKnight">2.000000</DamageBonus>
<DamageBonus type="xpCoyoteMan">0.750000</DamageBonus>
<DamageBonus type="AbstractCavalry">0.750000</DamageBonus>
<DamageCap>1000.000000</DamageCap>
<DamageArea>5.000000</DamageArea>
<HitPercentType>Sweep</HitPercentType>
<HitPercent>100.000000</HitPercent>
<DamageFlags>GAIAEnemy</DamageFlags>
</ProtoAction>
<ProtoAction>
<Name>StaggerHandAttack</Name>
<Damage>100.000000</Damage>
<DamageType>Hand</DamageType>
<ROF>1.500000</ROF>
<DamageBonus type="AbstractHeavyInfantry">2.000000</DamageBonus>
<DamageBonus type="AbstractLightCavalry">2.000000</DamageBonus>
<DamageBonus type="xpEagleKnight">2.000000</DamageBonus>
<DamageBonus type="xpCoyoteMan">0.750000</DamageBonus>
<DamageBonus type="AbstractCavalry">0.750000</DamageBonus>
<DamageCap>1000.000000</DamageCap>
<DamageArea>5.000000</DamageArea>
<DamageFlags>GAIAEnemy</DamageFlags>
</ProtoAction>
<ProtoAction>
<Name>StaggerRangedAttack</Name>
<Damage>150.000000</Damage>
<DamageType>Magic</DamageType>
<MinRange>2.000000</MinRange>
<MaxRange>30.000000</MaxRange>
<ROF>3.000000</ROF>
<DamageBonus type="Unit">2.000000</DamageBonus>
<DamageCap>500.000000</DamageCap>
<DamageArea>3.000000</DamageArea>
<HitPercentType>Sweep</HitPercentType>
<HitPercent>100.000000</HitPercent>
<DamageFlags>GAIAEnemy</DamageFlags>
</ProtoAction>
<ProtoAction>
<Name>VolleyHandAttack</Name>
<Damage>100.000000</Damage>
<DamageType>Hand</DamageType>
<ROF>1.500000</ROF>
<DamageBonus type="AbstractHeavyInfantry">2.000000</DamageBonus>
<DamageBonus type="AbstractLightCavalry">2.000000</DamageBonus>
<DamageBonus type="xpEagleKnight">2.000000</DamageBonus>
<DamageBonus type="AbstractCavalry">0.750000</DamageBonus>
<DamageBonus type="xpCoyoteMan">0.750000</DamageBonus>
<DamageCap>1000.000000</DamageCap>
<DamageArea>5.000000</DamageArea>
<DamageFlags>GAIAEnemy</DamageFlags>
</ProtoAction>
<ProtoAction>
<Name>VolleyRangedAttack</Name>
<Damage>150.000000</Damage>
<DamageType>Magic</DamageType>
<MinRange>2.000000</MinRange>
<MaxRange>30.000000</MaxRange>
<ROF>3.000000</ROF>
<DamageBonus type="Unit">2.000000</DamageBonus>
<DamageCap>500.000000</DamageCap>
<DamageArea>3.000000</DamageArea>
<HitPercent>100.000000</HitPercent>
<HitPercentType>KillingBlow</HitPercentType>
<DamageFlags>GAIAEnemy</DamageFlags>
</ProtoAction>
<ProtoAction>
<Name>MagicRangedAttack</Name>
<Damage>150.000000</Damage>
<DamageType>Magic</DamageType>
<MinRange>2.000000</MinRange>
<MaxRange>30.000000</MaxRange>
<ROF>3.000000</ROF>
<DamageBonus type="Unit">2.000000</DamageBonus>
<DamageCap>500.000000</DamageCap>
<DamageArea>3.000000</DamageArea>
<HitPercentType>Sweep</HitPercentType>
<HitPercent>100.000000</HitPercent>
<DamageFlags>GAIAEnemy</DamageFlags>
</ProtoAction>
<ProtoAction>
<Name>MagicBeamAttack</Name>
<Damage>5000.000000</Damage>
<DamageType>Magic</DamageType>
<MinRange>20.000000</MinRange>
<MaxRange>24.000000</MaxRange>
<ROF>5.000000</ROF>
<DamageBonus type="Unit">2.000000</DamageBonus>
<DamageArea>5.000000</DamageArea>
<HitPercent>100.000000</HitPercent>
<DamageMultiplier>4294968.000000</DamageMultiplier>
<HitPercentType>CriticalAttack</HitPercentType>
<DamageFlags>GAIAEnemy</DamageFlags>
</ProtoAction>
<ProtoAction>
<Name>NatureAttack</Name>
<Damage>150.000000</Damage>
<DamageType>Magic</DamageType>
<MinRange>12.000000</MinRange>
<MaxRange>14.000000</MaxRange>
<ROF>3.000000</ROF>
<DamageBonus type="Nature">1.000000</DamageBonus>
<DamageArea>3.000000</DamageArea>
<DamageFlags>GAIAEnemy</DamageFlags>
</ProtoAction>
<ProtoAction>
<Name>NatureAttack2</Name>
<Damage>150.000000</Damage>
<DamageType>Magic</DamageType>
<MinRange>2.000000</MinRange>
<ROF>3.000000</ROF>
<DamageBonus type="Nature">1.000000</DamageBonus>
<DamageArea>3.000000</DamageArea>
<DamageFlags>GAIAEnemy</DamageFlags>
</ProtoAction>
<ProtoAction>
<Name>MoveAttack</Name>
<Damage>150.000000</Damage>
<DamageType>Magic</DamageType>
<MinRange>2.000000</MinRange>
<ROF>3.000000</ROF>
<DamageBonus type="Nature">1.000000</DamageBonus>
<DamageArea>3.000000</DamageArea>
<DamageFlags>GAIAEnemy</DamageFlags>
</ProtoAction>
</Unit>
船只改成air也只会贴在地面,要飞起来就要
把船只的
<Flag>TieToWaterSurface</Flag>
删除,这样船只就能飞起来了。
例如:
<Unit id="1463" name="YPAirWarTreasureShip">
<DBID>2142</DBID>
<DisplayNameID>05501</DisplayNameID>
<EditorNameID>05502</EditorNameID>
<ObstructionRadiusX>6.3000</ObstructionRadiusX>
<ObstructionRadiusZ>6.3000</ObstructionRadiusZ>
<FormationCategory>Ranged</FormationCategory>
<MaxVelocity>7.00000</MaxVelocity>
<MaxRunVelocity>9.00000</MaxRunVelocity>
<MovementType>Air</MovementType>
<TurnRate>4.0000</TurnRate>
<AnimFile>Mods\WarTreasureShip.xml</AnimFile>
<ImpactType>Wood</ImpactType>
<PhysicsInfo>house</PhysicsInfo>
<Icon>icon\baochuan_icon_64x64</Icon>
<PortraitIcon>units\asians\spc\treasure_ship\china_ship_icon_portrait</PortraitIcon>
<RolloverTextID>05503</RolloverTextID>
<ShortRolloverTextID>05504</ShortRolloverTextID>
<InitialHitpoints>6000.0000</InitialHitpoints>
<MaxHitpoints>6000.0000</MaxHitpoints>
<LOS>50.0000</LOS>
<ProjectileProtoUnit>Cannonball</ProjectileProtoUnit>
<UnitAIType>RangedCombative</UnitAIType>
<TrainPoints>60.0000</TrainPoints>
<BuildLimit>1</BuildLimit>
<Bounty>320.0000</Bounty>
<BuildBounty>320.0000</BuildBounty>
<Cost resourcetype="Wood">1200.0000</Cost>
<Cost resourcetype="Gold">2000.0000</Cost>
<MaxContained>100</MaxContained>
<AllowedAge>2</AllowedAge>
<Armor type="Ranged" value="0.7500"/>
<UnitType>LogicalTypeNavalMilitary</UnitType>
<UnitType>LogicalTypeValidSabotage</UnitType>
<UnitType>LogicalTypeNeededForVictory</UnitType>
<UnitType>LogicalTypeHandUnitsAutoAttack</UnitType>
<UnitType>LogicalTypeValidSPCUnitsDeadCondition</UnitType>
<UnitType>LogicalTypeRangedUnitsAutoAttack</UnitType>
<UnitType>LogicalTypeVillagersAttack</UnitType>
<UnitType>LogicalTypeHandUnitsAttack</UnitType>
<UnitType>LogicalTypeShipsAndBuildings</UnitType>
<UnitType>LogicalTypeRangedUnitsAttack</UnitType>
<UnitType>LogicalTypeMinimapFilterMilitary</UnitType>
<UnitType>Ship</UnitType>
<UnitType>Transport</UnitType>
<UnitType>Unit</UnitType>
<UnitType>Military</UnitType>
<UnitType>UnitClass</UnitType>
<UnitType>HasBountyValue</UnitType>
<UnitType>AbstractShrine</UnitType>
<UnitType>Ranged</UnitType>
<UnitType>CountsTowardMilitaryScore</UnitType>
<UnitType>AbstractWarShip</UnitType>
<!-- <Flag>TieToWaterSurface</Flag> -->
<Flag>CollidesWithProjectiles</Flag>
<Flag>DontRotateObstruction</Flag>
<Flag>ApplyHandicapTraining</Flag>
<Flag>NavalUnit</Flag>
<Flag>DecalStickToWaterSurface</Flag>
<Flag>NoFadeOnDeath</Flag>
<Flag>FadeOutDecalOnDeath</Flag>
<Flag>NoBloodOnDeath</Flag>
<Flag>HeroName1</Flag>
<Flag>HasGatherPoint</Flag>
<Flag>AllowAutoGarrison</Flag>
<Flag>ObscuresUnits</Flag>
<Flag>ForceBuildingData</Flag>
<Flag>NonAutoFormedUnit</Flag>
<Flag>ShowGarrisonButton</Flag>
<Flag>NotPlayerPlaceable</Flag>
<Flag>Tracked</Flag>
<Train row ='0' page ='0' column ='1'>ypWokouArmy</Train>
<Train row ='0' page ='0' column ='2'>ypMandarinArmy</Train>
<Train row ='0' page ='0' column ='1'>BTypWokouArmy</Train>
<Train row ='0' page ='0' column ='2'>BTypMandarinArmy</Train>
<Tech row ='0' page ='0' column ='3'>YPExaltedypMercIronTroop</Tech>
<Tech row ='0' page ='0' column ='3'>YPHonoredypMercIronTroop</Tech>
<Tech row ='0' page ='0' column ='3'>YPDisciplinedypMercIronTroop</Tech>
<Tech row ='0' page ='0' column ='4'>YPExaltedWarTreasureShip</Tech>
<Contain>LogicalTypeGarrisonInShips</Contain>
<Contain>ypFishingBoatAsian</Contain>
<Command page="10" column="1">Eject</Command>
<Command page="10" column="2">Stop</Command>
<Command page="10" column="3">Delete</Command>
<Command page="10" column="0">SetGatherPointMilitary</Command>
<Command page ='9' column ='2'>TreasureShipCoin</Command>
<Command page ='9' column ='0'>TreasureShipFood</Command>
<Command page ='9' column ='1'>TreasureShipWood</Command>
<Command page ='9' column ='3'>SquadUnlock</Command>
<Command page="11" column="3">Abilities</Command>
<Tactics>YPWarTreasureShip.tactics</Tactics>
<ProtoAction>
<Name>BroadsideAttack</Name>
<Damage>100.000000</Damage>
<DamageType>Siege</DamageType>
<MaxRange>35.000000</MaxRange>
<ROF>0.050000</ROF>
<DamageCap>180.000000</DamageCap>
<DamageBonus type="Ship">3.000000</DamageBonus>
<DamageArea>1.000000</DamageArea>
</ProtoAction>
<ProtoAction>
<Name>RangedAttack</Name>
<HitPercentType>CriticalAttack</HitPercentType>
<HitPercent>5.000000</HitPercent>
<DamageMultiplier>10.000000</DamageMultiplier>
<Damage>120.000000</Damage>
<DamageType>Siege</DamageType>
<MaxRange>35.000000</MaxRange>
<ROF>1.000000</ROF>
<DamageCap>300.000000</DamageCap>
<DamageBonus type="Building">2.000000</DamageBonus>
<DamageBonus type="AbstractArtillery">2.000000</DamageBonus>
<DamageArea>1.000000</DamageArea>
<DamageBonus type="Ship">3.000000</DamageBonus>
</ProtoAction>
<ProtoAction>
<Name>LongRangeAttack</Name>
<Damage>300.000000</Damage>
<DamageType>Siege</DamageType>
<MaxRange>45.000000</MaxRange>
<ROF>2.000000</ROF>
<DamageCap>400.000000</DamageCap>
<DamageBonus type ='Building'>10.000000</DamageBonus>
<DamageArea>10.000000</DamageArea>
</ProtoAction>
<ProtoAction>
<Name>Autogather</Name>
<Rate type="Gold">0.500000</Rate>
<Rate type="Food">0.500000</Rate>
<Rate type="Wood">0.500000</Rate>
<Rate type="XP">0.350000</Rate>
<Rate type="Trade">0.050000</Rate>
</ProtoAction>
</Unit>
PS:将可采集宝藏单位改为air后,那个单位无法采集宝藏。