A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Name | Script | Lowest Price | Q1 | Median | Mean | Mode | Q3 | Highest Price | Highest-Lowest | Lowest Price Level | Highest Price Level | Lowest Price Items | Highest Price Items | |||||||||||||
2 | Oathtaker | paladin_background | 3060 | 5470 | 7030 | 7647 | 3690 | 9340 | 17690 | 14630 | 1 | 3 | Military Pick | Adorned Mail Shirt | Heavy Mail Coif | Greatsword | Adorned Heavy Mail Hauberk | Adorned Full Helm | |||||||||||||
3 | Oathtaker (Event) | old_paladin_background | 3060 | 5370 | 6880 | 7551 | 3690 | 9190 | 17320 | 14260 | 1 | 3 | Military Pick | Adorned Mail Shirt | Heavy Mail Coif | Fighting Axe | Wooden Shield | Adorned Heavy Mail Hauberk | Adorned Full Helm | |||||||||||||
4 | Hedge Knight | hedge_knight_background | 3730 | 6580 | 8100 | 8334 | 8850 | 9850 | 14850 | 11120 | 2 | 5 | Two-Handed Flanged Mace | Worn Mail Shirt | Mail Coif | Greatsword | Scale Armor | Bascinet with Mail | |||||||||||||
5 | Gladiator | gladiator_background | 2770 | 5180 | 6620 | 6669 | 5620 | 7930 | 10680 | 7910 | 2 | 4 | Swordlance | Gladiator Harness | Shamshir | Sipar Shield | Gladiator Harness | Gladiator Helmet | |||||||||||||
6 | Sellsword | sellsword_background | 1480 | 3270 | 4170 | 4190 | 4640 | 5080 | 7330 | 5850 | 2 | 4 | Falchion | Padded Leather | Greataxe | Mail Shirt | Padded Kettle hat | |||||||||||||
7 | Swordmaster | swordmaster_background | 3440 | 4650 | 6020 | 5805 | 6080 | 6700 | 8900 | 5460 | 3 | 5 | Arming Sword | Linen Tunic | Noble Sword | Padded Leather | Duelist's Hat | |||||||||||||
8 | Adventurous Noble | adventurous_noble_background | 2090 | 3530 | 4190 | 4242 | 3280 | 4900 | 7190 | 5100 | 1 | 3 | Handaxe | Kite Shield | Basic Mail Shirt | Winged Mace | Heater Shield | Mail Hauberk | Nasal Helmet with Mail | |||||||||||||
9 | Raider | raider_background | 1660 | 2850 | 3580 | 3624 | 3580 | 4390 | 5760 | 4100 | 2 | 4 | Falchion | Wooden Shield | Padded Leather | Flail | Wooden Shield | Worn Mail Shirt | Nasal Helmet With Rusty Mail | |||||||||||||
10 | Disowned Noble | disowned_noble_background | 480 | 1250 | 1840 | 1857 | 1260 | 2380 | 4050 | 3570 | 1 | 3 | Militia Spear | Padded Surcoat | Shortsword | Wooden Shield | Mail Hauberk | Padded Nasal Helmet | |||||||||||||
11 | Lindwurm Slayer | lindwurm_slayer_background | 3910 | 4750 | 5470 | 5509 | 5620 | 6160 | 7440 | 3530 | 1 | 1 | Fighting Spear | Buckler | Leather Scale Armor | Headscarf | Noble Sword | Buckler | Noble Mail | Duelist's Hat | |||||||||||||
12 | Bastard | bastard_background | 660 | 1490 | 2040 | 2087 | 1490 | 2660 | 4030 | 3370 | 1 | 3 | Shortsword | Padded Surcoat | Handaxe | Wooden Shield | Basic Mail Shirt | Padded Nasal Helmet | |||||||||||||
13 | Barbarian | barbarian_background | 1500 | 2100 | 2820 | 2948 | 2890 | 3890 | 4480 | 2980 | 2 | 4 | Blunt Cleaver | Thick Furs | Axehammer | Hide and Bone Armor | Leather Helmet | |||||||||||||
14 | Squire | squire_background | 510 | 840 | 1270 | 1557 | 1290 | 2750 | 3480 | 2970 | 1 | 1 | Hatchet | Leather Tunic | Winged Mace | Wooden Shield | Padded Leather | Nasal Helmet | |||||||||||||
15 | Nomad | nomad_background | 1020 | 1630 | 2360 | 2450 | 2480 | 3350 | 3980 | 2960 | 2 | 4 | Nomad Mace | Adarga Shield | Nomad Robe | Falchion | Adarga Shield | Stitched Nomad Armor | Nomad Light Helmet | |||||||||||||
16 | Assassin | assassin_southern_background | 1700 | 2730 | 3350 | 3128 | 4500 | 4380 | 4500 | 2800 | 1 | 1 | Dagger | Smoke Pot | Thick Nomad Robe | Assassin's Head Wrap | Qatal Dagger | Flash Pot | Assassin's Robe | Assassin's Head Wrap | |||||||||||||
17 | Nomad (Ranged) | nomad_ranged_background | 1240 | 1600 | 2440 | 2525 | 2330 | 3520 | 3870 | 2630 | 2 | 4 | Nomad Sling | Nomad Robe | Composite Bow | Stitched Nomad Armor | Nomad Light Helmet | Quiver of Arrows | |||||||||||||
18 | Retired Soldier | retired_soldier_background | 1460 | 2140 | 2620 | 2607 | 3310 | 3060 | 4060 | 2600 | 2 | 3 | Shortsword | Wooden Shield | Padded Leather | Handaxe | Wooden Shield | Basic Mail Shirt | Padded Nasal Helmet | |||||||||||||
19 | Militia | militia_background | 270 | 790 | 1140 | 1141 | 1290 | 1440 | 2290 | 2020 | 1 | 2 | Bludgeon | Linen Tunic | Handaxe | Buckler | Leather Lamellar Armor | Full Aketon Cap | |||||||||||||
20 | Witchhunter | witchhunter_background | 770 | 1270 | 1840 | 1701 | 1840 | 2190 | 2790 | 2020 | 1 | 3 | Light Crossbow | Rugged Surcoat | Witchhunter's Hat | Quiver of Bolts | Crossbow | Rugged Surcoat | Witchhunter's Hat | Quiver of Bolts | Knife | |||||||||||||
21 | Beast Slayer | beast_hunter_background | 990 | 1670 | 1900 | 1992 | 1720 | 2590 | 2740 | 1750 | 2 | 3 | Bundle of Javelins | Leather Tunic | Boar Spear | Throwing Net | Rugged Surcoat | Hood | |||||||||||||
22 | Wildman | wildman_background | 150 | 530 | 780 | 811 | 730 | 1090 | 1590 | 1440 | 1 | 2 | Wooden Stick | Boar Spear | Leather Wraps | |||||||||||||
23 | Anatomist | anatomist_background | 400 | 590 | 650 | 779 | 590 | 1040 | 1670 | 1270 | 1 | 1 | Knife | Undertaker's Apron | Undertaker's Hat | Dagger | Reinforced Leather Armor | Masked Kettle Helmet | |||||||||||||
24 | Deserter | deserter_background | 280 | 510 | 780 | 768 | 500 | 1020 | 1290 | 1010 | 1 | 2 | Bludgeon | Leather Tunic | Hatchet | Wooden Shield | Gambeson | Full Aketon Cap | |||||||||||||
25 | Lumberjack | lumberjack_background | 420 | 500 | 710 | 840 | 1340 | 1310 | 1390 | 970 | 1 | 1 | Hatchet | Linen Tunic | Handaxe | Padded Surcoat | Hood | |||||||||||||
26 | Gladiator (Event) | old_gladiator_background | 2060 | 2060 | 2060 | 2434 | 2060 | 2810 | 2810 | 750 | 3 | 3 | Gladiator Harness | Gladiator Harness | |||||||||||||
27 | Caravan Hand (South) | caravan_hand_southern_background | 150 | 280 | 430 | 472 | 290 | 680 | 820 | 670 | 1 | 1 | Knife | Cloth Sash | Light Southern Mace | Padded Vest | Southern Head Wrap | |||||||||||||
28 | Caravan Hand | caravan_hand_background | 200 | 360 | 460 | 472 | 420 | 600 | 840 | 640 | 1 | 1 | Knife | Leather Tunic | Shortsword | Padded Leather | Open Leather Cap | |||||||||||||
29 | Cultist | cultist_background | 120 | 270 | 350 | 370 | 320 | 500 | 750 | 630 | 1 | 1 | Knife | Tattered Sackcloth | Cultist Hood | Dagger | Cultist Leather Robe | Cultist Leather Hood | |||||||||||||
30 | Hunter | hunter_background | 1050 | 1100 | 1170 | 1349 | 1590 | 1600 | 1670 | 620 | 1 | 2 | Hunting Bow | Leather Tunic | Hood | Quiver of Arrows | Hunting Bow | Rugged Surcoat | Hunter's Hat | Quiver of Arrows | Knife | |||||||||||||
31 | Manhunter | manhunter_background | 290 | 360 | 460 | 581 | 360 | 790 | 910 | 620 | 1 | 1 | Wooden Stick | Throwing Net | Nomad Robe | Battle Whip | Throwing Net | Thick Nomad Robe | Southern Head Wrap | |||||||||||||
32 | Bowyer | bowyer_background | 450 | 450 | 550 | 724 | 450 | 950 | 1050 | 600 | 1 | 1 | Short Bow | Apron | Quiver of Arrows | Hunting Bow | Apron | Feathered Hat | Quiver of Arrows | |||||||||||||
33 | Graverobber | graverobber_background | 190 | 260 | 410 | 405 | 230 | 490 | 750 | 560 | 1 | 1 | Knife | Leather Wraps | Headscarf | Broken Ancient Sword | Rugged Surcoat | Ancient Household Helmet | |||||||||||||
34 | Flagellant | flagellant_background | 60 | 110 | 160 | 244 | 110 | 460 | 550 | 490 | 1 | 1 | Tattered Sackcloth | Reinforced Wooden Flail | Monk's Robe | Hood | |||||||||||||
35 | Poacher | poacher_background | 340 | 410 | 470 | 493 | 490 | 540 | 760 | 420 | 1 | 1 | Wonky Bow | Leather Wraps | Hood | Quiver of Arrows | Short Bow | Rugged Surcoat | Hood | Quiver of Arrows | Militia Spear | |||||||||||||
36 | Shepherd (South) | shepherd_southern_background | 150 | 160 | 530 | 408 | 540 | 540 | 540 | 390 | 1 | 1 | Sackcloth | Southern Head Wrap | Nomad Sling | Cloth Sash | Southern Head Wrap | |||||||||||||
37 | Juggler | juggler_background | 140 | 180 | 260 | 292 | 180 | 400 | 490 | 350 | 1 | 1 | Linen Tunic | Hatchet | Linen Tunic | Jester's Hat | |||||||||||||
38 | Peddler | peddler_background | 120 | 120 | 160 | 231 | 120 | 350 | 450 | 330 | 1 | 1 | Linen Tunic | Dagger | Linen Tunic | Feathered Hat | |||||||||||||
39 | Farmhand | farmhand_background | 120 | 170 | 200 | 228 | 190 | 280 | 410 | 290 | 1 | 1 | Sackcloth | Pitchfork | Linen Tunic | Straw Hat | |||||||||||||
40 | Peddler | peddler_southern_background | 100 | 140 | 140 | 205 | 140 | 330 | 390 | 290 | 1 | 1 | Cloth Sash | Dagger | Cloth Sash | Southern Head Wrap | |||||||||||||
41 | Thief | thief_background | 200 | 240 | 390 | 333 | 430 | 430 | 460 | 260 | 1 | 1 | Knife | Sackcloth | Headscarf | Dagger | Leather Tunic | Hood | |||||||||||||
42 | Minstrel | minstrel_background | 130 | 230 | 280 | 272 | 380 | 380 | 380 | 250 | 1 | 1 | Linen Tunic | Lute | Linen Tunic | Feathered Hat | |||||||||||||
43 | Shepherd | shepherd_background | 160 | 220 | 350 | 314 | 380 | 380 | 410 | 250 | 1 | 1 | Sackcloth | Straw Hat | Staff Sling | Leather Tunic | Straw Hat | |||||||||||||
44 | Killer on the Run | killer_on_the_run_background | 210 | 230 | 230 | 314 | 230 | 420 | 420 | 210 | 1 | 1 | Knife | Linen Tunic | Hood | Dagger | Leather Tunic | Hood | |||||||||||||
45 | Vagabond | vagabond_background | 70 | 150 | 170 | 176 | 170 | 210 | 270 | 200 | 1 | 1 | Tattered Sackcloth | Knife | Leather Tunic | Straw Hat | |||||||||||||
46 | Fisherman | fisherman_background | 160 | 210 | 230 | 243 | 230 | 290 | 330 | 170 | 1 | 1 | Throwing Net | Sackcloth | Knife | Throwing Net | Leather Tunic | Straw Hat | |||||||||||||
47 | Gambler | gambler_background | 120 | 120 | 120 | 159 | 120 | 190 | 290 | 170 | 1 | 1 | Linen Tunic | Noble Tunic | Feathered Hat | |||||||||||||
48 | Beggar | beggar_background | 30 | 70 | 80 | 83 | 80 | 120 | 180 | 150 | 1 | 1 | Tattered Sackcloth | Wooden Stick | Leather Wraps | Hood | |||||||||||||
49 | Beggar (South) | beggar_southern_background | 30 | 70 | 80 | 82 | 80 | 120 | 180 | 150 | 1 | 1 | Tattered Sackcloth | Wooden Stick | Leather Wraps | Nomad Head Wrap | |||||||||||||
50 | Cripple | cripple_background | 30 | 70 | 80 | 82 | 80 | 120 | 180 | 150 | 1 | 1 | Tattered Sackcloth | Wooden Stick | Leather Wraps | Hood | |||||||||||||
51 | Cripple (South) | cripple_southern_background | 30 | 70 | 80 | 83 | 80 | 120 | 180 | 150 | 1 | 1 | Tattered Sackcloth | Wooden Stick | Leather Wraps | Nomad Head Wrap | |||||||||||||
52 | Eunuch (South) | eunuch_southern_background | 100 | 100 | 240 | 172 | 240 | 240 | 240 | 140 | 1 | 1 | Cloth Sash | Padded Vest | |||||||||||||
53 | Houndmaster | houndmaster_background | 210 | 270 | 280 | 278 | 350 | 350 | 350 | 140 | 1 | 1 | Rugged Surcoat | Throwing Net | Rugged Surcoat | Open Leather Cap | |||||||||||||
54 | Companion (1H) | companion_1h_background | 540 | 570 | 590 | 593 | 570 | 630 | 670 | 130 | 1 | 1 | Militia Spear | Wooden Shield | Padded Surcoat | Open Leather Cap | Militia Spear | Wooden Shield | Gambeson | Full Aketon Cap | |||||||||||||
55 | Daytaler (South) | daytaler_southern_background | 90 | 100 | 130 | 125 | 90 | 150 | 210 | 120 | 1 | 1 | Sackcloth | Wooden Stick | Cloth Sash | Southern Head Wrap | |||||||||||||
56 | Gravedigger | gravedigger_background | 50 | 90 | 120 | 118 | 170 | 140 | 170 | 120 | 1 | 1 | Tattered Sackcloth | Knife | Sackcloth | Hood | |||||||||||||
57 | Tailor (South) | tailor_southern_background | 90 | 90 | 110 | 137 | 90 | 190 | 210 | 120 | 1 | 1 | Cloth Sash | Linen Tunic | Feathered Hat | |||||||||||||
58 | Daytaler | daytaler_background | 90 | 120 | 130 | 128 | 90 | 160 | 200 | 110 | 1 | 1 | Sackcloth | Knife | Linen Tunic | Headscarf | |||||||||||||
59 | Butcher | butcher_background | 190 | 190 | 290 | 257 | 290 | 290 | 290 | 100 | 1 | 1 | Knife | Butcher's Apron | Butcher's Cleaver | Butcher's Apron | |||||||||||||
60 | Butcher (South) | butcher_southern_background | 190 | 190 | 290 | 257 | 290 | 290 | 290 | 100 | 1 | 1 | Knife | Butcher's Apron | Butcher's Cleaver | Butcher's Apron | |||||||||||||
61 | Historian | historian_background | 160 | 160 | 160 | 184 | 160 | 160 | 260 | 100 | 1 | 1 | Linen Tunic | Linen Tunic | Feathered Hat | |||||||||||||
62 | Messenger | messenger_background | 120 | 150 | 170 | 177 | 200 | 200 | 220 | 100 | 1 | 1 | Linen Tunic | Leather Tunic | Straw Hat | |||||||||||||
63 | Tailor | tailor_background | 110 | 110 | 110 | 159 | 110 | 210 | 210 | 100 | 1 | 1 | Linen Tunic | Linen Tunic | Feathered Hat | |||||||||||||
64 | Companion (1H South) | companion_1h_southern_background | 1230 | 1240 | 1300 | 1288 | 1320 | 1320 | 1320 | 90 | 1 | 1 | Fire Lance | Adarga Shield | Thick Nomad Robe | Southern Head Wrap | Fire Lance | Adarga Shield | Padded Vest | Leather Head Wrap | |||||||||||||
65 | Companion (2H) | companion_2h_background | 650 | 670 | 680 | 690 | 670 | 730 | 740 | 90 | 1 | 1 | Woodcutter's Axe | Padded Surcoat | Headscarf | Woodcutter's Axe | Gambeson | Hood | |||||||||||||
66 | Companion (2H South) | companion_2h_southern_background | 790 | 800 | 870 | 849 | 880 | 880 | 880 | 90 | 1 | 1 | Two-Handed Mallet | Thick Nomad Robe | Southern Head Wrap | Two-Handed Mallet | Leather Nomad Robe | Leather Head Wrap | |||||||||||||
67 | Gambler (South) | gambler_southern_background | 100 | 100 | 100 | 117 | 100 | 100 | 190 | 90 | 1 | 1 | Cloth Sash | Noble Tunic | |||||||||||||
68 | Indebted | slave_background | 190 | 200 | 210 | 215 | 220 | 220 | 270 | 80 | 1 | 1 | Tattered Sackcloth | Leather Wraps | |||||||||||||
69 | Indebted (South) | slave_southern_background | 190 | 200 | 210 | 214 | 190 | 220 | 270 | 80 | 1 | 1 | Leather Wraps | ||||||||||||||
70 | Companion (Ranged South) | companion_ranged_southern_background | 750 | 750 | 820 | 796 | 820 | 820 | 820 | 70 | 1 | 1 | Composite Bow | Thick Nomad Robe | Southern Head Wrap | Quiver of Arrows | Knife | Composite Bow | Leather Nomad Robe | Southern Head Wrap | Quiver of Arrows | Knife | |||||||||||||
71 | Refugee | refugee_background | 40 | 40 | 70 | 72 | 40 | 90 | 110 | 70 | 1 | 1 | Tattered Sackcloth | Wooden Stick | Sackcloth | |||||||||||||
72 | Historian | historian_southern_background | 140 | 140 | 140 | 155 | 140 | 140 | 200 | 60 | 1 | 1 | Cloth Sash | Cloth Sash | Southern Head Wrap | |||||||||||||
73 | Brawler | brawler_background | 130 | 130 | 150 | 154 | 150 | 180 | 180 | 50 | 1 | 1 | Tattered Sackcloth | Leather Wraps | |||||||||||||
74 | Fisherman (South) | fisherman_southern_background | 220 | 220 | 230 | 245 | 220 | 260 | 270 | 50 | 1 | 1 | Throwing Net | Sackcloth | Southern Head Wrap | Knife | Throwing Net | Cloth Sash | Southern Head Wrap | |||||||||||||
75 | Companion (Ranged) | companion_ranged_background | 550 | 550 | 590 | 570 | 590 | 590 | 590 | 40 | 1 | 1 | Light Crossbow | Thick Tunic | Quiver of Bolts | Knife | Light Crossbow | Rugged Surcoat | Quiver of Bolts | Knife | |||||||||||||
76 | Miller | miller_background | 130 | 130 | 130 | 144 | 130 | 160 | 170 | 40 | 1 | 1 | Linen Tunic | Wooden Stick | Linen Tunic | |||||||||||||
77 | Servant | servant_background | 70 | 70 | 110 | 90 | 110 | 110 | 110 | 40 | 1 | 1 | Sackcloth | Linen Tunic | |||||||||||||
78 | Thief (South) | thief_southern_background | 210 | 210 | 220 | 227 | 250 | 250 | 250 | 40 | 1 | 1 | Knife | Sackcloth | Nomad Head Wrap | Knife | Nomad Robe | Nomad Head Wrap | |||||||||||||
79 | Apprentice | apprentice_background | 150 | 150 | 160 | 163 | 150 | 180 | 180 | 30 | 1 | 1 | Linen Tunic | Leather Tunic | |||||||||||||
80 | Eunuch | eunuch_background | 120 | 120 | 150 | 135 | 150 | 150 | 150 | 30 | 1 | 1 | Linen Tunic | Leather Tunic | |||||||||||||
81 | Miner | miner_background | 240 | 240 | 240 | 250 | 240 | 260 | 260 | 20 | 1 | 1 | Pickaxe | Sackcloth | Pickaxe | Sackcloth | Mouth Piece | |||||||||||||
82 | Ratcatcher | ratcatcher_background | 110 | 110 | 130 | 120 | 130 | 130 | 130 | 20 | 1 | 1 | Throwing Net | Tattered Sackcloth | Throwing Net | Sackcloth | |||||||||||||
83 | Servant (South) | servant_southern_background | 70 | 70 | 90 | 80 | 90 | 90 | 90 | 20 | 1 | 1 | Sackcloth | Cloth Sash | |||||||||||||
84 | Assassin | assassin_background | 4050 | 4050 | 4050 | 4050 | 4050 | 4050 | 4050 | 0 | 4 | 4 | Rondel Dagger | Dark Thick Tunic | Hood | Rondel Dagger | Dark Thick Tunic | Hood | |||||||||||||
85 | Crusader | crusader_background | 21140 | 21140 | 21140 | 21140 | 21140 | 21140 | 21140 | 0 | 9 | 9 | Greatsword | Mail Hauberk | Full Helm | Greatsword | Mail Hauberk | Full Helm | |||||||||||||
86 | Juggler (South) | juggler_southern_background | 120 | 120 | 120 | 120 | 120 | 120 | 120 | 0 | 1 | 1 | Cloth Sash | Cloth Sash | |||||||||||||
87 | Mason | mason_background | 150 | 150 | 150 | 150 | 150 | 150 | 150 | 0 | 1 | 1 | Linen Tunic | Linen Tunic | |||||||||||||
88 | Monk | monk_background | 120 | 120 | 120 | 120 | 120 | 120 | 120 | 0 | 1 | 1 | Monk's Robe | Monk's Robe | |||||||||||||
89 | Orc Slayer | orc_slayer_background | 15270 | 15270 | 15270 | 15271 | 15270 | 15270 | 15270 | 0 | 9 | 9 | Two-Handed Hammer | Mail Hauberk | Two-Handed Hammer | Mail Hauberk | |||||||||||||
90 | Pimp | pimp_background | 290 | 290 | 290 | 290 | 290 | 290 | 290 | 0 | 1 | 1 | Noble Tunic | Feathered Hat | Noble Tunic | Feathered Hat | |||||||||||||
91 | |||||||||||||||||||||||||||
92 | |||||||||||||||||||||||||||
93 | Notes: | ||||||||||||||||||||||||||
94 | Generated by creating 3000 of each background, rolling their random equipment, levels etc, then recording the values | ||||||||||||||||||||||||||
95 | Script to generate(using DevConsole): | ||||||||||||||||||||||||||
96 | local NUM_RUNS = 3000; local backgrounds = this.IO.enumerateFiles("scripts/skills/backgrounds/"); local backgroundsToSkip = [ "scripts/skills/backgrounds/belly_dancer_background", "scripts/skills/backgrounds/character_background", "scripts/skills/backgrounds/converted_cultist_background", "scripts/skills/backgrounds/crucified_background", "scripts/skills/backgrounds/monk_turned_flagellant_background", "scripts/skills/backgrounds/pacified_flagellant_background", "scripts/skills/backgrounds/regent_in_absentia_background", "scripts/skills/backgrounds/kings_guard_background", "scripts/skills/backgrounds/gladiator_origin_background", "scripts/skills/backgrounds/slave_barbarian_background", ] local roster = this.World.createRoster(9876); local dude, dudeBackground, price, result; dude = roster.create("scripts/entity/tactical/player"); dude.setName = function(_name = null){}; local function setVals(_table) { _table.HiringCost = price; _table.Level = dudeBackground.m.Level; _table.Items = "" foreach (item in dude.getItems().getAllItems()){ _table.Items += item.getName() + " | "; } if(_table.Items.len() > 0) _table.Items = _table.Items.slice(0, _table.Items.len() - 3) } foreach(background in backgrounds) { // Skip some event ones that don't have any variance if (backgroundsToSkip.find(background) != null) { continue; } price = 0; result = { Name = "", ShortBackground = split(background, "/")[3], Lowest = { HiringCost = 99999, Level = 0, Items = "" }, Highest = { HiringCost = 0, Level = 0, Items = "" }, Mean = 0, FrequencyTable = {}, Mode = 0, FirstQ = 0, Median = 0, ThirdQ = 0, ModeFreq = 0, Total = 0, AllPrices = [] } for (local i = 0; i < NUM_RUNS; ++i) { dude.m.Items = this.new("scripts/items/item_container"); dude.m.Items.setActor(dude); dude.m.Skills = this.new("scripts/skills/skill_container"); dude.m.Skills.setActor(dude); dude.m.HiringCost = 0; dudeBackground = this.new(background); dude.m.Skills.add(dudeBackground); dudeBackground.addEquipment(); if (result.Name == ""){ result.Name = dudeBackground.m.Name; }; price = dude.getHiringCost(); result.Total += price; result.AllPrices.push(price); if (!(price in result.FrequencyTable)){ result.FrequencyTable[price] <- 1; } else { result.FrequencyTable[price] += 1; }; if (price < result.Lowest.HiringCost){ setVals(result.Lowest); }; if (price > result.Highest.HiringCost){ setVals(result.Highest); }; }; result.Mean = this.Math.round(result.Total / result.AllPrices.len()); foreach(price, freq in result.FrequencyTable) { if (freq > result.ModeFreq) { result.ModeFreq = freq; result.Mode = price; }; }; result.AllPrices.sort(); result.FirstQ = result.AllPrices[(0.25 * result.AllPrices.len()).tointeger()]; result.Median = result.AllPrices[(0.50 * result.AllPrices.len()).tointeger()]; result.ThirdQ = result.AllPrices[(0.75 * result.AllPrices.len()).tointeger()]; ::logInfo( result.Name + "," + result.ShortBackground + "," + result.Mean + "," + result.Mode + "," + result.Lowest.HiringCost + "," + result.FirstQ + "," + result.Median + "," + result.ThirdQ + "," + result.Highest.HiringCost + "," + result.Lowest.Items + "," + result.Lowest.Level + "," + result.Highest.Items + "," + result.Highest.Level ) } | ||||||||||||||||||||||||||
97 | |||||||||||||||||||||||||||
98 | |||||||||||||||||||||||||||
99 | |||||||||||||||||||||||||||
100 |