• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

<requirement /> works on gamestages.xml?

Chicxulub

Refugee
If I try to add a custom group of zombies to a blood moon based on a certain requirement, such as probability, could that work? Something like this:

<gamestage stage="40">
<spawn group="DemolisherOnlyGroup" num="100" maxAlive="100" duration="1" interval="10">
<requirement name="RandomRoll" seed_type="Random" min_max="0,100" operation="GTE" value="50"/>
</spawn>
<spawn group="feralHordeStageGS31" num="57" maxAlive="15" duration="1" interval="28"/>
<spawn group="feralHordeStageGS35" num="57" maxAlive="15" duration="1" interval="10"/>
<spawn group="feralHordeStageGS40" num="57" maxAlive="15" duration="1"/>
<spawn group="feralHordeStageGS40" num="999" maxAlive="10"/>
</gamestage>
 
The syntax I've been using for zombie outbreaks for a long time looks like this.

The vanilla version has been changed at some point, hasn't it。


<append xpath="/entitygroups/entitygroup[@name='feralHordeStageGS40']"><entity name="zombieBusinessMan-a" prob="0.28"/><entity name="zombieyo-a" prob="0.498"/><entity name="zombieMarlene-a" prob="0.498"/><entity name="a-zombieyo2" prob="0.498"/><entity name="a-zombieyo3" prob="0.498"/><entity name="a-ZombieVulture" prob="0.291"/><entity name="a-zombieBoe" prob="0.498"/><entity name="a-ZombieDrone" prob="0.295"/><entity name="zombieCop-am01" prob="0.394"/><entity name="a-ZombieDog-m" prob="0.394"/><entity name="a_DogRider" prob="0.394"/><entity name="a_ScreamerRider" prob="0.394"/><entity name="a-armorDemolition" prob="0.394"/><entity name="a_LionRider" prob="0.45"/><entity name="a_ScreamerLionRider" prob="0.45"/><entity name="Crawler-a2" prob="0.85"/><entity name="Soldier-a2" prob="0.85"/><!--azl--><entity name="ascouJoe" prob="0.297"/><entity name="zombieArlene-a" prob="0.297"/><entity name="ascouJoe" prob="0.78"/><entity name="zombieFatCopAZ1" prob="0.56"/></append>
 
Back
Top