• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

entitygroups.XML - Questions about entity order and scaling of "prob" value

ErrorNull

Refugee
I'm creating some custom entitygroups within the entitygroups.xml file.

does it matter what order i list the zombie entities within each group? for example, given the two entitygroups below, myGroup1 and myGroup2, and that the game needs to spawn 3 zombies.... do both groups have exactly the same probability of spawning zombieJoe?

<entitygroup name="myGroup1">
    <entity name="zombieJoe"/>
    <entity name="zombieSkateboarder"/>

    <entity name="zombieSoldier"/>
</entitygroup>

<entitygroup name="myGroup2">

    <entity name="zombieSoldier"/>

    <entity name="zombieSkateboarder"/>

    <entity name="zombieJoe"/>
</entitygroup>

also when using the "prob" attribute, does the scaling of it matter? for example below, does myGroup1, myGroup2 and myGroup3 all have the exact same probability to spawn zombieJoe?

<entitygroup name="myGroup1">
    <entity name="zombieJoe" prob="1.0"/>
    <entity name="zombieSkateboarder" prob="0.5"/>

    <entity name="zombieSoldier" prob="0.25"/>
</entitygroup>

<entitygroup name="myGroup2">
    <entity name="zombieJoe" prob="4.0"/>
    <entity name="zombieSkateboarder" prob="2.0"/>

    <entity name="zombieSoldier" prob="1.0"/>
</entitygroup>

<entitygroup name="myGroup3">
    <entity name="zombieJoe" prob="0.1"/>
    <entity name="zombieSkateboarder" prob="0.05"/>

    <entity name="zombieSoldier" prob="0.025"/>
</entitygroup>

thanks for any insight. 🙂

 
hi gazz, thanks for your input. sorry but i'm not following.

"does it matter what order i list the zombie entities within each group?" 

you said yes.

"do both groups have exactly the same probability of spawning zombieJoe?"

you said yes. ... this contradicts the above.

"when using the "prob" attribute, does the scaling of it matter?"

you said yes.

"does myGroup1, myGroup2 and myGroup3 all have the exact same probability to spawn zombieJoe?"

you said yes. ... this contradicts the above.

clarification appreciated. thanks.

 
do both groups have exactly the same probability of spawning zombieJoe? - yes

does myGroup1, myGroup2 and myGroup3 all have the exact same probability to spawn zombieJoe? - yes

 
Following along this same line of questions.

In the below XML snippet from entitygroups, when a 'prob=' is not present, is that the equivalent of '1'?

<entitygroups>
<entitygroup name="ZombiesAll">
<entity name="zombieBoe"/>
<entity name="zombieJoe"/>
<entity name="zombieSteve"/>
<entity name="zombieNurse" prob="0.3"/>
<entity name="zombieUtilityWorker" prob="0.3"/>
<entity name="zombieJanitor" prob="0.2"/>
</entitygroup>
</entitygroups>




Would this result in a probability of the following?

Boe = 26.32

Joe = 26.32

Steve = 26.32

Nurse = 7.89

UtilityWorker = 7.89

Janitor = 5.26

Thanks for any clarification!

Answering my own question and posting it here for other people.

Xyth believes that no probability is the equivalent of 'prob="1"'.




 
Last edited by a moderator:
Back
Top