----------------------------------------------------------------------------
----------------------------------------------------------------------------
--Limits player build and research based on class or era
----------------------------------------------------------------------------
----------------------------------------------------------------------------
function buildlimitRule()
	local playerIndex = 0
	local playerCount = Universe_PlayerCount()
	while (playerIndex < playerCount) do
		local temp_race = Player_GetRace(playerIndex) 
		if (Player_IsAlive(playerIndex) == 1) then
				
if (era == "NOBUILD") then
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex, "BEN_A9_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "BEN_ACCLAMATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ACCLAMATOR_II_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ACTION_IV")
Player_RestrictBuildOption(playerIndex, "BEN_ACTIS")
Player_RestrictBuildOption(playerIndex, "BEN_AETHERSPRITE")
Player_RestrictBuildOption(playerIndex, "BEN_AGRAVE_PICKET")
Player_RestrictBuildOption(playerIndex, "BEN_ARC_170")
Player_RestrictBuildOption(playerIndex, "BEN_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "BEN_ASSAULT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_ASSAULT_FRIGATE2")
Player_RestrictBuildOption(playerIndex, "BEN_ASSAULT_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "BEN_BARADIUM_MINE")
Player_RestrictBuildOption(playerIndex, "BEN_BAYONET_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_BOARDING_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "BEN_BUILD_BUOY")
Player_RestrictBuildOption(playerIndex, "BEN_BULK_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_BULWARK2_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_CARRACK_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_CC7700_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CC9600_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CLOAK_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_CLOAK_PROBE")
Player_RestrictBuildOption(playerIndex, "BEN_CLOAKNAV_BUOY")
Player_RestrictBuildOption(playerIndex, "BEN_CLOAKSHAPE")
Player_RestrictBuildOption(playerIndex, "BEN_CLUTCH")
Player_RestrictBuildOption(playerIndex, "BEN_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_CORVETTE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_HAMMERHEAD")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_HEAVY_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_HEAVY_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_LIGHT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_LT_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_OLD_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_PATROL_SHIP")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_RUNNER")
Player_RestrictBuildOption(playerIndex, "BEN_CR20_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "BEN_CRUISERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "BEN_DAUNTLESS_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_DEFENSE_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_DESTROYERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "BEN_DIAMOND_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "BEN_ECM_PROBE")
Player_RestrictBuildOption(playerIndex, "BEN_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ENFORCER_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ESCORT_CARRIER")
Player_RestrictBuildOption(playerIndex, "BEN_ESCORT_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "BEN_ESCORT_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "BEN_FIGHTERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "BEN_GALOFREE_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "BEN_GINIVEX")
Player_RestrictBuildOption(playerIndex, "BEN_GOLAN_I_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_GOLAN_II_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_GRAV_WELL_MINE")
Player_RestrictBuildOption(playerIndex, "BEN_GUARDIAN_LIGHT_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_GUN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_GUN_TURRET")
Player_RestrictBuildOption(playerIndex, "BEN_HARDCELL")
Player_RestrictBuildOption(playerIndex, "BEN_HEAVY_CORVETTE")
Player_RestrictBuildOption(playerIndex, "BEN_HEAVY_LAUNCHER")
Player_RestrictBuildOption(playerIndex, "BEN_HYPERSPACE_DETECTOR")
Player_RestrictBuildOption(playerIndex, "BEN_I7_HOWLRUNNER")
Player_RestrictBuildOption(playerIndex, "BEN_INVINCIBLE_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "BEN_ION_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_LAMBDA_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "BEN_LEVIATHAN_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_LIBERATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_LONG_PROBE_Y_WING")
Player_RestrictBuildOption(playerIndex, "BEN_LORONAR_STRIKE_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "BEN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "BEN_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "BEN_MARAUDER_CORVETTE")
Player_RestrictBuildOption(playerIndex, "BEN_MINING_SHIP")
Player_RestrictBuildOption(playerIndex, "BEN_MISSILE_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_MODULAR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_MOLE_MINER")
Player_RestrictBuildOption(playerIndex, "BEN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_NANTEX")
Player_RestrictBuildOption(playerIndex, "BEN_NAV_BUOY")
Player_RestrictBuildOption(playerIndex, "BEN_NEBULON_B_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_NIMBUS")
Player_RestrictBuildOption(playerIndex, "BEN_PERIMETER_DEFENSE")
Player_RestrictBuildOption(playerIndex, "BEN_PINNANCE")
Player_RestrictBuildOption(playerIndex, "BEN_PREYBIRD")
Player_RestrictBuildOption(playerIndex, "BEN_PROCURATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_PROXIMITY_SENSOR")
Player_RestrictBuildOption(playerIndex, "BEN_QUASAR_FIRE")
Player_RestrictBuildOption(playerIndex, "BEN_R41")
Player_RestrictBuildOption(playerIndex, "BEN_RAVEN")
Player_RestrictBuildOption(playerIndex, "BEN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_REPAIR_DROID")
Player_RestrictBuildOption(playerIndex, "BEN_SKIPRAY_BLASTBOAT")
Player_RestrictBuildOption(playerIndex, "BEN_SYSTEM_PATROL_CRAFT")
Player_RestrictBuildOption(playerIndex, "BEN_T_WING")
Player_RestrictBuildOption(playerIndex, "BEN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_TECHNOUNION_FIGHTER")
Player_RestrictBuildOption(playerIndex, "BEN_THRANTA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_TIEWING")
Player_RestrictBuildOption(playerIndex, "BEN_TRAFEDII")
Player_RestrictBuildOption(playerIndex, "BEN_TRI_DROID")
Player_RestrictBuildOption(playerIndex, "BEN_V19_TORRENT")
Player_RestrictBuildOption(playerIndex, "BEN_VAINGLORIOUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_I_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VULTURE_DROID")
Player_RestrictBuildOption(playerIndex, "BEN_X_WING")
Player_RestrictBuildOption(playerIndex, "BEN_XQ_1_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_XTIE")
Player_RestrictBuildOption(playerIndex, "BEN_Y_WING")
Player_RestrictBuildOption(playerIndex, "BEN_YTIE")
Player_RestrictBuildOption(playerIndex, "BEN_Z95")
elseif(temp_race==1) then
Player_RestrictBuildOption(playerIndex, "HGN_A_WING")
Player_RestrictBuildOption(playerIndex, "HGN_ACTION_IV")
Player_RestrictBuildOption(playerIndex, "HGN_AGRAVE_PICKET")
Player_RestrictBuildOption(playerIndex, "HGN_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_FRIGATE2")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "HGN_B_WING")
Player_RestrictBuildOption(playerIndex, "HGN_BALRUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_BOARDING_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "HGN_BUILD_BUOY")
Player_RestrictBuildOption(playerIndex, "HGN_BULK_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_BULWARK2_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_CC7700_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CC9600_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CLOAK_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_CLOAK_PROBE")
Player_RestrictBuildOption(playerIndex, "HGN_CLOAKNAV_BUOY")
Player_RestrictBuildOption(playerIndex, "HGN_CLOAKSHAPE")
Player_RestrictBuildOption(playerIndex, "HGN_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_CORVETTE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_HEAVY_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_HEAVY_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_LIGHT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_LT_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_PATROL_SHIP")
Player_RestrictBuildOption(playerIndex, "HGN_CORONA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CRUISERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "HGN_DAUNTLESS_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_DEFENDER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_DEFENSE_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_DESTROYERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "HGN_DIAMOND_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "HGN_E_WING")
Player_RestrictBuildOption(playerIndex, "HGN_ECM_PROBE")
Player_RestrictBuildOption(playerIndex, "HGN_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_ENDURANCE_CARRIER")
Player_RestrictBuildOption(playerIndex, "HGN_ESCORT_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "HGN_ESCORT_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "HGN_EWOK")
Player_RestrictBuildOption(playerIndex, "HGN_FERRET")
Player_RestrictBuildOption(playerIndex, "HGN_FIGHTERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "HGN_GALOFREE_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "HGN_GINIVEX")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_I_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_II_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_GRAV_WELL_MINE")
Player_RestrictBuildOption(playerIndex, "HGN_GUN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_GUN_TURRET")
Player_RestrictBuildOption(playerIndex, "HGN_HAAJ_FLEET_TENDER")
Player_RestrictBuildOption(playerIndex, "HGN_HAPAN_BATTLE_DRAGON")
Player_RestrictBuildOption(playerIndex, "HGN_HARDCELL")
Player_RestrictBuildOption(playerIndex, "HGN_HEAVY_CORVETTE")
Player_RestrictBuildOption(playerIndex, "HGN_HEAVY_LAUNCHER")
Player_RestrictBuildOption(playerIndex, "HGN_HOME_ONE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_HYPERSPACE_DETECTOR")
Player_RestrictBuildOption(playerIndex, "HGN_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_ION_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_K_WING")
Player_RestrictBuildOption(playerIndex, "HGN_KDY_REPUBLIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LAMBDA_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "HGN_LIBERATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LONG_PROBE_Y_WING")
Player_RestrictBuildOption(playerIndex, "HGN_LORONAR_STRIKE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "HGN_MAJESTIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MARAUDER_CORVETTE")
Player_RestrictBuildOption(playerIndex, "HGN_MC40_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC40B_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC60_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80A_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B2_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80C_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MC90_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MEDIATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MINING_SHIP")
Player_RestrictBuildOption(playerIndex, "HGN_MISSILE_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_MODULAR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MOLE_MINER")
Player_RestrictBuildOption(playerIndex, "HGN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_NANTEX")
Player_RestrictBuildOption(playerIndex, "HGN_NAV_BUOY")
Player_RestrictBuildOption(playerIndex, "HGN_NEBULA_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_NEBULON_B_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_PERIMETER_DEFENSE")
Player_RestrictBuildOption(playerIndex, "HGN_PINNANCE")
Player_RestrictBuildOption(playerIndex, "HGN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_PROXIMITY_SENSOR")
Player_RestrictBuildOption(playerIndex, "HGN_QUASAR_FIRE")
Player_RestrictBuildOption(playerIndex, "HGN_R41")
Player_RestrictBuildOption(playerIndex, "HGN_RANGER_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_REPAIR_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_REPUBLIC_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_SACHEEN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_SKIPRAY_BLASTBOAT")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT2")
Player_RestrictBuildOption(playerIndex, "HGN_T_WING")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_FIGHTER")
Player_RestrictBuildOption(playerIndex, "HGN_TRAFEDII")
Player_RestrictBuildOption(playerIndex, "HGN_TRI_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_VULTURE_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_WARRIOR_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_X_WING")
Player_RestrictBuildOption(playerIndex, "HGN_XJ_WING")
Player_RestrictBuildOption(playerIndex, "HGN_XQ_1_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_Y_WING")
Player_RestrictBuildOption(playerIndex, "HGN_Z95")
Player_RestrictBuildOption(playerIndex, "KATANA_DREADNAUGHT")
elseif(temp_race==3) then
Player_RestrictBuildOption(playerIndex, "KPR_BB_ANALOGUE")
Player_RestrictBuildOption(playerIndex, "KPR_BLAST_BOULDER")
Player_RestrictBuildOption(playerIndex, "KPR_BUILD_BUOY")
Player_RestrictBuildOption(playerIndex, "KPR_DOVIN_BASIL")
Player_RestrictBuildOption(playerIndex, "KPR_GRUTCHEN")
Player_RestrictBuildOption(playerIndex, "KPR_GUNSHIP_ANALOGUE")
Player_RestrictBuildOption(playerIndex, "KPR_HEAVY_FRIGATE_ANALOGUE")
Player_RestrictBuildOption(playerIndex, "KPR_MATALOK")
Player_RestrictBuildOption(playerIndex, "KPR_MIID_KAS")
Player_RestrictBuildOption(playerIndex, "KPR_MIID_ROIK")
Player_RestrictBuildOption(playerIndex, "KPR_NURSERY")
Player_RestrictBuildOption(playerIndex, "KPR_SPAWNSHIP")
Player_RestrictBuildOption(playerIndex, "KPR_YORIK_ET")
elseif(temp_race==2) then
Player_RestrictBuildOption(playerIndex, "VGR_A9_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_ACCLAMATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ACCLAMATOR_II_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ACTIS")
Player_RestrictBuildOption(playerIndex, "VGR_AETHERSPRITE")
Player_RestrictBuildOption(playerIndex, "VGR_ALLEGIANCE_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_ARC_170")
Player_RestrictBuildOption(playerIndex, "VGR_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "VGR_ASSASSIN_CORVETTE")
Player_RestrictBuildOption(playerIndex, "VGR_ASSAULT_GUNBOAT")
Player_RestrictBuildOption(playerIndex, "VGR_ASSAULT_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "VGR_ASSAULT_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_BAYONET_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_BROADSIDE")
Player_RestrictBuildOption(playerIndex, "VGR_BUILD_BUOY")
Player_RestrictBuildOption(playerIndex, "VGR_CARRACK_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_CLAWCRAFT")
Player_RestrictBuildOption(playerIndex, "VGR_CLOAK_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_CLOAK_PROBE")
Player_RestrictBuildOption(playerIndex, "VGR_CLOAKNAV_BUOY")
Player_RestrictBuildOption(playerIndex, "VGR_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_CORVETTE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_HEAVY_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_HEAVY_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_LIGHT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_LT_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_PATROL_SHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CORONA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CR20_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_CRUISERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "VGR_DEFENSE_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_DEMOLISHER_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_DESTROYERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "VGR_DOMINATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_DSI")
Player_RestrictBuildOption(playerIndex, "VGR_DSII")
Player_RestrictBuildOption(playerIndex, "VGR_ECM_PROBE")
Player_RestrictBuildOption(playerIndex, "VGR_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ENFORCER_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ESCORT_CARRIER")
Player_RestrictBuildOption(playerIndex, "VGR_ESCORT_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "VGR_ESCORT_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_EXECUTOR_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_FACTORY_SHIP")
Player_RestrictBuildOption(playerIndex, "VGR_FIGHTERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "VGR_FREIGHTER")
Player_RestrictBuildOption(playerIndex, "VGR_GALLEON")
Player_RestrictBuildOption(playerIndex, "VGR_GOLAN_I_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_GOLAN_II_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_GRAV_WELL_MINE")
Player_RestrictBuildOption(playerIndex, "VGR_GUARDIAN_LIGHT_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_GUN_TURRET")
Player_RestrictBuildOption(playerIndex, "VGR_HARROW_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_HEAVY_CORVETTE")
Player_RestrictBuildOption(playerIndex, "VGR_HEAVY_LAUNCHER")
Player_RestrictBuildOption(playerIndex, "VGR_HYPERSPACE_DETECTOR")
Player_RestrictBuildOption(playerIndex, "VGR_I7_HOWLRUNNER")
Player_RestrictBuildOption(playerIndex, "VGR_IMMOBILIZER_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_II_DESTROYER_TEST")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPLACABLE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_INVINCIBLE_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_ION_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_LAMBDA_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "VGR_LANCER_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_LORONAR_STRIKE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_MINING_SHIP")
Player_RestrictBuildOption(playerIndex, "VGR_MISSILE_BOAT")
Player_RestrictBuildOption(playerIndex, "VGR_MISSILE_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_MODULAR_TASKFORCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_MOLE_MINER")
Player_RestrictBuildOption(playerIndex, "VGR_NAV_BUOY")
Player_RestrictBuildOption(playerIndex, "VGR_NEBULON_B_2_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_NEBULON_B_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_NIMBUS")
Player_RestrictBuildOption(playerIndex, "VGR_OMICRON_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_PERIMETER_DEFENSE")
Player_RestrictBuildOption(playerIndex, "VGR_PRAETOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_PREYBIRD")
Player_RestrictBuildOption(playerIndex, "VGR_PROBE")
Player_RestrictBuildOption(playerIndex, "VGR_PROCURATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_PROXIMITY_SENSOR")
Player_RestrictBuildOption(playerIndex, "VGR_REPAIR_DROID")
Player_RestrictBuildOption(playerIndex, "VGR_SKIPRAY_BLASTBOAT")
Player_RestrictBuildOption(playerIndex, "VGR_SOVEREIGN_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_SYSTEM_PATROL_CRAFT")
Player_RestrictBuildOption(playerIndex, "VGR_TARTAN")
Player_RestrictBuildOption(playerIndex, "VGR_THRANTA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_AVENGER")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_BOMBER")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_DEFENDER")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_DROID")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_FIGHTER")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_PHANTOM")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_RAPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_SCIMITAR")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_SENTINAL")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_VANGUARD")
Player_RestrictBuildOption(playerIndex, "VGR_TITAN_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_TORPEDO_SPHERE")
Player_RestrictBuildOption(playerIndex, "VGR_TYRANT_MISSILE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_V19_TORRENT")
Player_RestrictBuildOption(playerIndex, "VGR_VAINGLORIOUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VENGENCE_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_I_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WATCHKEEPER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WORLD_DEVASTATOR")
Player_RestrictBuildOption(playerIndex, "VGR_XQ_1_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_Z95")
end
elseif (era == "LIMITED") then
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex, "BEN_A9_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "BEN_ACCLAMATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ACCLAMATOR_II_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ACTIS")
Player_RestrictBuildOption(playerIndex, "BEN_AETHERSPRITE")
Player_RestrictBuildOption(playerIndex, "BEN_AGRAVE_PICKET")
Player_RestrictBuildOption(playerIndex, "BEN_ARC_170")
Player_RestrictBuildOption(playerIndex, "BEN_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "BEN_ASSAULT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_BARADIUM_MINE")
Player_RestrictBuildOption(playerIndex, "BEN_BAYONET_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_BOARDING_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "BEN_BULK_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_BULWARK2_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_CARRACK_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_CC9600_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CLOAK_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_CLOAK_PROBE")
Player_RestrictBuildOption(playerIndex, "BEN_CLUTCH")
Player_RestrictBuildOption(playerIndex, "BEN_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_CORVETTE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_HAMMERHEAD")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_RUNNER")
Player_RestrictBuildOption(playerIndex, "BEN_CR20_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "BEN_DAUNTLESS_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_DEFENSE_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_DIAMOND_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ENFORCER_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ESCORT_CARRIER")
Player_RestrictBuildOption(playerIndex, "BEN_ESCORT_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "BEN_ESCORT_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "BEN_GINIVEX")
Player_RestrictBuildOption(playerIndex, "BEN_GOLAN_I_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_GOLAN_II_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_GRAV_WELL_MINE")
Player_RestrictBuildOption(playerIndex, "BEN_GUARDIAN_LIGHT_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_GUN_TURRET")
Player_RestrictBuildOption(playerIndex, "BEN_HARDCELL")
Player_RestrictBuildOption(playerIndex, "BEN_HEAVY_CORVETTE")
Player_RestrictBuildOption(playerIndex, "BEN_HEAVY_LAUNCHER")
Player_RestrictBuildOption(playerIndex, "BEN_HYPERSPACE_DETECTOR")
Player_RestrictBuildOption(playerIndex, "BEN_I7_HOWLRUNNER")
Player_RestrictBuildOption(playerIndex, "BEN_ION_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_LAMBDA_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "BEN_LEVIATHAN_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_LIBERATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "BEN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "BEN_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "BEN_MISSILE_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_MODULAR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_NANTEX")
Player_RestrictBuildOption(playerIndex, "BEN_NAV_BUOY")
Player_RestrictBuildOption(playerIndex, "BEN_NIMBUS")
Player_RestrictBuildOption(playerIndex, "BEN_PERIMETER_DEFENSE")
Player_RestrictBuildOption(playerIndex, "BEN_PINNANCE")
Player_RestrictBuildOption(playerIndex, "BEN_PREYBIRD")
Player_RestrictBuildOption(playerIndex, "BEN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_PROXIMITY_SENSOR")
Player_RestrictBuildOption(playerIndex, "BEN_QUASAR_FIRE")
Player_RestrictBuildOption(playerIndex, "BEN_R41")
Player_RestrictBuildOption(playerIndex, "BEN_RAVEN")
Player_RestrictBuildOption(playerIndex, "BEN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_SYSTEM_PATROL_CRAFT")
Player_RestrictBuildOption(playerIndex, "BEN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_TECHNOUNION_FIGHTER")
Player_RestrictBuildOption(playerIndex, "BEN_TRAFEDII")
Player_RestrictBuildOption(playerIndex, "BEN_TRI_DROID")
Player_RestrictBuildOption(playerIndex, "BEN_V19_TORRENT")
Player_RestrictBuildOption(playerIndex, "BEN_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_I_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VULTURE_DROID")
Player_RestrictBuildOption(playerIndex, "BEN_X_WING")
Player_RestrictBuildOption(playerIndex, "BEN_XQ_1_PLATFORM")
elseif(temp_race==1) then
Player_RestrictBuildOption(playerIndex, "HGN_AGRAVE_PICKET")
Player_RestrictBuildOption(playerIndex, "HGN_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_FRIGATE2")
Player_RestrictBuildOption(playerIndex, "HGN_BALRUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_BOARDING_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "HGN_BULWARK2_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_CLOAK_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_CLOAK_PROBE")
Player_RestrictBuildOption(playerIndex, "HGN_CLOAKSHAPE")
Player_RestrictBuildOption(playerIndex, "HGN_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_HEAVY_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_HEAVY_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_LIGHT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_LT_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_PATROL_SHIP")
Player_RestrictBuildOption(playerIndex, "HGN_CORONA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_DAUNTLESS_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_DEFENDER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_DEFENSE_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_DIAMOND_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "HGN_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_ENDURANCE_CARRIER")
Player_RestrictBuildOption(playerIndex, "HGN_ESCORT_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "HGN_EWOK")
Player_RestrictBuildOption(playerIndex, "HGN_FERRET")
Player_RestrictBuildOption(playerIndex, "HGN_GINIVEX")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_I_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_II_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_GRAV_WELL_MINE")
Player_RestrictBuildOption(playerIndex, "HGN_GUN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_GUN_TURRET")
Player_RestrictBuildOption(playerIndex, "HGN_HAAJ_FLEET_TENDER")
Player_RestrictBuildOption(playerIndex, "HGN_HAPAN_BATTLE_DRAGON")
Player_RestrictBuildOption(playerIndex, "HGN_HARDCELL")
Player_RestrictBuildOption(playerIndex, "HGN_HEAVY_CORVETTE")
Player_RestrictBuildOption(playerIndex, "HGN_HEAVY_LAUNCHER")
Player_RestrictBuildOption(playerIndex, "HGN_HYPERSPACE_DETECTOR")
Player_RestrictBuildOption(playerIndex, "HGN_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_ION_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_K_WING")
Player_RestrictBuildOption(playerIndex, "HGN_KDY_REPUBLIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LAMBDA_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "HGN_LORONAR_STRIKE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "HGN_MAJESTIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MC40_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC60_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80A_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80C_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MEDIATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MISSILE_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_MODULAR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_NANTEX")
Player_RestrictBuildOption(playerIndex, "HGN_NEBULA_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_PERIMETER_DEFENSE")
Player_RestrictBuildOption(playerIndex, "HGN_PINNANCE")
Player_RestrictBuildOption(playerIndex, "HGN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_PROXIMITY_SENSOR")
Player_RestrictBuildOption(playerIndex, "HGN_QUASAR_FIRE")
Player_RestrictBuildOption(playerIndex, "HGN_R41")
Player_RestrictBuildOption(playerIndex, "HGN_RANGER_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_REPUBLIC_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_SACHEEN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT2")
Player_RestrictBuildOption(playerIndex, "HGN_T_WING")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_FIGHTER")
Player_RestrictBuildOption(playerIndex, "HGN_TRAFEDII")
Player_RestrictBuildOption(playerIndex, "HGN_TRI_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_VULTURE_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_WARRIOR_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_XJ_WING")
Player_RestrictBuildOption(playerIndex, "HGN_XQ_1_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_Z95")
Player_RestrictBuildOption(playerIndex, "KATANA_DREADNAUGHT")
elseif(temp_race==3) then
Player_RestrictBuildOption(playerIndex, "KPR_BLAST_BOULDER")
Player_RestrictBuildOption(playerIndex, "KPR_DOVIN_BASIL")
Player_RestrictBuildOption(playerIndex, "KPR_HEAVY_FRIGATE_ANALOGUE")
elseif(temp_race==2) then
Player_RestrictBuildOption(playerIndex, "VGR_A9_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_ACCLAMATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ACTIS")
Player_RestrictBuildOption(playerIndex, "VGR_AETHERSPRITE")
Player_RestrictBuildOption(playerIndex, "VGR_ALLEGIANCE_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_ARC_170")
Player_RestrictBuildOption(playerIndex, "VGR_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "VGR_ASSASSIN_CORVETTE")
Player_RestrictBuildOption(playerIndex, "VGR_ASSAULT_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_BAYONET_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_BROADSIDE")
Player_RestrictBuildOption(playerIndex, "VGR_CLAWCRAFT")
Player_RestrictBuildOption(playerIndex, "VGR_CLOAK_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_CLOAK_PROBE")
Player_RestrictBuildOption(playerIndex, "VGR_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_CORVETTE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_HEAVY_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_HEAVY_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_LIGHT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_LT_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORONA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CR20_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_DEFENSE_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_DEMOLISHER_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_DOMINATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_DSI")
Player_RestrictBuildOption(playerIndex, "VGR_DSII")
Player_RestrictBuildOption(playerIndex, "VGR_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ESCORT_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_FACTORY_SHIP")
Player_RestrictBuildOption(playerIndex, "VGR_FREIGHTER")
Player_RestrictBuildOption(playerIndex, "VGR_GALLEON")
Player_RestrictBuildOption(playerIndex, "VGR_GOLAN_I_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_GOLAN_II_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_GRAV_WELL_MINE")
Player_RestrictBuildOption(playerIndex, "VGR_GUARDIAN_LIGHT_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_GUN_TURRET")
Player_RestrictBuildOption(playerIndex, "VGR_HARROW_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_HEAVY_LAUNCHER")
Player_RestrictBuildOption(playerIndex, "VGR_HYPERSPACE_DETECTOR")
Player_RestrictBuildOption(playerIndex, "VGR_I7_HOWLRUNNER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_II_DESTROYER_TEST")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPLACABLE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_INVINCIBLE_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_ION_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_MISSILE_BOAT")
Player_RestrictBuildOption(playerIndex, "VGR_MISSILE_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_MODULAR_TASKFORCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_NEBULON_B_2_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_NEBULON_B_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_NIMBUS")
Player_RestrictBuildOption(playerIndex, "VGR_PERIMETER_DEFENSE")
Player_RestrictBuildOption(playerIndex, "VGR_PRAETOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_PREYBIRD")
Player_RestrictBuildOption(playerIndex, "VGR_PROCURATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_PROXIMITY_SENSOR")
Player_RestrictBuildOption(playerIndex, "VGR_SOVEREIGN_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_TARTAN")
Player_RestrictBuildOption(playerIndex, "VGR_THRANTA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_AVENGER")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_DROID")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_PHANTOM")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_RAPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_SCIMITAR")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_SENTINAL")
Player_RestrictBuildOption(playerIndex, "VGR_TITAN_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_TORPEDO_SPHERE")
Player_RestrictBuildOption(playerIndex, "VGR_TYRANT_MISSILE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_V19_TORRENT")
Player_RestrictBuildOption(playerIndex, "VGR_VAINGLORIOUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VENGENCE_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WATCHKEEPER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WORLD_DEVASTATOR")
Player_RestrictBuildOption(playerIndex, "VGR_Z95")
end
elseif (era == "OLDREPUBLIC") then
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex, "BEN_A9_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "BEN_ACCLAMATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ACCLAMATOR_II_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ACTIS")
Player_RestrictBuildOption(playerIndex, "BEN_AETHERSPRITE")
Player_RestrictBuildOption(playerIndex, "BEN_AGRAVE_PICKET")
Player_RestrictBuildOption(playerIndex, "BEN_ARC_170")
Player_RestrictBuildOption(playerIndex, "BEN_ASSAULT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_ASSAULT_FRIGATE2")
Player_RestrictBuildOption(playerIndex, "BEN_ASSAULT_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "BEN_BARADIUM_MINE")
Player_RestrictBuildOption(playerIndex, "BEN_BAYONET_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_BOARDING_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "BEN_BULWARK2_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_CARRACK_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_CC7700_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CC9600_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CLOAKSHAPE")
Player_RestrictBuildOption(playerIndex, "BEN_CLUTCH")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_LIGHT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_LT_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_PATROL_SHIP")
Player_RestrictBuildOption(playerIndex, "BEN_CR20_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "BEN_DAUNTLESS_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_DIAMOND_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ENFORCER_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ESCORT_CARRIER")
Player_RestrictBuildOption(playerIndex, "BEN_ESCORT_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "BEN_ESCORT_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "BEN_GINIVEX")
Player_RestrictBuildOption(playerIndex, "BEN_GOLAN_I_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_GOLAN_II_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_GUARDIAN_LIGHT_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_HARDCELL")
Player_RestrictBuildOption(playerIndex, "BEN_HEAVY_CORVETTE")
Player_RestrictBuildOption(playerIndex, "BEN_I7_HOWLRUNNER")
Player_RestrictBuildOption(playerIndex, "BEN_LAMBDA_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "BEN_LIBERATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_LONG_PROBE_Y_WING")
Player_RestrictBuildOption(playerIndex, "BEN_LORONAR_STRIKE_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "BEN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "BEN_MARAUDER_CORVETTE")
Player_RestrictBuildOption(playerIndex, "BEN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_NANTEX")
Player_RestrictBuildOption(playerIndex, "BEN_NEBULON_B_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_NIMBUS")
Player_RestrictBuildOption(playerIndex, "BEN_PINNANCE")
Player_RestrictBuildOption(playerIndex, "BEN_PREYBIRD")
Player_RestrictBuildOption(playerIndex, "BEN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_QUASAR_FIRE")
Player_RestrictBuildOption(playerIndex, "BEN_R41")
Player_RestrictBuildOption(playerIndex, "BEN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_SKIPRAY_BLASTBOAT")
Player_RestrictBuildOption(playerIndex, "BEN_SYSTEM_PATROL_CRAFT")
Player_RestrictBuildOption(playerIndex, "BEN_T_WING")
Player_RestrictBuildOption(playerIndex, "BEN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_TECHNOUNION_FIGHTER")
Player_RestrictBuildOption(playerIndex, "BEN_TIEWING")
Player_RestrictBuildOption(playerIndex, "BEN_TRAFEDII")
Player_RestrictBuildOption(playerIndex, "BEN_TRI_DROID")
Player_RestrictBuildOption(playerIndex, "BEN_V19_TORRENT")
Player_RestrictBuildOption(playerIndex, "BEN_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_I_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VULTURE_DROID")
Player_RestrictBuildOption(playerIndex, "BEN_X_WING")
Player_RestrictBuildOption(playerIndex, "BEN_XTIE")
Player_RestrictBuildOption(playerIndex, "BEN_Y_WING")
Player_RestrictBuildOption(playerIndex, "BEN_YTIE")
Player_RestrictBuildOption(playerIndex, "BEN_Z95")
elseif(temp_race==1) then
Player_RestrictBuildOption(playerIndex, "HGN_A_WING")
Player_RestrictBuildOption(playerIndex, "HGN_AGRAVE_PICKET")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_FRIGATE2")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "HGN_B_WING")
Player_RestrictBuildOption(playerIndex, "HGN_BALRUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_BOARDING_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "HGN_BULWARK2_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_CC7700_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CC9600_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_LIGHT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_LT_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_PATROL_SHIP")
Player_RestrictBuildOption(playerIndex, "HGN_CORONA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_DAUNTLESS_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_DEFENDER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_DIAMOND_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_E_WING")
Player_RestrictBuildOption(playerIndex, "HGN_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_ENDURANCE_CARRIER")
Player_RestrictBuildOption(playerIndex, "HGN_ESCORT_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "HGN_ESCORT_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "HGN_EWOK")
Player_RestrictBuildOption(playerIndex, "HGN_GINIVEX")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_I_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_II_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_HAAJ_FLEET_TENDER")
Player_RestrictBuildOption(playerIndex, "HGN_HAPAN_BATTLE_DRAGON")
Player_RestrictBuildOption(playerIndex, "HGN_HARDCELL")
Player_RestrictBuildOption(playerIndex, "HGN_HEAVY_CORVETTE")
Player_RestrictBuildOption(playerIndex, "HGN_HOME_ONE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_K_WING")
Player_RestrictBuildOption(playerIndex, "HGN_KDY_REPUBLIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LAMBDA_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "HGN_LIBERATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LONG_PROBE_Y_WING")
Player_RestrictBuildOption(playerIndex, "HGN_LORONAR_STRIKE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "HGN_MAJESTIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MARAUDER_CORVETTE")
Player_RestrictBuildOption(playerIndex, "HGN_MC40_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC40B_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC60_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80A_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B2_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80C_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MC90_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MEDIATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_NANTEX")
Player_RestrictBuildOption(playerIndex, "HGN_NEBULA_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_NEBULON_B_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_PINNANCE")
Player_RestrictBuildOption(playerIndex, "HGN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_QUASAR_FIRE")
Player_RestrictBuildOption(playerIndex, "HGN_R41")
Player_RestrictBuildOption(playerIndex, "HGN_RANGER_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_REPUBLIC_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_SACHEEN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_SKIPRAY_BLASTBOAT")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT2")
Player_RestrictBuildOption(playerIndex, "HGN_T_WING")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_FIGHTER")
Player_RestrictBuildOption(playerIndex, "HGN_TRAFEDII")
Player_RestrictBuildOption(playerIndex, "HGN_TRI_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_VULTURE_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_WARRIOR_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_X_WING")
Player_RestrictBuildOption(playerIndex, "HGN_XJ_WING")
Player_RestrictBuildOption(playerIndex, "HGN_Y_WING")
Player_RestrictBuildOption(playerIndex, "HGN_Z95")
Player_RestrictBuildOption(playerIndex, "KATANA_DREADNAUGHT")
elseif(temp_race==3) then
elseif(temp_race==2) then
Player_RestrictBuildOption(playerIndex, "VGR_A9_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_ACTIS")
Player_RestrictBuildOption(playerIndex, "VGR_AETHERSPRITE")
Player_RestrictBuildOption(playerIndex, "VGR_ALLEGIANCE_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_ARC_170")
Player_RestrictBuildOption(playerIndex, "VGR_ASSASSIN_CORVETTE")
Player_RestrictBuildOption(playerIndex, "VGR_ASSAULT_GUNBOAT")
Player_RestrictBuildOption(playerIndex, "VGR_ASSAULT_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "VGR_ASSAULT_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_BAYONET_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_BROADSIDE")
Player_RestrictBuildOption(playerIndex, "VGR_CARRACK_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_CLAWCRAFT")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_LIGHT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_LT_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_PATROL_SHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CORONA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CR20_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_DEMOLISHER_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_DOMINATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_DSI")
Player_RestrictBuildOption(playerIndex, "VGR_DSII")
Player_RestrictBuildOption(playerIndex, "VGR_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ENFORCER_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ESCORT_CARRIER")
Player_RestrictBuildOption(playerIndex, "VGR_ESCORT_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "VGR_ESCORT_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_EXECUTOR_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_FREIGHTER")
Player_RestrictBuildOption(playerIndex, "VGR_GALLEON")
Player_RestrictBuildOption(playerIndex, "VGR_GOLAN_I_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_GOLAN_II_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_GUARDIAN_LIGHT_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_HARROW_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_HEAVY_CORVETTE")
Player_RestrictBuildOption(playerIndex, "VGR_I7_HOWLRUNNER")
Player_RestrictBuildOption(playerIndex, "VGR_IMMOBILIZER_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_II_DESTROYER_TEST")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPLACABLE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_LAMBDA_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "VGR_LANCER_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_LORONAR_STRIKE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_MISSILE_BOAT")
Player_RestrictBuildOption(playerIndex, "VGR_MODULAR_TASKFORCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_NEBULON_B_2_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_NEBULON_B_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_NIMBUS")
Player_RestrictBuildOption(playerIndex, "VGR_OMICRON_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_PRAETOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_PREYBIRD")
Player_RestrictBuildOption(playerIndex, "VGR_SKIPRAY_BLASTBOAT")
Player_RestrictBuildOption(playerIndex, "VGR_SOVEREIGN_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_SYSTEM_PATROL_CRAFT")
Player_RestrictBuildOption(playerIndex, "VGR_TARTAN")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_AVENGER")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_BOMBER")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_DEFENDER")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_DROID")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_FIGHTER")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_PHANTOM")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_RAPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_SCIMITAR")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_SENTINAL")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_VANGUARD")
Player_RestrictBuildOption(playerIndex, "VGR_TITAN_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_TORPEDO_SPHERE")
Player_RestrictBuildOption(playerIndex, "VGR_TYRANT_MISSILE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_V19_TORRENT")
Player_RestrictBuildOption(playerIndex, "VGR_VENGENCE_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_I_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WATCHKEEPER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WORLD_DEVASTATOR")
Player_RestrictBuildOption(playerIndex, "VGR_Z95")
end
elseif (era == "CLONEWARS") then
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex, "BEN_A9_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "BEN_ACCLAMATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ACCLAMATOR_II_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ACTIS")
Player_RestrictBuildOption(playerIndex, "BEN_AETHERSPRITE")
Player_RestrictBuildOption(playerIndex, "BEN_AGRAVE_PICKET")
Player_RestrictBuildOption(playerIndex, "BEN_ARC_170")
Player_RestrictBuildOption(playerIndex, "BEN_ASSAULT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_ASSAULT_FRIGATE2")
Player_RestrictBuildOption(playerIndex, "BEN_BARADIUM_MINE")
Player_RestrictBuildOption(playerIndex, "BEN_BAYONET_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_BOARDING_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "BEN_CARRACK_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_CC7700_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CC9600_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CLUTCH")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_LIGHT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CR20_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "BEN_DAUNTLESS_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_DIAMOND_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ENFORCER_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ESCORT_CARRIER")
Player_RestrictBuildOption(playerIndex, "BEN_ESCORT_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "BEN_GINIVEX")
Player_RestrictBuildOption(playerIndex, "BEN_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_GUARDIAN_LIGHT_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_HARDCELL")
Player_RestrictBuildOption(playerIndex, "BEN_HEAVY_CORVETTE")
Player_RestrictBuildOption(playerIndex, "BEN_I7_HOWLRUNNER")
Player_RestrictBuildOption(playerIndex, "BEN_LAMBDA_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "BEN_LIBERATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_LORONAR_STRIKE_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "BEN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "BEN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_NANTEX")
Player_RestrictBuildOption(playerIndex, "BEN_NEBULON_B_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_NIMBUS")
Player_RestrictBuildOption(playerIndex, "BEN_PINNANCE")
Player_RestrictBuildOption(playerIndex, "BEN_PREYBIRD")
Player_RestrictBuildOption(playerIndex, "BEN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_QUASAR_FIRE")
Player_RestrictBuildOption(playerIndex, "BEN_R41")
Player_RestrictBuildOption(playerIndex, "BEN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_T_WING")
Player_RestrictBuildOption(playerIndex, "BEN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_TECHNOUNION_FIGHTER")
Player_RestrictBuildOption(playerIndex, "BEN_TIEWING")
Player_RestrictBuildOption(playerIndex, "BEN_TRAFEDII")
Player_RestrictBuildOption(playerIndex, "BEN_TRI_DROID")
Player_RestrictBuildOption(playerIndex, "BEN_V19_TORRENT")
Player_RestrictBuildOption(playerIndex, "BEN_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_I_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VULTURE_DROID")
Player_RestrictBuildOption(playerIndex, "BEN_X_WING")
Player_RestrictBuildOption(playerIndex, "BEN_XTIE")
Player_RestrictBuildOption(playerIndex, "BEN_YTIE")
Player_RestrictBuildOption(playerIndex, "BEN_Z95")
elseif(temp_race==1) then
Player_RestrictBuildOption(playerIndex, "HGN_A_WING")
Player_RestrictBuildOption(playerIndex, "HGN_AGRAVE_PICKET")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_FRIGATE2")
Player_RestrictBuildOption(playerIndex, "HGN_B_WING")
Player_RestrictBuildOption(playerIndex, "HGN_BALRUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_CC7700_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CC9600_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORONA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_DAUNTLESS_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_DEFENDER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_E_WING")
Player_RestrictBuildOption(playerIndex, "HGN_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_ENDURANCE_CARRIER")
Player_RestrictBuildOption(playerIndex, "HGN_ESCORT_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "HGN_EWOK")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_HAAJ_FLEET_TENDER")
Player_RestrictBuildOption(playerIndex, "HGN_HAPAN_BATTLE_DRAGON")
Player_RestrictBuildOption(playerIndex, "HGN_HEAVY_CORVETTE")
Player_RestrictBuildOption(playerIndex, "HGN_HOME_ONE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_K_WING")
Player_RestrictBuildOption(playerIndex, "HGN_KDY_REPUBLIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LAMBDA_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "HGN_LIBERATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LORONAR_STRIKE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MAJESTIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MC40_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC40B_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC60_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80A_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B2_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80C_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MC90_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MEDIATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_NEBULA_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_NEBULON_B_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_QUASAR_FIRE")
Player_RestrictBuildOption(playerIndex, "HGN_R41")
Player_RestrictBuildOption(playerIndex, "HGN_RANGER_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_REPUBLIC_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_SACHEEN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT2")
Player_RestrictBuildOption(playerIndex, "HGN_T_WING")
Player_RestrictBuildOption(playerIndex, "HGN_WARRIOR_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_X_WING")
Player_RestrictBuildOption(playerIndex, "HGN_XJ_WING")
Player_RestrictBuildOption(playerIndex, "HGN_Z95")
Player_RestrictBuildOption(playerIndex, "KATANA_DREADNAUGHT")
elseif(temp_race==3) then
elseif(temp_race==2) then
Player_RestrictBuildOption(playerIndex, "VGR_A9_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_ALLEGIANCE_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_ASSASSIN_CORVETTE")
Player_RestrictBuildOption(playerIndex, "VGR_ASSAULT_GUNBOAT")
Player_RestrictBuildOption(playerIndex, "VGR_ASSAULT_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "VGR_BROADSIDE")
Player_RestrictBuildOption(playerIndex, "VGR_CLAWCRAFT")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORONA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_DEMOLISHER_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_DOMINATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_DSI")
Player_RestrictBuildOption(playerIndex, "VGR_DSII")
Player_RestrictBuildOption(playerIndex, "VGR_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ESCORT_CARRIER")
Player_RestrictBuildOption(playerIndex, "VGR_ESCORT_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "VGR_EXECUTOR_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_FREIGHTER")
Player_RestrictBuildOption(playerIndex, "VGR_GALLEON")
Player_RestrictBuildOption(playerIndex, "VGR_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_GUARDIAN_LIGHT_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_HARROW_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_HEAVY_CORVETTE")
Player_RestrictBuildOption(playerIndex, "VGR_I7_HOWLRUNNER")
Player_RestrictBuildOption(playerIndex, "VGR_IMMOBILIZER_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_II_DESTROYER_TEST")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPLACABLE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_LAMBDA_SHUTTLE")
Player_RestrictBuildOption(playerIndex, "VGR_LANCER_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_LORONAR_STRIKE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_MODULAR_TASKFORCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_MISSILE_BOAT")
Player_RestrictBuildOption(playerIndex, "VGR_NEBULON_B_2_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_OMICRON_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_PREYBIRD")
Player_RestrictBuildOption(playerIndex, "VGR_SOVEREIGN_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_TARTAN")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_AVENGER")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_BOMBER")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_DEFENDER")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_DROID")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_FIGHTER")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_PHANTOM")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_RAPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_SCIMITAR")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_SENTINAL")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_VANGUARD")
Player_RestrictBuildOption(playerIndex, "VGR_TITAN_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_TORPEDO_SPHERE")
Player_RestrictBuildOption(playerIndex, "VGR_TYRANT_MISSILE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_VENGENCE_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WATCHKEEPER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WORLD_DEVASTATOR")
end
elseif (era == "ANH") then
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex, "BEN_A9_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "BEN_AGRAVE_PICKET")
Player_RestrictBuildOption(playerIndex, "BEN_BARADIUM_MINE")
Player_RestrictBuildOption(playerIndex, "BEN_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ESCORT_CARRIER")
Player_RestrictBuildOption(playerIndex, "BEN_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_HEAVY_CORVETTE")
Player_RestrictBuildOption(playerIndex, "BEN_I7_HOWLRUNNER")
Player_RestrictBuildOption(playerIndex, "BEN_PREYBIRD")
Player_RestrictBuildOption(playerIndex, "BEN_TIEWING")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_III_DESTROYER")
elseif(temp_race==1) then
Player_RestrictBuildOption(playerIndex, "HGN_A_WING")
Player_RestrictBuildOption(playerIndex, "HGN_AGRAVE_PICKET")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_B_WING")
Player_RestrictBuildOption(playerIndex, "HGN_BALRUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_BOARDING_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "HGN_CC7700_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CC9600_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORONA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_DEFENDER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_DIAMOND_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_E_WING")
Player_RestrictBuildOption(playerIndex, "HGN_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_ENDURANCE_CARRIER")
Player_RestrictBuildOption(playerIndex, "HGN_EWOK")
Player_RestrictBuildOption(playerIndex, "HGN_GINIVEX")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_HAAJ_FLEET_TENDER")
Player_RestrictBuildOption(playerIndex, "HGN_HAPAN_BATTLE_DRAGON")
Player_RestrictBuildOption(playerIndex, "HGN_HARDCELL")
Player_RestrictBuildOption(playerIndex, "HGN_HEAVY_CORVETTE")
Player_RestrictBuildOption(playerIndex, "HGN_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_K_WING")
Player_RestrictBuildOption(playerIndex, "HGN_KDY_REPUBLIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LIBERATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LONG_PROBE_Y_WING")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "HGN_MAJESTIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MC40B_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC60_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80A_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B2_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80C_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MC90_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MEDIATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_NANTEX")
Player_RestrictBuildOption(playerIndex, "HGN_NEBULA_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_PINNANCE")
Player_RestrictBuildOption(playerIndex, "HGN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_RANGER_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_REPUBLIC_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_SACHEEN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT2")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_FIGHTER")
Player_RestrictBuildOption(playerIndex, "HGN_TRAFEDII")
Player_RestrictBuildOption(playerIndex, "HGN_TRI_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_VULTURE_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_WARRIOR_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_XJ_WING")
Player_RestrictBuildOption(playerIndex, "KATANA_DREADNAUGHT")
elseif(temp_race==3) then
elseif(temp_race==2) then
Player_RestrictBuildOption(playerIndex, "VGR_A9_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_ACTIS")
Player_RestrictBuildOption(playerIndex, "VGR_AETHERSPRITE")
Player_RestrictBuildOption(playerIndex, "VGR_ALLEGIANCE_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_ARC_170")
Player_RestrictBuildOption(playerIndex, "VGR_ASSASSIN_CORVETTE")
Player_RestrictBuildOption(playerIndex, "VGR_ASSAULT_GUNBOAT")
Player_RestrictBuildOption(playerIndex, "VGR_CLAWCRAFT")
Player_RestrictBuildOption(playerIndex, "VGR_CORONA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CR20_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_DOMINATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_DSI")
Player_RestrictBuildOption(playerIndex, "VGR_DSII")
Player_RestrictBuildOption(playerIndex, "VGR_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ESCORT_CARRIER")
Player_RestrictBuildOption(playerIndex, "VGR_EXECUTOR_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_FREIGHTER")
Player_RestrictBuildOption(playerIndex, "VGR_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_HARROW_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_HEAVY_CORVETTE")
Player_RestrictBuildOption(playerIndex, "VGR_I7_HOWLRUNNER")
Player_RestrictBuildOption(playerIndex, "VGR_IMMOBILIZER_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_II_DESTROYER_TEST")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPLACABLE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_INVINCIBLE_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_LANCER_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_MODULAR_TASKFORCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_MISSILE_BOAT")
Player_RestrictBuildOption(playerIndex, "VGR_NEBULON_B_2_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_NIMBUS")
Player_RestrictBuildOption(playerIndex, "VGR_PREYBIRD")
Player_RestrictBuildOption(playerIndex, "VGR_PROCURATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_SOVEREIGN_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_THRANTA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_AVENGER")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_DEFENDER")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_DROID")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_PHANTOM")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_RAPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_SCIMITAR")
Player_RestrictBuildOption(playerIndex, "VGR_TYRANT_MISSILE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_V19_TORRENT")
Player_RestrictBuildOption(playerIndex, "VGR_VAINGLORIOUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VENGENCE_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WATCHKEEPER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WORLD_DEVASTATOR")
Player_RestrictBuildOption(playerIndex, "VGR_Z95")
end
elseif (era == "HOTH") then
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex, "BEN_A9_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "BEN_AGRAVE_PICKET")
Player_RestrictBuildOption(playerIndex, "BEN_BARADIUM_MINE")
Player_RestrictBuildOption(playerIndex, "BEN_I7_HOWLRUNNER")
Player_RestrictBuildOption(playerIndex, "BEN_PREYBIRD")
Player_RestrictBuildOption(playerIndex, "BEN_TIEWING")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_III_DESTROYER")
elseif(temp_race==1) then
Player_RestrictBuildOption(playerIndex, "HGN_AGRAVE_PICKET")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_B_WING")
Player_RestrictBuildOption(playerIndex, "HGN_BALRUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_BOARDING_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "HGN_CORONA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_DEFENDER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_DIAMOND_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_E_WING")
Player_RestrictBuildOption(playerIndex, "HGN_ENDURANCE_CARRIER")
Player_RestrictBuildOption(playerIndex, "HGN_EWOK")
Player_RestrictBuildOption(playerIndex, "HGN_GINIVEX")
Player_RestrictBuildOption(playerIndex, "HGN_HAAJ_FLEET_TENDER")
Player_RestrictBuildOption(playerIndex, "HGN_HAPAN_BATTLE_DRAGON")
Player_RestrictBuildOption(playerIndex, "HGN_HARDCELL")
Player_RestrictBuildOption(playerIndex, "HGN_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_K_WING")
Player_RestrictBuildOption(playerIndex, "HGN_KDY_REPUBLIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LONG_PROBE_Y_WING")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "HGN_MAJESTIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MC40B_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC60_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80A_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B2_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80C_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MC90_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MEDIATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_NANTEX")
Player_RestrictBuildOption(playerIndex, "HGN_NEBULA_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_PINNANCE")
Player_RestrictBuildOption(playerIndex, "HGN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_RANGER_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_REPUBLIC_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_SACHEEN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT2")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_FIGHTER")
Player_RestrictBuildOption(playerIndex, "HGN_TRAFEDII")
Player_RestrictBuildOption(playerIndex, "HGN_TRI_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_VULTURE_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_WARRIOR_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_XJ_WING")
Player_RestrictBuildOption(playerIndex, "KATANA_DREADNAUGHT")
elseif(temp_race==3) then
elseif(temp_race==2) then
Player_RestrictBuildOption(playerIndex, "VGR_A9_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_ACCLAMATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ACTIS")
Player_RestrictBuildOption(playerIndex, "VGR_AETHERSPRITE")
Player_RestrictBuildOption(playerIndex, "VGR_ALLEGIANCE_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_ARC_170")
Player_RestrictBuildOption(playerIndex, "VGR_CLAWCRAFT")
Player_RestrictBuildOption(playerIndex, "VGR_CORONA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CR20_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_DOMINATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_DSI")
Player_RestrictBuildOption(playerIndex, "VGR_DSII")
Player_RestrictBuildOption(playerIndex, "VGR_FREIGHTER")
Player_RestrictBuildOption(playerIndex, "VGR_HARROW_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_I7_HOWLRUNNER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPLACABLE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_INVINCIBLE_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_MODULAR_TASKFORCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_NIMBUS")
Player_RestrictBuildOption(playerIndex, "VGR_PREYBIRD")
Player_RestrictBuildOption(playerIndex, "VGR_PROCURATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_SOVEREIGN_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_THRANTA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_DEFENDER")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_DROID")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_RAPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_SCIMITAR")
Player_RestrictBuildOption(playerIndex, "VGR_TYRANT_MISSILE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_V19_TORRENT")
Player_RestrictBuildOption(playerIndex, "VGR_VAINGLORIOUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VENGENCE_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WATCHKEEPER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WORLD_DEVASTATOR")
Player_RestrictBuildOption(playerIndex, "VGR_Z95")
end
elseif (era == "ROTJ") then
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex, "BEN_A9_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "BEN_AGRAVE_PICKET")
Player_RestrictBuildOption(playerIndex, "BEN_BARADIUM_MINE")
Player_RestrictBuildOption(playerIndex, "BEN_I7_HOWLRUNNER")
Player_RestrictBuildOption(playerIndex, "BEN_PREYBIRD")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_III_DESTROYER")
elseif(temp_race==1) then
Player_RestrictBuildOption(playerIndex, "HGN_AGRAVE_PICKET")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_BALRUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_BOARDING_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "HGN_CORONA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_DEFENDER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_DIAMOND_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_E_WING")
Player_RestrictBuildOption(playerIndex, "HGN_ENDURANCE_CARRIER")
Player_RestrictBuildOption(playerIndex, "HGN_EWOK")
Player_RestrictBuildOption(playerIndex, "HGN_GINIVEX")
Player_RestrictBuildOption(playerIndex, "HGN_HAAJ_FLEET_TENDER")
Player_RestrictBuildOption(playerIndex, "HGN_HAPAN_BATTLE_DRAGON")
Player_RestrictBuildOption(playerIndex, "HGN_HARDCELL")
Player_RestrictBuildOption(playerIndex, "HGN_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_K_WING")
Player_RestrictBuildOption(playerIndex, "HGN_KDY_REPUBLIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LONG_PROBE_Y_WING")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "HGN_MAJESTIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MC60_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80A_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80C_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MC90_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MEDIATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_NANTEX")
Player_RestrictBuildOption(playerIndex, "HGN_NEBULA_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_PINNANCE")
Player_RestrictBuildOption(playerIndex, "HGN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_RANGER_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_REPUBLIC_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_SACHEEN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT2")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_FIGHTER")
Player_RestrictBuildOption(playerIndex, "HGN_TRAFEDII")
Player_RestrictBuildOption(playerIndex, "HGN_TRI_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_VULTURE_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_WARRIOR_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_XJ_WING")
Player_RestrictBuildOption(playerIndex, "KATANA_DREADNAUGHT")
elseif(temp_race==3) then
elseif(temp_race==2) then
Player_RestrictBuildOption(playerIndex, "VGR_A9_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_ACCLAMATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ACTIS")
Player_RestrictBuildOption(playerIndex, "VGR_AETHERSPRITE")
Player_RestrictBuildOption(playerIndex, "VGR_ALLEGIANCE_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_ARC_170")
Player_RestrictBuildOption(playerIndex, "VGR_CLAWCRAFT")
Player_RestrictBuildOption(playerIndex, "VGR_CORONA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CR20_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_DOMINATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_DSI")
Player_RestrictBuildOption(playerIndex, "VGR_DSII")
Player_RestrictBuildOption(playerIndex, "VGR_FREIGHTER")
Player_RestrictBuildOption(playerIndex, "VGR_HARROW_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_I7_HOWLRUNNER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPLACABLE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_INVINCIBLE_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_NIMBUS")
Player_RestrictBuildOption(playerIndex, "VGR_PREYBIRD")
Player_RestrictBuildOption(playerIndex, "VGR_PROCURATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_SOVEREIGN_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_THRANTA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_DROID")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_RAPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_SCIMITAR")
Player_RestrictBuildOption(playerIndex, "VGR_TYRANT_MISSILE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_V19_TORRENT")
Player_RestrictBuildOption(playerIndex, "VGR_VAINGLORIOUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VENGENCE_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WATCHKEEPER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WORLD_DEVASTATOR")
Player_RestrictBuildOption(playerIndex, "VGR_Z95")
end
elseif (era == "PROTJ") then
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex, "BEN_A9_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "BEN_BARADIUM_MINE")
Player_RestrictBuildOption(playerIndex, "BEN_I7_HOWLRUNNER")
Player_RestrictBuildOption(playerIndex, "BEN_PREYBIRD")
elseif(temp_race==1) then
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_BOARDING_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "HGN_DIAMOND_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_E_WING")
Player_RestrictBuildOption(playerIndex, "HGN_EWOK")
Player_RestrictBuildOption(playerIndex, "HGN_GINIVEX")
Player_RestrictBuildOption(playerIndex, "HGN_HAAJ_FLEET_TENDER")
Player_RestrictBuildOption(playerIndex, "HGN_HAPAN_BATTLE_DRAGON")
Player_RestrictBuildOption(playerIndex, "HGN_HARDCELL")
Player_RestrictBuildOption(playerIndex, "HGN_K_WING")
Player_RestrictBuildOption(playerIndex, "HGN_KDY_REPUBLIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LONG_PROBE_Y_WING")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "HGN_MC60_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC90_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MEDIATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_NANTEX")
Player_RestrictBuildOption(playerIndex, "HGN_NEBULA_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_PINNANCE")
Player_RestrictBuildOption(playerIndex, "HGN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_RANGER_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_SACHEEN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT2")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_FIGHTER")
Player_RestrictBuildOption(playerIndex, "HGN_TRAFEDII")
Player_RestrictBuildOption(playerIndex, "HGN_TRI_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_VULTURE_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_WARRIOR_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_XJ_WING")
Player_RestrictBuildOption(playerIndex, "KATANA_DREADNAUGHT")
elseif(temp_race==3) then
elseif(temp_race==2) then
Player_RestrictBuildOption(playerIndex, "VGR_A9_INTERCEPTOR")
Player_RestrictBuildOption(playerIndex, "VGR_ACCLAMATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ACTIS")
Player_RestrictBuildOption(playerIndex, "VGR_AETHERSPRITE")
Player_RestrictBuildOption(playerIndex, "VGR_ALLEGIANCE_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_ARC_170")
Player_RestrictBuildOption(playerIndex, "VGR_CLAWCRAFT")
Player_RestrictBuildOption(playerIndex, "VGR_CR20_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_DSI")
Player_RestrictBuildOption(playerIndex, "VGR_DSII")
Player_RestrictBuildOption(playerIndex, "VGR_FREIGHTER")
Player_RestrictBuildOption(playerIndex, "VGR_HARROW_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_I7_HOWLRUNNER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPLACABLE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_INVINCIBLE_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_MODULAR_TASKFORCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_NIMBUS")
Player_RestrictBuildOption(playerIndex, "VGR_PRAETOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_PREYBIRD")
Player_RestrictBuildOption(playerIndex, "VGR_PROCURATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_SOVEREIGN_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_THRANTA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_TIE_DROID")
Player_RestrictBuildOption(playerIndex, "VGR_TITAN_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_TYRANT_MISSILE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_V19_TORRENT")
Player_RestrictBuildOption(playerIndex, "VGR_VAINGLORIOUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WATCHKEEPER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WORLD_DEVASTATOR")
Player_RestrictBuildOption(playerIndex, "VGR_Z95")
end
elseif (era == "DE") then
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex, "BEN_BARADIUM_MINE")
Player_RestrictBuildOption(playerIndex, "BEN_PREYBIRD")
elseif(temp_race==1) then
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_BOARDING_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_LIGHT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_DIAMOND_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_EWOK")
Player_RestrictBuildOption(playerIndex, "HGN_GINIVEX")
Player_RestrictBuildOption(playerIndex, "HGN_HAPAN_BATTLE_DRAGON")
Player_RestrictBuildOption(playerIndex, "HGN_HARDCELL")
Player_RestrictBuildOption(playerIndex, "HGN_K_WING")
Player_RestrictBuildOption(playerIndex, "HGN_KDY_REPUBLIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LONG_PROBE_Y_WING")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "HGN_MC40_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC60_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MEDIATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MODULAR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_NANTEX")
Player_RestrictBuildOption(playerIndex, "HGN_NEBULA_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_PINNANCE")
Player_RestrictBuildOption(playerIndex, "HGN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_QUASAR_FIRE")
Player_RestrictBuildOption(playerIndex, "HGN_RANGER_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT2")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_FIGHTER")
Player_RestrictBuildOption(playerIndex, "HGN_TRAFEDII")
Player_RestrictBuildOption(playerIndex, "HGN_TRI_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_VULTURE_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_WARRIOR_GUNSHIP")
Player_RestrictBuildOption(playerIndex, "HGN_XJ_WING")
Player_RestrictBuildOption(playerIndex, "KATANA_DREADNAUGHT")
elseif(temp_race==3) then
elseif(temp_race==2) then
Player_RestrictBuildOption(playerIndex, "VGR_ACCLAMATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ACTIS")
Player_RestrictBuildOption(playerIndex, "VGR_AETHERSPRITE")
Player_RestrictBuildOption(playerIndex, "VGR_ARC_170")
Player_RestrictBuildOption(playerIndex, "VGR_BAYONET_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_CLAWCRAFT")
Player_RestrictBuildOption(playerIndex, "VGR_CR20_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_DSI")
Player_RestrictBuildOption(playerIndex, "VGR_DSII")
Player_RestrictBuildOption(playerIndex, "VGR_FREIGHTER")
Player_RestrictBuildOption(playerIndex, "VGR_HARROW_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_INVINCIBLE_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_NEBULON_B_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_NIMBUS")
Player_RestrictBuildOption(playerIndex, "VGR_PRAETOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_PREYBIRD")
Player_RestrictBuildOption(playerIndex, "VGR_PROCURATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_THRANTA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_TITAN_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_V19_TORRENT")
Player_RestrictBuildOption(playerIndex, "VGR_VAINGLORIOUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_I_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WATCHKEEPER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_Z95")
end
elseif (era == "NJO") then
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex, "BEN_BARADIUM_MINE")
elseif(temp_race==1) then
Player_RestrictBuildOption(playerIndex, "HGN_BOARDING_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "HGN_BULK_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_HEAVY_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_LIGHT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_DIAMOND_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "HGN_EWOK")
Player_RestrictBuildOption(playerIndex, "HGN_GINIVEX")
Player_RestrictBuildOption(playerIndex, "HGN_HARDCELL")
Player_RestrictBuildOption(playerIndex, "HGN_HOME_ONE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LONG_PROBE_Y_WING")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "HGN_MC40_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B2_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MODULAR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_NANTEX")
Player_RestrictBuildOption(playerIndex, "HGN_PINNANCE")
Player_RestrictBuildOption(playerIndex, "HGN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_QUASAR_FIRE")
Player_RestrictBuildOption(playerIndex, "HGN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_FIGHTER")
Player_RestrictBuildOption(playerIndex, "HGN_TRAFEDII")
Player_RestrictBuildOption(playerIndex, "HGN_TRI_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_VULTURE_DROID")
Player_RestrictBuildOption(playerIndex, "KATANA_DREADNAUGHT")
elseif(temp_race==3) then
elseif(temp_race==2) then
Player_RestrictBuildOption(playerIndex, "VGR_ACCLAMATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ACTIS")
Player_RestrictBuildOption(playerIndex, "VGR_AETHERSPRITE")
Player_RestrictBuildOption(playerIndex, "VGR_ARC_170")
Player_RestrictBuildOption(playerIndex, "VGR_BAYONET_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_HEAVY_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_LIGHT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CR20_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_DSI")
Player_RestrictBuildOption(playerIndex, "VGR_DSII")
Player_RestrictBuildOption(playerIndex, "VGR_FREIGHTER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_INVINCIBLE_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_NEBULON_B_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_NIMBUS")
Player_RestrictBuildOption(playerIndex, "VGR_PRAETOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_PROCURATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_SOVEREIGN_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_THRANTA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_TITAN_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_TYRANT_MISSILE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_V19_TORRENT")
Player_RestrictBuildOption(playerIndex, "VGR_VAINGLORIOUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_I_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WORLD_DEVASTATOR")
Player_RestrictBuildOption(playerIndex, "VGR_Z95")
end
elseif (era == "FUNLIMITED") then
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex, "BEN_BARADIUM_MINE")
elseif(temp_race==1) then
Player_RestrictBuildOption(playerIndex, "HGN_BOARDING_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "HGN_DIAMOND_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_EWOK")
Player_RestrictBuildOption(playerIndex, "HGN_GINIVEX")
Player_RestrictBuildOption(playerIndex, "HGN_HARDCELL")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "HGN_MC40_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_NANTEX")
Player_RestrictBuildOption(playerIndex, "HGN_PINNANCE")
Player_RestrictBuildOption(playerIndex, "HGN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_FIGHTER")
Player_RestrictBuildOption(playerIndex, "HGN_TRAFEDII")
Player_RestrictBuildOption(playerIndex, "HGN_TRI_DROID")
Player_RestrictBuildOption(playerIndex, "HGN_VULTURE_DROID")
Player_RestrictBuildOption(playerIndex, "KATANA_DREADNAUGHT")
elseif(temp_race==3) then
elseif(temp_race==2) then
Player_RestrictBuildOption(playerIndex, "VGR_ACTIS")
Player_RestrictBuildOption(playerIndex, "VGR_AETHERSPRITE")
Player_RestrictBuildOption(playerIndex, "VGR_ARC_170")
Player_RestrictBuildOption(playerIndex, "VGR_CR20_TRANSPORT")
Player_RestrictBuildOption(playerIndex, "VGR_DSI")
Player_RestrictBuildOption(playerIndex, "VGR_DSII")
Player_RestrictBuildOption(playerIndex, "VGR_FREIGHTER")
Player_RestrictBuildOption(playerIndex, "VGR_NIMBUS")
Player_RestrictBuildOption(playerIndex, "VGR_PROCURATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_THRANTA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_V19_TORRENT")
Player_RestrictBuildOption(playerIndex, "VGR_VAINGLORIOUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_Z95")
end
end
if (tonnage == "UNLIMITED") then
if(temp_race==4) then
elseif(temp_race==1) then
elseif(temp_race==3) then
elseif(temp_race==2) then
end
elseif (tonnage == "SUPERCAP") then
print("OMG WTF SUPER CAP")
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex, "BEN_ARMADA_BATTLESHIP")
elseif(temp_race==1) then
Player_RestrictBuildOption(playerIndex, "HGN_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT2")
elseif(temp_race==3) then
Player_RestrictBuildOption(playerIndex, "KPR_BB_ANALOGUE")
elseif(temp_race==2) then
print("OMG RESTRICT IMPS")
Player_RestrictBuildOption(playerIndex, "VGR_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "VGR_EXECUTOR_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_SOVEREIGN_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_VENGENCE_SSD")
end
elseif (tonnage == "CRUISER") then
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex, "BEN_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "BEN_BULWARK2_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "BEN_CRUISERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "BEN_DAUNTLESS_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "BEN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "BEN_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "BEN_MODULAR_CRUISER")
elseif(temp_race==1) then
Player_RestrictBuildOption(playerIndex, "HGN_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "HGN_BULWARK2_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "HGN_CRUISERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "HGN_DAUNTLESS_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_HOME_ONE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "HGN_MC80C_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MEDIATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MODULAR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT2")
elseif(temp_race==3) then
Player_RestrictBuildOption(playerIndex, "KPR_BB_ANALOGUE")
elseif(temp_race==2) then
Player_RestrictBuildOption(playerIndex, "VGR_ALLEGIANCE_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CRUISERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "VGR_EXECUTOR_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_FACTORY_SHIP")
Player_RestrictBuildOption(playerIndex, "VGR_IMPLACABLE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_PRAETOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_SOVEREIGN_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_TITAN_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_TORPEDO_SPHERE")
Player_RestrictBuildOption(playerIndex, "VGR_TYRANT_MISSILE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_VENGENCE_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_WORLD_DEVASTATOR")
end
elseif (tonnage == "DESTROYER") then
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex, "BEN_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "BEN_BULWARK2_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_OLD_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_CRUISERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "BEN_DAUNTLESS_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_INVINCIBLE_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "BEN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "BEN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "BEN_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "BEN_MODULAR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_PROCURATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VAINGLORIOUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_I_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_III_DESTROYER")
elseif(temp_race==1) then
Player_RestrictBuildOption(playerIndex, "HGN_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_BULWARK2_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "HGN_CRUISERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "HGN_DAUNTLESS_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_DEFENDER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_ENDURANCE_CARRIER")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_HAPAN_BATTLE_DRAGON")
Player_RestrictBuildOption(playerIndex, "HGN_HOME_ONE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_KDY_REPUBLIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "HGN_MC80_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80A_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B2_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80C_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MC90_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MEDIATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MODULAR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_NEBULA_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_REPUBLIC_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT2")
elseif(temp_race==3) then
Player_RestrictBuildOption(playerIndex, "KPR_BB_ANALOGUE")
Player_RestrictBuildOption(playerIndex, "KPR_MATALOK")
Player_RestrictBuildOption(playerIndex, "KPR_MIID_ROIK")
elseif(temp_race==2) then
Player_RestrictBuildOption(playerIndex, "VGR_ALLEGIANCE_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CRUISERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "VGR_DOMINATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_EXECUTOR_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_FACTORY_SHIP")
Player_RestrictBuildOption(playerIndex, "VGR_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_HARROW_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_II_DESTROYER_TEST")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPLACABLE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_INVINCIBLE_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_PRAETOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_PROCURATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_SOVEREIGN_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_TITAN_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_TORPEDO_SPHERE")
Player_RestrictBuildOption(playerIndex, "VGR_TYRANT_MISSILE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_VAINGLORIOUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VENGENCE_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_I_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WATCHKEEPER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WORLD_DEVASTATOR")
end
elseif (tonnage == "HEAVYFRIGATE") then
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex, "BEN_ACCLAMATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ACCLAMATOR_II_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "BEN_ASSAULT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_ASSAULT_FRIGATE2")
Player_RestrictBuildOption(playerIndex, "BEN_BULK_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_BULWARK2_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_HEAVY_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_LIGHT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_OLD_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_CRUISERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "BEN_DAUNTLESS_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "BEN_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ENFORCER_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ESCORT_CARRIER")
Player_RestrictBuildOption(playerIndex, "BEN_GOLAN_II_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_INVINCIBLE_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "BEN_LEVIATHAN_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "BEN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "BEN_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "BEN_MODULAR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_PROCURATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_VAINGLORIOUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_I_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_III_DESTROYER")
elseif(temp_race==1) then
Player_RestrictBuildOption(playerIndex, "HGN_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_FRIGATE2")
Player_RestrictBuildOption(playerIndex, "HGN_BULK_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_BULWARK2_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_HEAVY_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CRUISERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "HGN_DAUNTLESS_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_DEFENDER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "HGN_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_ENDURANCE_CARRIER")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_II_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_HAPAN_BATTLE_DRAGON")
Player_RestrictBuildOption(playerIndex, "HGN_HOME_ONE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_KDY_REPUBLIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "HGN_MAJESTIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MC40_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC40B_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC60_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80A_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B2_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80C_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MC90_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MEDIATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MODULAR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_NEBULA_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_REPUBLIC_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT2")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_CRUISER")
elseif(temp_race==3) then
Player_RestrictBuildOption(playerIndex, "KPR_BB_ANALOGUE")
Player_RestrictBuildOption(playerIndex, "KPR_HEAVY_FRIGATE_ANALOGUE")
Player_RestrictBuildOption(playerIndex, "KPR_MATALOK")
Player_RestrictBuildOption(playerIndex, "KPR_MIID_ROIK")
elseif(temp_race==2) then
Player_RestrictBuildOption(playerIndex, "VGR_ACCLAMATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ACCLAMATOR_II_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ALLEGIANCE_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_HEAVY_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CRUISERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "VGR_DEMOLISHER_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_DOMINATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ENFORCER_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ESCORT_CARRIER")
Player_RestrictBuildOption(playerIndex, "VGR_EXECUTOR_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_FACTORY_SHIP")
Player_RestrictBuildOption(playerIndex, "VGR_GALLEON")
Player_RestrictBuildOption(playerIndex, "VGR_GOLAN_II_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_HARROW_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMMOBILIZER_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_II_DESTROYER_TEST")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPLACABLE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_INVINCIBLE_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_MODULAR_TASKFORCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_PRAETOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_PROCURATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_SOVEREIGN_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_TITAN_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_TORPEDO_SPHERE")
Player_RestrictBuildOption(playerIndex, "VGR_TYRANT_MISSILE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_VAINGLORIOUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VENGENCE_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_I_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WATCHKEEPER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WORLD_DEVASTATOR")
end
elseif (tonnage == "FRIGATE") then
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex, "BEN_ACCLAMATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ACCLAMATOR_II_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "BEN_ASSAULT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_ASSAULT_FRIGATE2")
Player_RestrictBuildOption(playerIndex, "BEN_BAYONET_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_BULK_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_BULWARK2_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_CARRACK_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_CC7700_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CC9600_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_HAMMERHEAD")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_HEAVY_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_LIGHT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_OLD_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_CORELLIAN_RUNNER")
Player_RestrictBuildOption(playerIndex, "BEN_CRUISERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "BEN_DAUNTLESS_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_DESTROYERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "BEN_DIAMOND_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "BEN_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ENFORCER_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_ESCORT_CARRIER")
Player_RestrictBuildOption(playerIndex, "BEN_GOLAN_I_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_GOLAN_II_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "BEN_GUN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_HARDCELL")
Player_RestrictBuildOption(playerIndex, "BEN_INVINCIBLE_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "BEN_LEVIATHAN_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_LIBERATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_LORONAR_STRIKE_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "BEN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "BEN_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "BEN_MODULAR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_NEBULON_B_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_PINNANCE")
Player_RestrictBuildOption(playerIndex, "BEN_PROCURATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_QUASAR_FIRE")
Player_RestrictBuildOption(playerIndex, "BEN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_THRANTA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "BEN_TRAFEDII")
Player_RestrictBuildOption(playerIndex, "BEN_VAINGLORIOUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "BEN_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_I_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "BEN_VICTORY_III_DESTROYER")
elseif(temp_race==1) then
Player_RestrictBuildOption(playerIndex, "HGN_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_ASSAULT_FRIGATE2")
Player_RestrictBuildOption(playerIndex, "HGN_BALRUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_BULK_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_BULWARK2_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_CC7700_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CC9600_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_HEAVY_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_LIGHT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CORONA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_CRUISERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "HGN_DAUNTLESS_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_DEFENDER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_DESTROYERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "HGN_DIAMOND_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "HGN_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_ENDURANCE_CARRIER")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_I_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_II_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "HGN_GUN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_HAAJ_FLEET_TENDER")
Player_RestrictBuildOption(playerIndex, "HGN_HAPAN_BATTLE_DRAGON")
Player_RestrictBuildOption(playerIndex, "HGN_HARDCELL")
Player_RestrictBuildOption(playerIndex, "HGN_HOME_ONE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_KDY_REPUBLIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LIBERATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LORONAR_STRIKE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK")
Player_RestrictBuildOption(playerIndex, "HGN_LUCREHULK_BB")
Player_RestrictBuildOption(playerIndex, "HGN_MAJESTIC_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MC40_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC40B_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC60_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80A_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80B2_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MC80C_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MC90_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_MEDIATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MODULAR_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_MUNIFICENT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_NEBULA_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_NEBULON_B_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_PINNANCE")
Player_RestrictBuildOption(playerIndex, "HGN_PROVIDENCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_QUASAR_FIRE")
Player_RestrictBuildOption(playerIndex, "HGN_RECUSANT_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_REPUBLIC_DESTROYER")
Player_RestrictBuildOption(playerIndex, "HGN_SACHEEN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT")
Player_RestrictBuildOption(playerIndex, "HGN_STRIDENT2")
Player_RestrictBuildOption(playerIndex, "HGN_TECHNOUNION_CRUISER")
Player_RestrictBuildOption(playerIndex, "HGN_TRAFEDII")
elseif(temp_race==3) then
Player_RestrictBuildOption(playerIndex, "KPR_BB_ANALOGUE")
Player_RestrictBuildOption(playerIndex, "KPR_HEAVY_FRIGATE_ANALOGUE")
Player_RestrictBuildOption(playerIndex, "KPR_MATALOK")
Player_RestrictBuildOption(playerIndex, "KPR_MIID_KAS")
Player_RestrictBuildOption(playerIndex, "KPR_MIID_ROIK")
elseif(temp_race==2) then
Player_RestrictBuildOption(playerIndex, "VGR_ACCLAMATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ACCLAMATOR_II_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ALLEGIANCE_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_ARMADA_BATTLESHIP")
Player_RestrictBuildOption(playerIndex, "VGR_BAYONET_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_BROADSIDE")
Player_RestrictBuildOption(playerIndex, "VGR_CARRACK_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_CONSTRUCTION_SHIP")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_HEAVY_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_LIGHT_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORELLIAN_MISSILE_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CORONA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_CRUISERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "VGR_DEMOLISHER_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_DESTROYERSHIPYARD")
Player_RestrictBuildOption(playerIndex, "VGR_DOMINATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_EIDOLON_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ENFORCER_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_ESCORT_CARRIER")
Player_RestrictBuildOption(playerIndex, "VGR_EXECUTOR_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_FACTORY_SHIP")
Player_RestrictBuildOption(playerIndex, "VGR_GALLEON")
Player_RestrictBuildOption(playerIndex, "VGR_GOLAN_I_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_GOLAN_II_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_GOLAN_III_PLATFORM")
Player_RestrictBuildOption(playerIndex, "VGR_HARROW_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMMOBILIZER_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_II_DESTROYER_TEST")
Player_RestrictBuildOption(playerIndex, "VGR_IMPERATOR_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_IMPLACABLE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_INVINCIBLE_DREADNAUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_LANCER_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_LORONAR_STRIKE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_MANDATOR_STAR_DREADNOUGHT")
Player_RestrictBuildOption(playerIndex, "VGR_MODULAR_TASKFORCE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_NEBULON_B_2_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_NEBULON_B_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_PRAETOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_PROCURATOR_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_SOVEREIGN_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_TARTAN")
Player_RestrictBuildOption(playerIndex, "VGR_THRANTA_FRIGATE")
Player_RestrictBuildOption(playerIndex, "VGR_TITAN_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_TORPEDO_SPHERE")
Player_RestrictBuildOption(playerIndex, "VGR_TYRANT_MISSILE_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_VAINGLORIOUS_CRUISER")
Player_RestrictBuildOption(playerIndex, "VGR_VENATOR_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VENGENCE_SSD")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_I_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_II_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_VICTORY_III_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WATCHKEEPER_DESTROYER")
Player_RestrictBuildOption(playerIndex, "VGR_WORLD_DEVASTATOR")
end
end




end
		playerIndex = playerIndex+1
        end

	Rule_Remove("buildlimitRule")
end

function Resourcer_Kill(playerIndex)
local temp_race = Player_GetRace(playerIndex) 
if(temp_race==4) then
Player_RestrictBuildOption(playerIndex,"BEN_MOLE_MINER")
end
if(temp_race==3) then
Player_RestrictBuildOption(playerIndex,"Vgr_GRUTCHIN")
end
if(temp_race==1) then
Player_RestrictBuildOption(playerIndex,"HGN_RESOURCE_COLLECTOR")
end
if(temp_race==2) then
Player_RestrictBuildOption(playerIndex,"VGR_RESOURCE_COLLECTOR")
end
end