Hi George,
just a quick question, are the frequency values still as in this table ?
* Common 20%
* Uncommon 10%
* Rare 5%
* VeryRare 3%
* Notrandom
I'm asking because I don't know how to test it in a simple way.
frequency values
-
- Developer
- Posts: 2998
- Joined: Thu Jul 24, 2003 9:53 pm
- Contact:
They are (and, I believe, have been for a while):digdug wrote:Hi George,
just a quick question, are the frequency values still as in this table ?
* Common 20%
* Uncommon 10%
* Rare 5%
* VeryRare 3%
* Notrandom
I'm asking because I don't know how to test it in a simple way.
Common: 20
Uncommon: 10
Rare: 4
VeryRare: 1
[Technically, they are not % values--they simply relative values: "common" is twice a frequent as "uncommon".]
- Arisaya
- Fleet Admiral
- Posts: 5535
- Joined: Tue Feb 05, 2008 1:10 am
- Location: At the VSS Shipyards in the frontier, designing new ships.

Thanks george!
So it's like:
(this-rarity/sum(all-rarities))=chance <- like that?
(shpOrder gPlayership 'barrelRoll)
<New tutorials, modding resources, and official extension stuff coming to this space soon!>
<New tutorials, modding resources, and official extension stuff coming to this space soon!>
Code: Select all
Common: 20
Uncommon: 10
Rare: 4
VeryRare: 1
Common: 20/35= 57%
Uncommon: 10/35=29%
Rare: 4/35= 11%
VeryRare: 1/35= 3%
Just out of curiosity, can transdata output a summary of the number of items in each frequency?
eg:
Common: 200 items
Uncommon: 100 items
Rare: 40 items
VeryRare: 10 items
Coming soon: The Syrtian War adventure mod!
A Turret defense genre mod exploring the worst era in Earth's history.
Can you defend the Earth from the Syrtian invaders?
Stay tuned for updates!
A Turret defense genre mod exploring the worst era in Earth's history.
Can you defend the Earth from the Syrtian invaders?
Stay tuned for updates!
-
- Developer
- Posts: 2998
- Joined: Thu Jul 24, 2003 9:53 pm
- Contact:
Yes, that's right.Wolfy wrote:
Thanks george!
So it's like:
(this-rarity/sum(all-rarities))=chance <- like that?
-
- Developer
- Posts: 2998
- Joined: Thu Jul 24, 2003 9:53 pm
- Contact:
Yeah, that looks right.Prophet wrote:One further question: what would be the effect of creating 1000 new items, all with veryRare frequency? would that skew the curve or would those 1000 items all be competing for that 3% chance of some screen time?Code: Select all
Common: 20 Uncommon: 10 Rare: 4 VeryRare: 1 Common: 20/35= 57% Uncommon: 10/35=29% Rare: 4/35= 11% VeryRare: 1/35= 3%
Just out of curiosity, can transdata output a summary of the number of items in each frequency?
eg:
Common: 200 items
Uncommon: 100 items
Rare: 40 items
VeryRare: 10 items
Creating 1000 very rare item types would skew the curve.
The frequency is used most commonly in <RandomItem> (which generates random items for stations). The algorithm iterates over selected item types and adds up their total frequency value. The percent chance of any one item type is its frequency value divided by the total frequency value.
So, imagine that the criteria selected 1 common item and 80 very rare items. The total frequency value is (1 * 20) + (80 * 1) = 100. The chance of getting the common item is (20/100) = 20%. The chance of getting a specific very rare is (1/100) = 1%. The chance of getting any very rare is 80%.
The best way to get stats on anything is to have TransData output a full table and use Excel to slice the data.