Fun stuff with Perl today. Well, the past few days as I've been working on this.
With a config file like this:
And a command line like this:
I get output like this:
Still lots to do, like skills and such. Code is in the perl_tools repo.
With a config file like this:
Code:
#Ship name:hull size:jump:maneuver:cargo:max passengers:drive tonnage:weapons
Miss Rosa:400:2:3:200:4:50:Trip_Beam, Trip_Pulse, Trip_Pulse, Trip_Miss
BN-4594:400:1:6:20:0:40:Trip_Beam, Trip_Beam, Trip_Pulse, Trip_Miss
Slaver's Folly:600:2:3:200:0:50:Trip_Beam, Trip_Beam, Trip_Pulse, Trip_Pulse, Trip_Miss, Doub_Miss_Sing_Sand
And a command line like this:
Code:
bin/crewgen.pl --config=data/ships.csv --name=Rosa
I get output like this:
Code:
Miss Rosa
=========
Pilot Madelaine Bradshaw [F] 766876
Navigator Kim Tellier [M] 5A5379
Engineer Claudio Bond [M] A57678
Engineer Lura Glover [F] 76989B
Medic Louann Melton [F] 26C7A9
Gunner Lorine Serre [F] 5AA6A3
Gunner Joaquin Moen [M] A68A97
Gunner Gino Jakobsen [M] 55982A
Gunner Karyn Jansson [F] 975785
Steward Luis Monin [M] 459B64
Still lots to do, like skills and such. Code is in the perl_tools repo.