Advertisement
Guest User

Halo 2 Anniversary Randomize Traits

a guest
Jan 7th, 2015
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 9.12 KB | None | 0 0
  1. """Script to print a randomized list of Halo 2 Anniversary player traits.
  2.    Application:    Choose Team Slayer BR. Set Attacker Traits to those
  3.                    provided by this script. Play two rounds to 25, Red vs
  4.                    Blue. Blue team will have the randomized traits during
  5.                    round 1. Red team will have default traits. The teams will
  6.                    automatically swap roles for the second round."""
  7.  
  8. traits = {
  9.             'Shields and Health': {
  10.                 'Damage Resistance': [
  11.                     'Unchanged', '10%', '25%', '45%', '50%', '90%',
  12.                     '100% (Normal)', '110%', '150%', '200%', '300%', '500%',
  13.                     '1000%', '2000%', 'Invulnerable'
  14.                     ],
  15.                 'Shield Multiplier': [
  16.                     'Unchanged', 'No Shields', 'Normal Shields',
  17.                     '1.5x Overshields', '2x Overshields', '3x Overshields',
  18.                     '4x Overshields'
  19.                     ],
  20.                 'Shield Recharge Rate': [
  21.                     'Unchanged', '-25%', '-10%', '-5%', '0%', '10%', '25%',
  22.                     '50%', '75%', '90%', '100%', '110%', '125%', '150%',
  23.                     '200%'
  24.                     ],
  25.                 'Shield Recharge Wait': [
  26.                     'Unchanged', 'Instant', '1 Second', '2 Seconds',
  27.                     '3 Seconds', '4 Seconds', '5 Seconds', '6 Seconds',
  28.                     '7 Seconds', '8 Seconds', '9 Seconds', '10 Seconds',
  29.                     '12 Seconds', '15 Seconds', '20 Seconds', '30 Seconds',
  30.                     '45 Seconds', '60 Seconds'
  31.                     ],
  32.                 'Headshot Immunity': [
  33.                     'Unchanged', 'Disabled', 'Enabled'
  34.                     ],
  35.                 'Assassination Immunity': [
  36.                     'Unchanged', 'Disabled', 'Enabled'
  37.                     ]
  38.                 },
  39.             'Weapons and Damage': {
  40.                 'Primary Weapon': [
  41.                     'Unchanged', 'Assault Rifle', 'SMG', 'SMG Suppressed',
  42.                     'Battle Rifle', 'Covenant Carbine', 'Magnum',
  43.                     'Survivor Magnum', 'Plasma Rifle', 'Brute Plasma Rifle',
  44.                     'Plasma Pistol', 'Shotgun', 'Survivor Shotgun', 'Needler',
  45.                     'Sniper Rifle', 'Beam Rifle', 'Fuel Rod Cannon',
  46.                     'Rocket Launcher', 'Brute Shot', 'Sentinel Beam',
  47.                     'Energy Sword', 'Infected Sword', 'Random'
  48.                     ],
  49.                 'Secondary Weapon': [
  50.                     'Unchanged', 'None', 'Assault Rifle', 'SMG',
  51.                     'SMG Suppressed', 'Battle Rifle', 'Covenant Carbine',
  52.                     'Magnum', 'Survivor Magnum', 'Plasma Rifle',
  53.                     'Brute Plasma Rifle', 'Plasma Pistol', 'Shotgun',
  54.                     'Survivor Shotgun', 'Needler', 'Sniper Rifle',
  55.                     'Beam Rifle', 'Fuel Rod Cannon', 'Rocket Launcher',
  56.                     'Brute Shot', 'Sentinel Beam', 'Energy Sword',
  57.                     'Infected Sword', 'Random'
  58.                     ],
  59.                 'Grenade Count': [
  60.                     'Unchanged', 'No Grenades', '1x Frag', '2x Frag',
  61.                     '1x Plasma', '2x Plasma'
  62.                     ],
  63.                 'Damage Modifier': [
  64.                     'Unchanged', '0%', '10%', '25%', '50%', '75%', '90%',
  65.                     '100%', '110%', '125%', '150%', '200%', '300%', '500%'
  66.                     ],
  67.                 'Melee Modifier': [
  68.                     'Unchanged', '0%', '10%', '25%', '50%', '75%', '90%',
  69.                     '100%', '110%', '125%', '150%', '200%', '300%', '500%'
  70.                     ],
  71.                 'Infinite Ammo': [
  72.                     'Unchanged', 'Disabled', 'Enabled', 'Bottomless Clip'
  73.                     ],
  74.                 'Weapon Pickup': [
  75.                     'Unchanged', 'Enabled', 'Disabled'
  76.                     ]
  77.                 },
  78.             'Motion Tracker Mode': [
  79.                 'Unchanged', 'Off', 'Allies Only', 'Normal Mode',
  80.                 'Enhanced Mode'
  81.                 ],
  82.             'Motion Tracker Range': [
  83.                 'Unchanged', '10 Meters', '25 Meters', '40 Meters',
  84.                 '75 Meters', '150 Meters'
  85.                 ],
  86.             'Movement': {
  87.                 'Player Speed': [
  88.                     'Unchanged', '0%', '25%', '50%', '75%', '90%', '100%',
  89.                     '110%', '120%', '130%', '150%', '170%', '180%', '200%',
  90.                     '300%'
  91.                     ],
  92.                 'Jump Height': [
  93.                     'Unchanged', '0%', '25%', '50%', '75%', '90%', '100%',
  94.                     '110%', '125%', '150%', '175%', '200%', '300%'
  95.                     ],
  96.                 'Player Gravity': [
  97.                     'Unchanged', '50%', '75%', '100%', '125%', '150%', '200%'
  98.                     ],
  99.                 'Fall Damage': [
  100.                     'Unchanged', '0%', '10%', '25%', '50%', '75%', '90%',
  101.                     '100%', '110%', '125%', '150%', '200%', '300%', '500%'
  102.                     ],
  103.                 'Vehicle Use': [
  104.                     'Unchanged', 'None', 'Passenger Only', 'Driver Only',
  105.                     'Gunner Only', 'No Passenger', 'No Driver', 'No Gunner',
  106.                     'Full Use'
  107.                     ]
  108.                 },
  109.             'Appearance': {
  110.                 'Active Camo': [
  111.                     'Unchanged', 'Off', 'Poor Camo', 'Good Camo'
  112.                     ],
  113.                 'Waypoint': [
  114.                     'Unchanged', 'No Waypoint', 'Visible to Allies',
  115.                     'Visible to Everyone'
  116.                     ],
  117.                 'Visual Effect': [
  118.                     'Unchanged', 'Overshield', 'Speed Boost', 'Damage Boost',
  119.                     'Flood', 'Juggernaut Settings'
  120.                     ],
  121.                 'Primary Color': [
  122.                     'Unchanged', 'Red', 'Orange', 'Gold', 'Dark Green',
  123.                     'Light Green', 'Dark Blue', 'Light Blue', 'Purple',
  124.                     'Pink', 'Black', 'Grey', 'White', 'Brown', 'Sand',
  125.                     'Dark Red', 'Infection'
  126.                     ],
  127.                 'Secondary Color': [
  128.                     'Unchanged', 'Red', 'Orange', 'Gold', 'Dark Green',
  129.                     'Light Green', 'Dark Blue', 'Light Blue', 'Purple',
  130.                     'Pink', 'Black', 'Grey', 'White', 'Brown', 'Sand',
  131.                     'Dark Red', 'Infection'
  132.                     ]
  133.                 }
  134.             }
  135.  
  136. def pickRandomOption(values):
  137.     from random import randrange
  138.     items = []
  139.     items.extend(values)
  140.     return items.pop(randrange(len(items)))
  141.  
  142. print '\nShields and Health', '\n\t', 'Damage Resistance:',\
  143.     pickRandomOption(traits['Shields and Health']['Damage Resistance']),\
  144.     '\n\t', 'Shield Multiplier:',\
  145.     pickRandomOption(traits['Shields and Health']['Shield Multiplier']),\
  146.     '\n\t', 'Shield Recharge Rate:',\
  147.     pickRandomOption(traits['Shields and Health']['Shield Recharge Rate']),\
  148.     '\n\t', 'Shield Recharge Wait:',\
  149.     pickRandomOption(traits['Shields and Health']['Shield Recharge Wait']),\
  150.     '\n\t', 'Headshot Immunity:',\
  151.     pickRandomOption(traits['Shields and Health']['Headshot Immunity']),\
  152.     '\n\t', 'Assassination Immunity:',\
  153.     pickRandomOption(traits['Shields and Health']['Assassination Immunity']),\
  154.     '\n\nWeapons and Damage', '\n\t', 'Primary Weapon:',\
  155.     pickRandomOption(traits['Weapons and Damage']['Primary Weapon']), '\n\t',\
  156.     'Secondary Weapon:',\
  157.     pickRandomOption(traits['Weapons and Damage']['Secondary Weapon']),\
  158.     '\n\t', 'Grenade Count:',\
  159.     pickRandomOption(traits['Weapons and Damage']['Grenade Count']), '\n\t',\
  160.     'Damage Modifier:',\
  161.     pickRandomOption(traits['Weapons and Damage']['Damage Modifier']), '\n\t',\
  162.     'Melee Modifier:',\
  163.     pickRandomOption(traits['Weapons and Damage']['Melee Modifier']), '\n\t',\
  164.     'Infinite Ammo:',\
  165.     pickRandomOption(traits['Weapons and Damage']['Infinite Ammo']), '\n\t',\
  166.     'Weapon Pickup:',\
  167.     pickRandomOption(traits['Weapons and Damage']['Weapon Pickup']),\
  168.     '\n\nMotion Tracker Mode:',\
  169.     pickRandomOption(traits['Motion Tracker Mode']),\
  170.     '\nMotion Tracker Range:',\
  171.     pickRandomOption(traits['Motion Tracker Range']),\
  172.     '\n\nMovement', '\n\t', 'Player Speed:',\
  173.     pickRandomOption(traits['Movement']['Player Speed']), '\n\t',\
  174.     'Jump Height:', pickRandomOption(traits['Movement']['Jump Height']),\
  175.     '\n\t', 'Player Gravity:',\
  176.     pickRandomOption(traits['Movement']['Player Gravity']), '\n\t',\
  177.     'Fall Damage:', pickRandomOption(traits['Movement']['Fall Damage']),\
  178.     '\n\t', 'Vehicle Use:',\
  179.     pickRandomOption(traits['Movement']['Vehicle Use']), '\n\nAppearance',\
  180.     '\n\t', 'Active Camo:',\
  181.     pickRandomOption(traits['Appearance']['Active Camo']), '\n\t',\
  182.     'Waypoint:', pickRandomOption(traits['Appearance']['Waypoint']), '\n\t',\
  183.     'Visual Effect:', pickRandomOption(traits['Appearance']['Visual Effect']),\
  184.     '\n\t', 'Primary Color:',\
  185.     pickRandomOption(traits['Appearance']['Primary Color']), '\n\t',\
  186.     'Secondary Color:',\
  187.     pickRandomOption(traits['Appearance']['Secondary Color'])\
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement