craby 发表于 7 天前

有办法实现Partisan unit产生两种不同数量的单位的方法吗

起因是我想修改阿拉莫要塞科技,使建筑倒塌后产生后备民兵和长矛兵,但是发现通过Partisan unit只能产生其中一种,有什么办法能产生2种吗

myonion 发表于 7 天前

本帖最后由 myonion 于 2026-11-4 17:38 编辑

Partisan系统限制如此,想要多种要把partisan unit换成短寿命中转单位,让这个单位spawn出你需要的种类和数量。中转单位该有什么配置可以参考deQimmiitDeathReplacement。缺点是给不同建筑分配种类数量不同的partisan也要多做几个不同的中转单位

こはね 发表于 7 天前

楼上正解,tactics使用spawn能实现多种看似不可能的效果

craby 发表于 6 天前

这样的中转单位可以吗,假如partisanunit设置为这个单位并且只生成一个,是会出来一个长矛兵和一个分钟人是吗
<unit id="5005" name="AlamoReplacement">
    <dbid>5005</dbid>
    <obstructionradiusx>0.1000</obstructionradiusx>
    <obstructionradiusz>0.1000</obstructionradiusz>
    <lifespan>1.0000</lifespan>
    <maxvelocity>0.0000</maxvelocity>
    <movementtype>land</movementtype>
    <los>1.0000</los>
    <unittype>Unit</unittype>
    <flag>NoHPBar</flag>
    <flag>Immoveable</flag>
    <flag>NoBloodOnDeath</flag>
    <flag>NonAutoFormedUnit</flag>
    <flag>VisibleUnderFog</flag>
    <flag>DoNotCreateUnitGroupAutomatically</flag>
    <flag>RMCanRotate</flag>
    <flag>DisplayRange</flag>
    <flag>ObscuredByUnits</flag>
    <flag>NeverCountDeathAsLoss</flag>
    <flag>DoNotDragSelectWithUnits</flag>
    <flag>NotPlayerPlaceable</flag>
    <flag>NotSelectable</flag>
    <tactics>spawn.tactics</tactics>
    <protoaction>
      <name>Spawn</name>
      <rate type="deMinuteman">100.000000</rate>
      <rate type="ypConsulateTercio">100.000000</rate>
    </protoaction>
</unit>

myonion 发表于 6 天前

<rate type="deMinuteman">100.000000</rate>里的数字是单位个数,100当然是100个,只出来61个大概是生成空间占满了
页: [1]
查看完整版本: 有办法实现Partisan unit产生两种不同数量的单位的方法吗