ErrorNull Posted June 5, 2021 Share Posted June 5, 2021 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. 🙂 1 Link to comment Share on other sites More sharing options...
Gazz Posted June 5, 2021 Share Posted June 5, 2021 Yes Link to comment Share on other sites More sharing options...
ErrorNull Posted June 9, 2021 Author Share Posted June 9, 2021 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. 1 Link to comment Share on other sites More sharing options...
xyth Posted June 14, 2021 Share Posted June 14, 2021 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 1 Link to comment Share on other sites More sharing options...
ErrorNull Posted June 15, 2021 Author Share Posted June 15, 2021 much appreciated 👍 Link to comment Share on other sites More sharing options...
MatisJaximus Posted September 14, 2021 Share Posted September 14, 2021 (edited) 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"'. Edited September 14, 2021 by MatisJaximus (see edit history) Link to comment Share on other sites More sharing options...
ErrorNull Posted September 14, 2021 Author Share Posted September 14, 2021 Hi @MatisJaximus that's exactly how i would have calculated it and have understood it. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now