|
Post by drpepper on Nov 11, 2017 14:53:28 GMT -5
I was dabbling in some walkby xmls and I want to know how does weight work? Does weight determine how often or how many walkbys will spawn? For example; <T n="situation">120057<!--situation_Walkby_Neighbor--></T>
<T n="weight">2</T>
Does the weight 2 means 2 sim walkbys? if I change it to 3 or 4 does that mean more Neighbor walkbys?
-Drpepper
|
|
|
Post by triplis on Nov 12, 2017 0:27:18 GMT -5
Generally speaking (it may vary a bit by context and you can usually find something in the TDESC's to figure out how specific context applies) weight refers to how one possibility is weighted against another.
So if possibility 1 has a weight of 2 and possibility 2 has a weight of 4, possibility 4 will happen more often. That's the general idea of it.
Edited to add: Another way to think of it is like a priority system. Something that has a higher weight will be considered higher priority than something that has a lower weight.
|
|
|
Post by drpepper on Nov 12, 2017 4:54:50 GMT -5
Generally speaking (it may vary a bit by context and you can usually find something in the TDESC's to figure out how specific context applies) weight refers to how one possibility is weighted against another. So if possibility 1 has a weight of 2 and possibility 2 has a weight of 4, possibility 4 will happen more often. That's the general idea of it. Edited to add: Another way to think of it is like a priority system. Something that has a higher weight will be considered higher priority than something that has a lower weight. Thanks. This is what I was thinking but was unsure. Thank you for confirming that.
|
|
|
Post by triplis on Nov 12, 2017 18:35:11 GMT -5
Generally speaking (it may vary a bit by context and you can usually find something in the TDESC's to figure out how specific context applies) weight refers to how one possibility is weighted against another. So if possibility 1 has a weight of 2 and possibility 2 has a weight of 4, possibility 4 will happen more often. That's the general idea of it. Edited to add: Another way to think of it is like a priority system. Something that has a higher weight will be considered higher priority than something that has a lower weight. Thanks. This is what I was thinking but was unsure. Thank you for confirming that. You're welcome!
|
|