RyanCrierie -> RE: ARTPACK -- A WITP:AE Plane Art Repacker (6/19/2018 11:22:11 PM)
|
From tonight's research into programming: [image]local://upfiles/18450/B894D74D27C243B4870204F4A446190A.gif[/image] Admiral Blandy is pretty....meh, to be honest. [:D], but he's at least aggressive. the code to generate this was: #Stock WITP-AE has following distribution for ranks for USN: #Admiral = 6 (Rank 31) #ViceAdmiral = 8 (Rank 30) #Rear Admiral = 186 (Rank 29) while UnitNumber <= 6: #Make six US Admirals. GeneralOfficer(out_file,UnitNumber,31,4,1) #Output File, Unit Number, Rank, Nationality, CommandType UnitNumber = UnitNumber+1 while UnitNumber <= 15: #Make 15 US Vice Admirals. GeneralOfficer(out_file,UnitNumber,30,4,1) #Output File, Unit Number, Rank, Nationality, CommandType UnitNumber = UnitNumber+1 while UnitNumber <= 172: #Make 170~ US Rear Admirals. GeneralOfficer(out_file,UnitNumber,29,4,1) #Output File, Unit Number, Rank, Nationality, CommandType UnitNumber = UnitNumber+1 ... def GeneralOfficer(OutputFile,UnitNumber,Rank,Nationality,Command): PoliticalPoints = 0 #Start off here for the loop. while PoliticalPoints <= 50: Name = ('"' + MakeUSName1920() + '"') Rank = str(Rank) # RAND Morale = str(randomSD(0,99,45,50)) #Lower Bound, Upper Bound, Mean, Sigma Deviation Skill = str(randomSD(0,99,45,50)) #Lower Bound, Upper Bound, Mean, Sigma Deviation SurfaceAction = str(randomSD(0,99,45,50)) #Lower Bound, Upper Bound, Mean, Sigma Deviation AirAction = str(randomSD(0,99,45,50)) #Lower Bound, Upper Bound, Mean, Sigma Deviation LandAction = str(randomSD(0,99,45,50)) #Lower Bound, Upper Bound, Mean, Sigma Deviation Administration = str(randomSD(0,99,45,50)) #Lower Bound, Upper Bound, Mean, Sigma Deviation Agressiveness = str(randomSD(0,99,45,50)) #Lower Bound, Upper Bound, Mean, Sigma Deviation Nationality = str(Nationality) Delay = str(0) # RAND PoliticalPoints = random.randrange(50,110,5) CommandsType = str(Command) OutputFile.writelines I've got a list of 1,000 first names from c.1920 for the US plus 1,236 US last names; so I can make convincing names somewhat reasonably. [:D]
|
|
|
|