-
Notifications
You must be signed in to change notification settings - Fork 2
/
scenario_88_chaos.lua
12225 lines (12200 loc) · 524 KB
/
scenario_88_chaos.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
-- Name: Chaos of War
-- Description: Two, three or four species battle for ultimate dominion. Designed as a replayable player versus player (PVP) scenario for individuals or teams. Terrain is randomly symmetrically generated for every game. Use GM screen to adjust parameters
---
--- Version 1 (debuted 23Jan2021 for online event)
-- Type: Player vs Player with or without teams
-- Variation[Easy]: More resources, services and reputation
-- Variation[Hard]: Fewer resources, services and reputation
--------------------------------------------------------------------------------------------------------
-- Note: This script requires a version of supply_drop.lua that handles the variable jump_freighter --
-- See pull request 1185 --
--------------------------------------------------------------------------------------------------------
require "utils.lua"
function init()
scenario_version = "1.0.1"
print(string.format("Scenario version %s",scenario_version))
print(_VERSION)
setVariations()
setConstants()
setStaticScienceDatabase()
setGMButtons()
end
function setVariations()
local svs = getScenarioVariation() --scenario variation string
if string.find(svs,"Easy") then
difficulty = .5
base_reputation = 50
elseif string.find(svs,"Hard") then
difficulty = 2
base_reputation = 10
else
difficulty = 1 --default (normal)
base_reputation = 20
end
end
function setConstants()
thresh = .2 --leading/trailing completion threshold percentage for game
game_time_limit = 45*60 -- Time limit for game; measured in seconds (example: 45*60 = 45 minutes)
max_game_time = game_time_limit
game_state = "paused" --then moves to "terrain generated" then to "running"
respawn_count = 0
respawn_type = "lindworm"
storage = getScriptStorage()
storage.gatherStats = gatherStats
player_team_count = 2 --default to 2. Can be 2, 3 or 4
ships_per_team = 2 --default to 2. Max varies based on team count
max_ships_per_team = {32,16,10,8} --engine supports 32 player ships
f2s = { --faction name to short name
["Human Navy"] = "human",
["Kraylor"] = "kraylor",
["Exuari"] = "exuari",
["Ktlitans"] = "ktlitan",
}
terrain_generated = false
generate_terrain_message_counter = 0
missile_availability = "unlimited"
defense_platform_count_index = 10
defense_platform_count_options = {
{count = 0, distance = 0, player = 4500},
{count = 3, distance = 2000, player = 2500},
{count = 4, distance = 2400, player = 3000},
{count = 5, distance = 3000, player = 3500},
{count = 6, distance = 4300, player = 2500},
{count = 8, distance = 7000, player = 4000},
{count = 9, distance = 7800, player = 4500},
{count = 10, distance = 9000, player = 4000},
{count = 12, distance = 10000, player = 4500},
{count = "random", distance = 0, player = 0},
}
dp_comms_data = { --defense platform comms data
weapon_available = {
Homing = random(1,13)<=(3-difficulty),
HVLI = random(1,13)<=(6-difficulty),
Mine = false,
Nuke = false,
EMP = false,
},
services = {
supplydrop = "friend",
reinforcements = "friend",
jumpsupplydrop = "friend",
},
service_cost = {
supplydrop = math.random(80,120),
reinforcements = math.random(125,175),
jumpsupplydrop = math.random(110,140),
},
jump_overcharge = false,
probe_launch_repair = random(1,13)<=(3-difficulty),
hack_repair = random(1,13)<=(3-difficulty),
scan_repair = random(1,13)<=(3-difficulty),
combat_maneuver_repair= random(1,13)<=(3-difficulty),
self_destruct_repair = random(1,13)<=(3-difficulty),
tube_slow_down_repair = random(1,13)<=(3-difficulty),
reputation_cost_multipliers = {
friend = 1.0,
neutral = 3.0,
},
goods = {},
trade = {},
}
defense_fleet_list = {
["Small Station"] = {
{DF1 = "MT52 Hornet",DF2 = "MU52 Hornet",DF3 = "MT52 Hornet",DF4 = "MU52 Hornet",},
{DF1 = "MT52 Hornet",DF2 = "MT52 Hornet",DF3 = "MT52 Hornet",DF4 = "MU52 Hornet",},
{DF1 = "MT52 Hornet",DF2 = "MU52 Hornet",DF3 = "MU52 Hornet",DF4 = "Nirvana R5A",},
},
["Medium Station"] = {
{DF1 = "Adder MK5",DF2 = "MU52 Hornet",DF3 = "MT52 Hornet",DF4 = "Adder MK4",DF5 = "Adder MK6",},
{DF1 = "Adder MK5",DF2 = "MU52 Hornet",DF3 = "Nirvana R5A",DF4 = "Adder MK4",DF5 = "Adder MK6",},
{DF1 = "Adder MK5",DF2 = "MU52 Hornet",DF3 = "Nirvana R5A",DF4 = "WX-Lindworm",DF5 = "Adder MK6",},
},
["Large Station"] = {
{DF1 = "Adder MK5",DF2 = "MU52 Hornet",DF3 = "MT52 Hornet",DF4 = "Adder MK4",DF5 = "Adder MK6",DF6 = "Phobos T3",DF7 = "Adder MK7",DF8 = "Adder MK8",},
{DF1 = "Adder MK5",DF2 = "MU52 Hornet",DF3 = "Adder MK9",DF4 = "Adder MK4",DF5 = "Adder MK6",DF6 = "Phobos T3",DF7 = "Adder MK7",DF8 = "Adder MK8",},
{DF1 = "Adder MK5",DF2 = "MU52 Hornet",DF3 = "Nirvana R5A",DF4 = "Adder MK4",DF5 = "Adder MK6",DF6 = "Phobos T3",DF7 = "Adder MK7",DF8 = "Adder MK8",},
},
["Huge Station"] = {
{DF1 = "Adder MK5",DF2 = "MU52 Hornet",DF3 = "MT52 Hornet",DF4 = "Adder MK4",DF5 = "Adder MK6",DF6 = "Phobos T3",DF7 = "Adder MK7",DF8 = "Adder MK8",DF9 = "Fiend G4",DF10 = "Stalker R7",DF11 = "Stalker Q7"},
{DF1 = "Adder MK5",DF2 = "MU52 Hornet",DF3 = "Nirvana R5A",DF4 = "Adder MK4",DF5 = "Adder MK6",DF6 = "Phobos T3",DF7 = "Adder MK7",DF8 = "Adder MK8",DF9 = "Fiend G4",DF10 = "Stalker R7",DF11 = "Stalker Q7"},
{DF1 = "Adder MK5",DF2 = "MU52 Hornet",DF3 = "Phobos T3",DF4 = "Adder MK4",DF5 = "Adder MK6",DF6 = "Phobos T3",DF7 = "Adder MK7",DF8 = "Adder MK8",DF9 = "Fiend G4",DF10 = "Stalker R7",DF11 = "Stalker Q7"},
},
}
station_list = {}
station_sensor_range = 20000
primary_station_size_index = 1
primary_station_size_options = {"random","Small Station","Medium Station","Large Station","Huge Station"}
primary_jammers = "random"
player_ship_types = "default"
custom_player_ship_type = "Heavy"
default_player_ship_sets = {
{"Crucible"},
{"Maverick","Flavia P.Falcon"},
{"Atlantis","Phobos M3P","Crucible"},
{"Atlantis","Maverick","Phobos M3P","Flavia P.Falcon"},
{"Atlantis","Player Cruiser","Maverick","Crucible","Phobos M3P"},
{"Atlantis","Hathcock","Flavia P.Falcon","Player Missile Cr.","Maverick","Phobos M3P"},
{"Atlantis","Repulse","Maverick","Player Missile Cr.","Phobos M3P","Flavia P.Falcon","Crucible"},
{"Atlantis","Player Cruiser","Hathcock","Player Fighter","Phobos M3P","Maverick","Crucible","Flavia P.Falcon"},
{"Atlantis","Player Cruiser","Repulse","Player Missile Cr.","Player Fighter","Phobos M3P","Crucible","Flavia P.Falcon","Maverick"},
{"Atlantis","Player Cruiser","Piranha","Player Missile Cr.","Player Fighter","Phobos M3P","Crucible","Flavia P.Falcon","Maverick","Phobos M3P"},
{"Atlantis","Player Cruiser","Hathcock","Repulse","Player Fighter","Player Missile Cr.","Crucible","Flavia P.Falcon","Maverick","Phobos M3P","Flavia P.Falcon"},
{"Atlantis","Player Cruiser","Piranha","Repulse","Player Fighter","Player Missile Cr.","Crucible","Flavia P.Falcon","Maverick","Phobos M3P","Flavia P.Falcon","Phobos M3P"},
{"Atlantis","Player Cruiser","Piranha","Hathcock","Player Fighter","Player Missile Cr.","Crucible","Flavia P.Falcon","Maverick","Phobos M3P","Flavia P.Falcon","Phobos M3P","Crucible"},
{"Atlantis","Player Cruiser","Hathcock","Repulse","Piranha","Player Missile Cr.","Crucible","Flavia P.Falcon","Maverick","Phobos M3P","Flavia P.Falcon","Phobos M3P","Crucible","Player Fighter"},
{"Atlantis","Player Cruiser","Hathcock","Repulse","Nautilus","Player Missile Cr.","Crucible","Flavia P.Falcon","Maverick","Phobos M3P","Flavia P.Falcon","Phobos M3P","Crucible","Player Fighter","MP52 Hornet"},
{"Atlantis","Player Cruiser","Nautilus","Repulse","Piranha","Player Missile Cr.","Crucible","Flavia P.Falcon","Maverick","Phobos M3P","Flavia P.Falcon","Phobos M3P","Crucible","Player Fighter","MP52 Hornet","Maverick"},
}
custom_player_ship_sets = {
["Jump"] = {
{"Atlantis"},
{"Atlantis","Player Cruiser"},
{"Atlantis","Player Cruiser","Hathcock"},
{"Atlantis","Player Cruiser","Hathcock","Repulse"},
{"Atlantis","Player Cruiser","Hathcock","Repulse","Piranha"},
{"Atlantis","Player Cruiser","Hathcock","Repulse","Piranha","Nautilus"},
{"Atlantis","Player Cruiser","Hathcock","Repulse","Piranha","Nautilus","Repulse"},
{"Atlantis","Player Cruiser","Hathcock","Repulse","Piranha","Nautilus","Repulse","Player Cruiser"},
{"Atlantis","Player Cruiser","Hathcock","Repulse","Piranha","Nautilus","Repulse","Player Cruiser","Piranha"},
{"Atlantis","Player Cruiser","Hathcock","Repulse","Piranha","Nautilus","Repulse","Player Cruiser","Piranha","Atlantis"},
{"Atlantis","Player Cruiser","Hathcock","Repulse","Piranha","Nautilus","Repulse","Player Cruiser","Piranha","Atlantis","Nautilus"},
{"Atlantis","Player Cruiser","Hathcock","Repulse","Piranha","Nautilus","Repulse","Player Cruiser","Piranha","Atlantis","Nautilus","Hathcock"},
{"Atlantis","Player Cruiser","Hathcock","Repulse","Piranha","Nautilus","Repulse","Player Cruiser","Piranha","Atlantis","Nautilus","Hathcock","Atlantis"},
{"Atlantis","Player Cruiser","Hathcock","Repulse","Piranha","Nautilus","Repulse","Player Cruiser","Piranha","Atlantis","Nautilus","Hathcock","Atlantis","Player Cruiser"},
{"Atlantis","Player Cruiser","Hathcock","Repulse","Piranha","Nautilus","Repulse","Player Cruiser","Piranha","Atlantis","Nautilus","Hathcock","Atlantis","Player Cruiser","Piranha"},
{"Atlantis","Player Cruiser","Hathcock","Repulse","Piranha","Nautilus","Repulse","Player Cruiser","Piranha","Atlantis","Nautilus","Hathcock","Atlantis","Player Cruiser","Piranha","Hathcock"},
},
["Warp"] = {
{"Crucible"},
{"Crucible","Maverick"},
{"Crucible","Maverick","Phobos M3P"},
{"Crucible","Maverick","Phobos M3P","Flavia P.Falcon"},
{"Crucible","Maverick","Phobos M3P","Flavia P.Falcon","MP52 Hornet"},
{"Crucible","Maverick","Phobos M3P","Flavia P.Falcon","MP52 Hornet","Player Missile Cr."},
{"Crucible","Maverick","Phobos M3P","Flavia P.Falcon","MP52 Hornet","Player Missile Cr.","Maverick"},
{"Crucible","Maverick","Phobos M3P","Flavia P.Falcon","MP52 Hornet","Player Missile Cr.","Maverick","Phobos M3P"},
{"Crucible","Maverick","Phobos M3P","Flavia P.Falcon","MP52 Hornet","Player Missile Cr.","Maverick","Phobos M3P","Crucible"},
{"Crucible","Maverick","Phobos M3P","Flavia P.Falcon","MP52 Hornet","Player Missile Cr.","Maverick","Phobos M3P","Crucible","MP52 Hornet"},
{"Crucible","Maverick","Phobos M3P","Flavia P.Falcon","MP52 Hornet","Player Missile Cr.","Maverick","Phobos M3P","Crucible","MP52 Hornet","Player Missile Cr."},
{"Crucible","Maverick","Phobos M3P","Flavia P.Falcon","MP52 Hornet","Player Missile Cr.","Maverick","Phobos M3P","Crucible","MP52 Hornet","Player Missile Cr.","Flavia P.Falcon"},
{"Crucible","Maverick","Phobos M3P","Flavia P.Falcon","MP52 Hornet","Player Missile Cr.","Maverick","Phobos M3P","Crucible","MP52 Hornet","Player Missile Cr.","Flavia P.Falcon","Player Missile Cr."},
{"Crucible","Maverick","Phobos M3P","Flavia P.Falcon","MP52 Hornet","Player Missile Cr.","Maverick","Phobos M3P","Crucible","MP52 Hornet","Player Missile Cr.","Flavia P.Falcon","Player Missile Cr.","Maverick"},
{"Crucible","Maverick","Phobos M3P","Flavia P.Falcon","MP52 Hornet","Player Missile Cr.","Maverick","Phobos M3P","Crucible","MP52 Hornet","Player Missile Cr.","Flavia P.Falcon","Player Missile Cr.","Maverick","Crucible"},
{"Crucible","Maverick","Phobos M3P","Flavia P.Falcon","MP52 Hornet","Player Missile Cr.","Maverick","Phobos M3P","Crucible","MP52 Hornet","Player Missile Cr.","Flavia P.Falcon","Player Missile Cr.","Maverick","Crucible","Phobos M3P"},
},
["Heavy"] = {
{"Maverick"},
{"Maverick","Crucible"},
{"Maverick","Crucible","Atlantis"},
{"Maverick","Crucible","Atlantis","Player Missile Cr."},
{"Maverick","Crucible","Atlantis","Player Missile Cr.","Player Cruiser"},
{"Maverick","Crucible","Atlantis","Player Missile Cr.","Player Cruiser","Piranha"},
{"Maverick","Crucible","Atlantis","Player Missile Cr.","Player Cruiser","Piranha","Maverick"},
{"Maverick","Crucible","Atlantis","Player Missile Cr.","Player Cruiser","Piranha","Maverick","Player Missile Cr."},
{"Maverick","Crucible","Atlantis","Player Missile Cr.","Player Cruiser","Piranha","Maverick","Player Missile Cr.","Atlantis"},
{"Maverick","Crucible","Atlantis","Player Missile Cr.","Player Cruiser","Piranha","Maverick","Player Missile Cr.","Atlantis","Crucible"},
{"Maverick","Crucible","Atlantis","Player Missile Cr.","Player Cruiser","Piranha","Maverick","Player Missile Cr.","Atlantis","Crucible","Player Cruiser"},
{"Maverick","Crucible","Atlantis","Player Missile Cr.","Player Cruiser","Piranha","Maverick","Player Missile Cr.","Atlantis","Crucible","Player Cruiser","Piranha"},
{"Maverick","Crucible","Atlantis","Player Missile Cr.","Player Cruiser","Piranha","Maverick","Player Missile Cr.","Atlantis","Crucible","Player Cruiser","Piranha","Crucible"},
{"Maverick","Crucible","Atlantis","Player Missile Cr.","Player Cruiser","Piranha","Maverick","Player Missile Cr.","Atlantis","Crucible","Player Cruiser","Piranha","Crucible","Atlantis"},
{"Maverick","Crucible","Atlantis","Player Missile Cr.","Player Cruiser","Piranha","Maverick","Player Missile Cr.","Atlantis","Crucible","Player Cruiser","Piranha","Crucible","Atlantis","Maverick"},
{"Maverick","Crucible","Atlantis","Player Missile Cr.","Player Cruiser","Piranha","Maverick","Player Missile Cr.","Atlantis","Crucible","Player Cruiser","Piranha","Crucible","Atlantis","Maverick","Player Missile Cr."},
},
["Light"] = {
{"Phobos M3P"},
{"Phobos M3P","MP52 Hornet"},
{"Phobos M3P","MP52 Hornet","Flavia P.Falcon"},
{"Phobos M3P","MP52 Hornet","Flavia P.Falcon","Hathcock"},
{"Phobos M3P","MP52 Hornet","Flavia P.Falcon","Hathcock","Nautilus"},
{"Phobos M3P","MP52 Hornet","Flavia P.Falcon","Hathcock","Nautilus","Repulse"},
{"Phobos M3P","MP52 Hornet","Flavia P.Falcon","Hathcock","Nautilus","Repulse","Flavia P. Falcon"},
{"Phobos M3P","MP52 Hornet","Flavia P.Falcon","Hathcock","Nautilus","Repulse","Flavia P. Falcon","MP52 Hornet"},
{"Phobos M3P","MP52 Hornet","Flavia P.Falcon","Hathcock","Nautilus","Repulse","Flavia P. Falcon","MP52 Hornet","Phobos M3P"},
{"Phobos M3P","MP52 Hornet","Flavia P.Falcon","Hathcock","Nautilus","Repulse","Flavia P. Falcon","MP52 Hornet","Phobos M3P","Repulse"},
{"Phobos M3P","MP52 Hornet","Flavia P.Falcon","Hathcock","Nautilus","Repulse","Flavia P. Falcon","MP52 Hornet","Phobos M3P","Repulse","Hathcock"},
{"Phobos M3P","MP52 Hornet","Flavia P.Falcon","Hathcock","Nautilus","Repulse","Flavia P. Falcon","MP52 Hornet","Phobos M3P","Repulse","Hathcock","Nautilus"},
{"Phobos M3P","MP52 Hornet","Flavia P.Falcon","Hathcock","Nautilus","Repulse","Flavia P. Falcon","MP52 Hornet","Phobos M3P","Repulse","Hathcock","Nautilus","Flavia P. Falcon"},
{"Phobos M3P","MP52 Hornet","Flavia P.Falcon","Hathcock","Nautilus","Repulse","Flavia P. Falcon","MP52 Hornet","Phobos M3P","Repulse","Hathcock","Nautilus","Flavia P. Falcon","Phobos M3P"},
{"Phobos M3P","MP52 Hornet","Flavia P.Falcon","Hathcock","Nautilus","Repulse","Flavia P. Falcon","MP52 Hornet","Phobos M3P","Repulse","Hathcock","Nautilus","Flavia P. Falcon","Phobos M3P","MP52 Hornet"},
{"Phobos M3P","MP52 Hornet","Flavia P.Falcon","Hathcock","Nautilus","Repulse","Flavia P. Falcon","MP52 Hornet","Phobos M3P","Repulse","Hathcock","Nautilus","Flavia P. Falcon","Phobos M3P","MP52 Hornet","Repulse"},
},
["Custom"] = {
{"Holmes"},
{"Holmes","Phobos T2"},
{"Holmes","Phobos T2","Striker LX"},
{"Holmes","Phobos T2","Striker LX","Maverick XP"},
{"Holmes","Phobos T2","Striker LX","Maverick XP","Focus"},
{"Holmes","Phobos T2","Striker LX","Maverick XP","Focus","Repulse"},
{"Holmes","Phobos T2","Striker LX","Maverick XP","Focus","Repulse","Flavia P. Falcon"},
{"Holmes","Phobos T2","Striker LX","Maverick XP","Focus","Repulse","Flavia P. Falcon","Player Fighter"},
{"Holmes","Phobos T2","Striker LX","Maverick XP","Focus","Repulse","Flavia P. Falcon","Player Fighter","Phobos M3P"},
{"Holmes","Phobos T2","Striker LX","Maverick XP","Focus","Repulse","Flavia P. Falcon","Player Fighter","Phobos M3P","Repulse"},
{"Holmes","Phobos T2","Striker LX","Maverick XP","Focus","Repulse","Flavia P. Falcon","Player Fighter","Phobos M3P","Repulse","Hathcock"},
{"Holmes","Phobos T2","Striker LX","Maverick XP","Focus","Repulse","Flavia P. Falcon","Player Fighter","Phobos M3P","Repulse","Hathcock","Nautilus"},
{"Holmes","Phobos T2","Striker LX","Maverick XP","Focus","Repulse","Flavia P. Falcon","Player Fighter","Phobos M3P","Repulse","Hathcock","Nautilus","Flavia P. Falcon"},
{"Holmes","Phobos T2","Striker LX","Maverick XP","Focus","Repulse","Flavia P. Falcon","Player Fighter","Phobos M3P","Repulse","Hathcock","Nautilus","Flavia P. Falcon","Phobos M3P"},
{"Holmes","Phobos T2","Striker LX","Maverick XP","Focus","Repulse","Flavia P. Falcon","Player Fighter","Phobos M3P","Repulse","Hathcock","Nautilus","Flavia P. Falcon","Phobos M3P","MP52 Hornet"},
{"Holmes","Phobos T2","Striker LX","Maverick XP","Focus","Repulse","Flavia P. Falcon","Player Fighter","Phobos M3P","Repulse","Hathcock","Nautilus","Flavia P. Falcon","Phobos M3P","MP52 Hornet","Repulse"},
}
}
rwc_player_ship_names = { --rwc: random within category
["Atlantis"] = {"Formidable","Thrasher","Punisher","Vorpal","Protang","Drummond","Parchim","Coronado"},
["Benedict"] = {"Elizabeth","Ford","Avenger","Washington","Lincoln","Garibaldi","Eisenhower"},
["Crucible"] = {"Sling", "Stark", "Torrid", "Kicker", "Flummox"},
["Ender"] = {"Mongo","Godzilla","Leviathan","Kraken","Jupiter","Saturn"},
["Flavia P.Falcon"] = {"Ladyhawke","Hunter","Seeker","Gyrefalcon","Kestrel","Magpie","Bandit","Buccaneer"},
["Hathcock"] = {"Hayha", "Waldron", "Plunkett", "Mawhinney", "Furlong", "Zaytsev", "Pavlichenko", "Fett", "Hawkeye", "Hanzo"},
["Kiriya"] = {"Cavour","Reagan","Gaulle","Paulo","Truman","Stennis","Kuznetsov","Roosevelt","Vinson","Old Salt"},
["MP52 Hornet"] = {"Dragonfly","Scarab","Mantis","Yellow Jacket","Jimminy","Flik","Thorny","Buzz"},
["Maverick"] = {"Angel", "Thunderbird", "Roaster", "Magnifier", "Hedge"},
["Nautilus"] = {"October", "Abdiel", "Manxman", "Newcon", "Nusret", "Pluton", "Amiral", "Amur", "Heinkel", "Dornier"},
["Phobos M3P"] = {"Blinder","Shadow","Distortion","Diemos","Ganymede","Castillo","Thebe","Retrograde"},
["Piranha"] = {"Razor","Biter","Ripper","Voracious","Carnivorous","Characid","Vulture","Predator"},
["Player Cruiser"] = {"Excelsior","Velociraptor","Thunder","Kona","Encounter","Perth","Aspern","Panther"},
["Player Fighter"] = {"Buzzer","Flitter","Zippiticus","Hopper","Molt","Stinger","Stripe"},
["Player Missile Cr."] = {"Projectus","Hurlmeister","Flinger","Ovod","Amatola","Nakhimov","Antigone"},
["Repulse"] = {"Fiddler","Brinks","Loomis","Mowag","Patria","Pandur","Terrex","Komatsu","Eitan"},
["Striker"] = {"Sparrow","Sizzle","Squawk","Crow","Phoenix","Snowbird","Hawk"},
["ZX-Lindworm"] = {"Seagull","Catapult","Blowhard","Flapper","Nixie","Pixie","Tinkerbell"},
["Unknown"] = {"Foregone","Righteous","Masher","Lancer","Horizon","Osiris","Athena","Poseidon","Heracles","Constitution","Stargazer","Horatio","Socrates","Galileo","Newton","Beethoven","Rabin","Spector","Akira","Thunderchild","Ambassador","Adelphi","Exeter","Ghandi","Valdemar","Yamaguchi","Zhukov","Andromeda","Drake","Prokofiev","Antares","Apollo","Ajax","Clement","Bradbury","Gage","Buran","Kearsarge","Cheyenne","Ahwahnee","Constellation","Gettysburg","Hathaway","Magellan","Farragut","Kongo","Lexington","Potempkin","Yorktown","Daedalus","Archon","Carolina","Essex","Danube","Gander","Ganges","Mekong","Orinoco","Rubicon","Shenandoah","Volga","Yangtzee Kiang","Yukon","Valiant","Deneva","Arcos","LaSalle","Al-Batani","Cairo","Charlseton","Crazy Horse","Crockett","Fearless","Fredrickson","Gorkon","Hood","Lakota","Malinche","Melbourne","Freedom","Concorde","Firebrand","Galaxy","Challenger","Odyssey","Trinculo","Venture","Yamato","Hokule'a","Tripoli","Hope","Nobel","Pasteur","Bellerophon","Voyager","Istanbul","Constantinople","Havana","Sarajevo","Korolev","Goddard","Luna","Titan","Mediterranean","Lalo","Wyoming","Merced","Trieste","Miranda","Brattain","Helin","Lantree","Majestic","Reliant","Saratoga","ShirKahr","Sitak","Tian An Men","Trial","Nebula","Bonchune","Capricorn","Hera","Honshu","Interceptor","Leeds","Merrimack","Prometheus","Proxima","Sutherland","T'Kumbra","Ulysses","New Orleans","Kyushu","Renegade","Rutledge","Thomas Paine","Niagra","Princeton","Wellington","Norway","Budapest","Nova","Equinox","Rhode Island","Columbia","Oberth","Biko","Cochraine","Copernicus","Grissom","Pegasus","Raman","Yosemite","Renaissance","Aries","Maryland","Rigel","Akagi","Tolstoy","Yeager","Sequoia","Sovereign","Soyuz","Bozeman","Springfield","Chekov","Steamrunner","Appalachia","Surak","Zapata","Sydney","Jenolen","Nash","Wambundu","Fleming","Wells","Relativity","Yorkshire","Denver","Zodiac","Centaur","Cortez","Republic","Peregrine","Calypso","Cousteau","Waverider","Scimitar"},
}
player_ship_stats = {
["Atlantis"] = { strength = 52, cargo = 6, distance = 400, long_range_radar = 30000, short_range_radar = 5000, probes = 10, long_jump = 50, short_jump = 5, warp = 0, stock = true, },
["Benedict"] = { strength = 10, cargo = 9, distance = 400, long_range_radar = 30000, short_range_radar = 5000, probes = 10, long_jump = 90, short_jump = 5, warp = 0, stock = true, },
["Crucible"] = { strength = 45, cargo = 5, distance = 200, long_range_radar = 20000, short_range_radar = 6000, probes = 9, long_jump = 0, short_jump = 0, warp = 750, stock = true, },
["Ender"] = { strength = 100, cargo = 20, distance = 2000,long_range_radar = 45000, short_range_radar = 7000, probes = 12, long_jump = 50, short_jump = 5, warp = 0, stock = true, },
["Flavia P.Falcon"] = { strength = 13, cargo = 15, distance = 200, long_range_radar = 40000, short_range_radar = 5000, probes = 8, long_jump = 0, short_jump = 0, warp = 500, stock = true, },
["Hathcock"] = { strength = 30, cargo = 6, distance = 200, long_range_radar = 35000, short_range_radar = 6000, probes = 8, long_jump = 60, short_jump = 6, warp = 0, stock = true, },
["Kiriya"] = { strength = 10, cargo = 9, distance = 400, long_range_radar = 35000, short_range_radar = 5000, probes = 10, long_jump = 0, short_jump = 0, warp = 750, stock = true, },
["Maverick"] = { strength = 45, cargo = 5, distance = 200, long_range_radar = 20000, short_range_radar = 4000, probes = 9, long_jump = 0, short_jump = 0, warp = 800, stock = true, },
["MP52 Hornet"] = { strength = 7, cargo = 3, distance = 100, long_range_radar = 18000, short_range_radar = 4000, probes = 5, long_jump = 0, short_jump = 0, warp = 1000, stock = true, },
["Nautilus"] = { strength = 12, cargo = 7, distance = 200, long_range_radar = 22000, short_range_radar = 4000, probes = 10, long_jump = 70, short_jump = 5, warp = 0, stock = true, },
["Phobos M3P"] = { strength = 19, cargo = 10, distance = 200, long_range_radar = 25000, short_range_radar = 5000, probes = 6, long_jump = 0, short_jump = 0, warp = 900, stock = true, },
["Piranha"] = { strength = 16, cargo = 8, distance = 200, long_range_radar = 25000, short_range_radar = 6000, probes = 6, long_jump = 50, short_jump = 5, warp = 0, stock = true, },
["Player Cruiser"] = { strength = 40, cargo = 6, distance = 400, long_range_radar = 30000, short_range_radar = 5000, probes = 10, long_jump = 80, short_jump = 5, warp = 0, stock = true, },
["Player Missile Cr."] = { strength = 45, cargo = 8, distance = 200, long_range_radar = 35000, short_range_radar = 6000, probes = 9, long_jump = 0, short_jump = 0, warp = 800, stock = true, },
["Player Fighter"] = { strength = 7, cargo = 3, distance = 100, long_range_radar = 15000, short_range_radar = 4500, probes = 4, long_jump = 40, short_jump = 3, warp = 0, stock = true, },
["Repulse"] = { strength = 14, cargo = 12, distance = 200, long_range_radar = 38000, short_range_radar = 5000, probes = 8, long_jump = 50, short_jump = 5, warp = 0, stock = true, },
["Striker"] = { strength = 8, cargo = 4, distance = 200, long_range_radar = 35000, short_range_radar = 5000, probes = 6, long_jump = 40, short_jump = 3, warp = 0, stock = true, },
["ZX-Lindworm"] = { strength = 8, cargo = 3, distance = 100, long_range_radar = 18000, short_range_radar = 5500, probes = 4, long_jump = 0, short_jump = 0, warp = 950, stock = true, },
-- Stock above, custom below
["Focus"] = { strength = 35, cargo = 4, distance = 200, long_range_radar = 32000, short_range_radar = 5000, probes = 8, long_jump = 25, short_jump = 2.5, warp = 0, stock = false, },
["Holmes"] = { strength = 35, cargo = 6, distance = 200, long_range_radar = 35000, short_range_radar = 4000, probes = 8, long_jump = 0, short_jump = 0, warp = 750, stock = false, },
["Maverick XP"] = { strength = 23, cargo = 5, distance = 200, long_range_radar = 25000, short_range_radar = 7000, probes = 10, long_jump = 20, short_jump = 2, warp = 0, stock = false, },
["Phobos T2"] = { strength = 19, cargo = 9, distance = 200, long_range_radar = 25000, short_range_radar = 5000, probes = 5, long_jump = 25, short_jump = 2, warp = 0, stock = false, },
["Striker LX"] = { strength = 16, cargo = 4, distance = 200, long_range_radar = 20000, short_range_radar = 4000, probes = 7, long_jump = 20, short_jump = 2, warp = 0, stock = false, },
}
npc_ships = false
npc_lower = 30
npc_upper = 60
scientist_list = {}
scientist_count = 0
scientist_score_value = 10
scientist_names = { --fictional
"Gertrude Goodall",
"John Kruger",
"Lisa Forsythe",
"Ethan Williams",
"Ameilia Martinez",
"Felix Mertens",
"Marie Novak",
"Mathias Evans",
"Clara Heikkinen",
"Vicente Martin",
"Catalina Fischer",
"Marek Varga",
"Ewa Olsen",
"Oscar Stewart",
"Alva Rodriguez",
"Aiden Johansson",
"Zoey Smith",
"Jorge Romero",
"Rosa Wong",
"Julian Acharya",
"Hannah Ginting",
"Anton Dewala",
"Camille Silva",
"Aleksi Gideon",
"Ella Dasgupta",
"Gunnar Smirnov",
"Telma Lozano",
"Kaito Fabroa",
"Misaki Kapia",
"Ronald Sanada",
"Janice Tesfaye",
"Alvaro Hassan",
"Valeria Dinh",
"Sergei Mokri",
"Yulia Karga",
"Arnav Dixon",
"Sanvi Saetan",
}
scientist_topics = {
"Mathematics",
"Miniaturization",
"Exotic materials",
"Warp theory",
"Particle theory",
"Power systems",
"Energy fields",
"Subatomic physics",
"Stellar phenomena",
"Gravity dynamics",
"Information science",
"Computer protocols",
}
upgrade_requirements = {
"talk", --talk
"talk primary", --talk then upgrade at primary station
"meet", --meet
"meet primary", --meet then upgrade at primary station
"transport", --transport to primary station
"confer", --transport to primary station, then confer with another scientist
}
upgrade_list = {
{action = hullStrengthUpgrade, name = "hull strength upgrade"},
{action = shieldStrengthUpgrade, name = "shield strength upgrade"},
{action = missileLoadSpeedUpgrade, name = "missile load speed upgrade"},
{action = beamDamageUpgrade, name = "beam damage upgrade"},
{action = beamRangeUpgrade, name = "beam range upgrade"},
{action = batteryEfficiencyUpgrade, name = "battery efficiency upgrade"},
{action = fasterImpulseUpgrade, name = "faster impulse upgrade"},
{action = longerSensorsUpgrade, name = "longer sensor range upgrade"},
{action = fasterSpinUpgrade, name = "faster maneuvering speed upgrade"},
}
upgrade_automated_applications = {
"single", --automatically applied only to the player that completed the requirements
"players", --automatically applied to allied players
"all", --automatically applied to players and NPCs (where applicable)
}
prefix_length = 0
suffix_index = 0
formation_delta = {
["square"] = {
x = {0,1,0,-1, 0,1,-1, 1,-1,2,0,-2, 0,2,-2, 2,-2,2, 2,-2,-2,1,-1, 1,-1,0, 0,3,-3,1, 1,3,-3,-1,-1, 3,-3,2, 2,3,-3,-2,-2, 3,-3,3, 3,-3,-3,4,0,-4, 0,4,-4, 4,-4,-4,-4,-4,-4,-4,-4,4, 4,4, 4,4, 4, 1,-1, 2,-2, 3,-3,1,-1,2,-2,3,-3,5,-5,0, 0,5, 5,-5,-5,-5,-5,-5,-5,-5,-5,-5,-5,5, 5,5, 5,5, 5,5, 5, 1,-1, 2,-2, 3,-3, 4,-4,1,-1,2,-2,3,-3,4,-4},
y = {0,0,1, 0,-1,1,-1,-1, 1,0,2, 0,-2,2,-2,-2, 2,1,-1, 1,-1,2, 2,-2,-2,3,-3,0, 0,3,-3,1, 1, 3,-3,-1,-1,3,-3,2, 2, 3,-3,-2,-2,3,-3, 3,-3,0,4, 0,-4,4,-4,-4, 4, 1,-1, 2,-2, 3,-3,1,-1,2,-2,3,-3,-4,-4,-4,-4,-4,-4,4, 4,4, 4,4, 4,0, 0,5,-5,5,-5, 5,-5, 1,-1, 2,-2, 3,-3, 4,-4,1,-1,2,-2,3,-3,4,-4,-5,-5,-5,-5,-5,-5,-5,-5,5, 5,5, 5,5, 5,5, 5},
},
["hexagonal"] = {
x = {0,2,-2,1,-1, 1,-1,4,-4,0, 0,2,-2,-2, 2,3,-3, 3,-3,6,-6,1,-1, 1,-1,3,-3, 3,-3,4,-4, 4,-4,5,-5, 5,-5,8,-8,4,-4, 4,-4,5,5 ,-5,-5,2, 2,-2,-2,0, 0,6, 6,-6,-6,7, 7,-7,-7,10,-10,5, 5,-5,-5,6, 6,-6,-6,7, 7,-7,-7,8, 8,-8,-8,9, 9,-9,-9,3, 3,-3,-3,1, 1,-1,-1,12,-12,6,-6, 6,-6,7,-7, 7,-7,8,-8, 8,-8,9,-9, 9,-9,10,-10,10,-10,11,-11,11,-11,4,-4, 4,-4,2,-2, 2,-2,0, 0},
y = {0,0, 0,1, 1,-1,-1,0, 0,2,-2,2,-2, 2,-2,1,-1,-1, 1,0, 0,3, 3,-3,-3,3,-3,-3, 3,2,-2,-2, 2,1,-1,-1, 1,0, 0,4,-4,-4, 4,3,-3, 3,-3,4,-4, 4,-4,4,-4,2,-2, 2,-2,1,-1, 1,-1, 0, 0,5,-5, 5,-5,4,-4, 4,-4,3,-3, 3,-7,2,-2, 2,-2,1,-1, 1,-1,5,-5, 5,-5,5,-5, 5,-5, 0, 0,6, 6,-6,-6,5, 5,-5,-5,4, 4,-4,-4,3, 3,-3,-3, 2, 2,-2, -2, 1, 1,-1, -1,6, 6,-6,-6,6, 6,-6,-6,6,-6},
},
}
fleet_group = {
["adder"] = "Adders",
["Adders"] = "adder",
["missiler"] = "Missilers",
["Missilers"] = "missiler",
["beamer"] = "Beamers",
["Beamers"] = "beamer",
["frigate"] = "Frigates",
["Frigates"] = "frigate",
["chaser"] = "Chasers",
["Chasers"] = "chaser",
["fighter"] = "Fighters",
["Fighters"] = "fighter",
["drone"] = "Drones",
["Drones"] = "drone",
}
ship_template = { --ordered by relative strength
["Gnat"] = {strength = 2, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = true, drone = true, unusual = false, base = false, create = gnat},
["Lite Drone"] = {strength = 3, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = true, drone = true, unusual = false, base = false, create = droneLite},
["Jacket Drone"] = {strength = 4, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = true, drone = true, unusual = false, base = false, create = droneJacket},
["Ktlitan Drone"] = {strength = 4, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = true, drone = true, unusual = false, base = false, create = stockTemplate},
["Heavy Drone"] = {strength = 5, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = true, drone = true, unusual = false, base = false, create = droneHeavy},
["Adder MK3"] = {strength = 5, adder = true, missiler = false, beamer = false, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["MT52 Hornet"] = {strength = 5, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = true, drone = false, unusual = false, base = false, create = stockTemplate},
["MU52 Hornet"] = {strength = 5, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = true, drone = false, unusual = false, base = false, create = stockTemplate},
["MV52 Hornet"] = {strength = 6, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = true, drone = false, unusual = false, base = false, create = hornetMV52},
["Adder MK4"] = {strength = 6, adder = true, missiler = false, beamer = false, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Fighter"] = {strength = 6, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = true, drone = false, unusual = false, base = false, create = stockTemplate},
["Ktlitan Fighter"] = {strength = 6, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = true, drone = false, unusual = false, base = false, create = stockTemplate},
["K2 Fighter"] = {strength = 7, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = true, drone = false, unusual = false, base = false, create = k2fighter},
["Adder MK5"] = {strength = 7, adder = true, missiler = false, beamer = false, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["WX-Lindworm"] = {strength = 7, adder = false, missiler = true, beamer = false, frigate = false, chaser = false, fighter = true, drone = false, unusual = false, base = false, create = stockTemplate},
["K3 Fighter"] = {strength = 8, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = true, drone = false, unusual = false, base = false, create = k3fighter},
["Adder MK6"] = {strength = 8, adder = true, missiler = false, beamer = false, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Ktlitan Scout"] = {strength = 8, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["WZ-Lindworm"] = {strength = 9, adder = false, missiler = true, beamer = false, frigate = false, chaser = false, fighter = true, drone = false, unusual = false, base = false, create = wzLindworm},
["Adder MK7"] = {strength = 9, adder = true, missiler = false, beamer = false, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Adder MK8"] = {strength = 10, adder = true, missiler = false, beamer = false, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Adder MK9"] = {strength = 11, adder = true, missiler = false, beamer = false, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Nirvana R3"] = {strength = 12, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Phobos R2"] = {strength = 13, adder = false, missiler = false, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = phobosR2},
["Missile Cruiser"] = {strength = 14, adder = false, missiler = true, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Waddle 5"] = {strength = 15, adder = true, missiler = false, beamer = false, frigate = false, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = waddle5},
["Jade 5"] = {strength = 15, adder = true, missiler = false, beamer = false, frigate = false, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = jade5},
["Phobos T3"] = {strength = 15, adder = false, missiler = false, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Piranha F8"] = {strength = 15, adder = false, missiler = true, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Piranha F12"] = {strength = 15, adder = false, missiler = true, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Piranha F12.M"] = {strength = 16, adder = false, missiler = true, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Phobos M3"] = {strength = 16, adder = false, missiler = false, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Farco 3"] = {strength = 16, adder = false, missiler = false, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = farco3},
["Farco 5"] = {strength = 16, adder = false, missiler = false, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = farco5},
["Karnack"] = {strength = 17, adder = false, missiler = false, beamer = true, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Gunship"] = {strength = 17, adder = false, missiler = false, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Phobos T4"] = {strength = 18, adder = false, missiler = false, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = phobosT4},
["Cruiser"] = {strength = 18, adder = true, missiler = false, beamer = true, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Nirvana R5"] = {strength = 19, adder = false, missiler = false, beamer = true, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Farco 8"] = {strength = 19, adder = false, missiler = false, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = farco8},
["Ktlitan Worker"] = {strength = 20, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Nirvana R5A"] = {strength = 20, adder = false, missiler = false, beamer = true, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Adv. Gunship"] = {strength = 20, adder = false, missiler = false, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Farco 11"] = {strength = 21, adder = false, missiler = false, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = farco11},
["Storm"] = {strength = 22, adder = false, missiler = true, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Stalker R5"] = {strength = 22, adder = false, missiler = false, beamer = true, frigate = true, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Stalker Q5"] = {strength = 22, adder = false, missiler = false, beamer = true, frigate = true, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Farco 13"] = {strength = 24, adder = false, missiler = false, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = farco13},
["Ranus U"] = {strength = 25, adder = false, missiler = true, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Stalker Q7"] = {strength = 25, adder = false, missiler = false, beamer = true, frigate = true, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Stalker R7"] = {strength = 25, adder = false, missiler = false, beamer = true, frigate = true, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Whirlwind"] = {strength = 26, adder = false, missiler = true, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = whirlwind},
["Adv. Striker"] = {strength = 27, adder = false, missiler = false, beamer = true, frigate = true, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Elara P2"] = {strength = 28, adder = false, missiler = false, beamer = false, frigate = true, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Tempest"] = {strength = 30, adder = false, missiler = true, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = tempest},
["Strikeship"] = {strength = 30, adder = false, missiler = false, beamer = true, frigate = true, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Fiend G3"] = {strength = 33, adder = false, missiler = false, beamer = false, frigate = true, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Fiend G4"] = {strength = 35, adder = false, missiler = false, beamer = false, frigate = true, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Cucaracha"] = {strength = 36, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = cucaracha},
["Fiend G5"] = {strength = 37, adder = false, missiler = false, beamer = false, frigate = true, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Fiend G6"] = {strength = 39, adder = false, missiler = false, beamer = false, frigate = true, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Predator"] = {strength = 42, adder = false, missiler = false, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = predator},
["Ktlitan Breaker"] = {strength = 45, adder = false, missiler = false, beamer = false, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Hurricane"] = {strength = 46, adder = false, missiler = true, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = hurricane},
["Ktlitan Feeder"] = {strength = 48, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Atlantis X23"] = {strength = 50, adder = false, missiler = false, beamer = false, frigate = false, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["K2 Breaker"] = {strength = 55, adder = false, missiler = false, beamer = false, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = k2breaker},
["Ktlitan Destroyer"] = {strength = 50, adder = false, missiler = false, beamer = false, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Atlantis Y42"] = {strength = 60, adder = false, missiler = false, beamer = false, frigate = false, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = atlantisY42},
["Blockade Runner"] = {strength = 65, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Starhammer II"] = {strength = 70, adder = false, missiler = false, beamer = false, frigate = false, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Enforcer"] = {strength = 75, adder = false, missiler = false, beamer = false, frigate = true, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = enforcer},
["Dreadnought"] = {strength = 80, adder = false, missiler = false, beamer = true, frigate = false, chaser = false, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Starhammer III"] = {strength = 85, adder = false, missiler = false, beamer = false, frigate = false, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = starhammerIII},
["Starhammer V"] = {strength = 90, adder = false, missiler = false, beamer = false, frigate = false, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = starhammerV},
["Battlestation"] = {strength = 100,adder = false, missiler = false, beamer = true, frigate = false, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
["Tyr"] = {strength = 150,adder = false, missiler = false, beamer = true, frigate = false, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = tyr},
["Odin"] = {strength = 250,adder = false, missiler = false, beamer = false, frigate = false, chaser = true, fighter = false, drone = false, unusual = false, base = false, create = stockTemplate},
}
control_code_stem = { --All control codes must use capital letters or they will not work.
"ALWAYS",
"BLACK",
"BLUE",
"BRIGHT",
"BROWN",
"CHAIN",
"CHURCH",
"DOORWAY",
"DULL",
"ELBOW",
"EMPTY",
"EPSILON",
"FLOWER",
"FLY",
"FROZEN",
"GREEN",
"GLOW",
"HAMMER",
"INK",
"JUMP",
"KEY",
"LETTER",
"LIST",
"MORNING",
"NEXT",
"OPEN",
"ORANGE",
"OUTSIDE",
"PURPLE",
"QUARTER",
"QUIET",
"RED",
"SHINE",
"SIGMA",
"STAR",
"STREET",
"TOKEN",
"THIRSTY",
"UNDER",
"VANISH",
"WHITE",
"WRENCH",
"YELLOW",
}
healthCheckTimerInterval = 10
healthCheckTimer = healthCheckTimerInterval
commonGoods = {"food","medicine","nickel","platinum","gold","dilithium","tritanium","luxury","cobalt","impulse","warp","shield","tractor","repulsor","beam","optic","robotic","filament","transporter","sensor","communication","autodoc","lifter","android","nanites","software","circuit","battery"}
componentGoods = {"impulse","warp","shield","tractor","repulsor","beam","optic","robotic","filament","transporter","sensor","communication","autodoc","lifter","android","nanites","software","circuit","battery"}
mineralGoods = {"nickel","platinum","gold","dilithium","tritanium","cobalt"}
end
function setStaticScienceDatabase()
--------------------------------------------------------------------------------------
-- Generic station descriptions: text and details from shipTemplates_stations.lua --
--------------------------------------------------------------------------------------
local station_db = queryScienceDatabase("Stations")
if station_db == nil then
station_db = ScienceDatabase():setName("Stations")
station_db:setLongDescription("Stations are places for ships to dock, get repaired and replenished, interact with station personnel, etc. They are like oases, service stations, villages, towns, cities, etc.")
station_db:addEntry("Small")
local small_station_db = queryScienceDatabase("Stations","Small")
small_station_db:setLongDescription("Stations of this size are often used as research outposts, listening stations, and security checkpoints. Crews turn over frequently in a small station's cramped accommodatations, but they are small enough to look like ships on many long-range sensors, and organized raiders sometimes take advantage of this by placing small stations in nebulae to serve as raiding bases. They are lightly shielded and vulnerable to swarming assaults.")
small_station_db:setImage("radartrace_smallstation.png")
small_station_db:setKeyValue("Class","Small")
small_station_db:setKeyValue("Size",300)
small_station_db:setKeyValue("Shield",300)
small_station_db:setKeyValue("Hull",150)
station_db:addEntry("Medium")
local medium_station_db = queryScienceDatabase("Stations","Medium")
medium_station_db:setLongDescription("Large enough to accommodate small crews for extended periods of times, stations of this size are often trading posts, refuelling bases, mining operations, and forward military bases. While their shields are strong, concerted attacks by many ships can bring them down quickly.")
medium_station_db:setImage("radartrace_mediumstation.png")
medium_station_db:setKeyValue("Class","Medium")
medium_station_db:setKeyValue("Size",1000)
medium_station_db:setKeyValue("Shield",800)
medium_station_db:setKeyValue("Hull",400)
station_db:addEntry("Large")
local large_station_db = queryScienceDatabase("Stations","Large")
large_station_db:setLongDescription("These spaceborne communities often represent permanent bases in a sector. Stations of this size can be military installations, commercial hubs, deep-space settlements, and small shipyards. Only a concentrated attack can penetrate a large station's shields, and its hull can withstand all but the most powerful weaponry.")
large_station_db:setImage("radartrace_largestation.png")
large_station_db:setKeyValue("Class","Large")
large_station_db:setKeyValue("Size",1300)
large_station_db:setKeyValue("Shield","1000/1000/1000")
large_station_db:setKeyValue("Hull",500)
station_db:addEntry("Huge")
local huge_station_db = queryScienceDatabase("Stations","Huge")
huge_station_db:setLongDescription("The size of a sprawling town, stations at this scale represent a faction's center of spaceborne power in a region. They serve many functions at once and represent an extensive investment of time, money, and labor. A huge station's shields and thick hull can keep it intact long enough for reinforcements to arrive, even when faced with an ongoing siege or massive, perfectly coordinated assault.")
huge_station_db:setImage("radartrace_hugestation.png")
huge_station_db:setKeyValue("Class","Huge")
huge_station_db:setKeyValue("Size",1500)
huge_station_db:setKeyValue("Shield","1200/1200/1200/1200")
huge_station_db:setKeyValue("Hull",800)
end
-----------------------------------------------------------------------------------
-- Template ship category descriptions: text from other shipTemplates... files --
-----------------------------------------------------------------------------------
local ships_db = queryScienceDatabase("Ships")
local fighter_db = queryScienceDatabase("Ships","Starfighter")
local generic_starfighter_description = "Starfighters are single to 3 person small ships. These are most commonly used as light firepower roles.\nThey are common in larger groups, and need a close by station or support ship, as they lack long time life support.\nIt's rare to see starfighters with more then one shield section.\n\nOne of the most well known starfighters is the X-Wing.\n\nStarfighters come in 3 subclasses:\n* Interceptors: Fast, low on firepower, high on manouverability\n* Gunship: Equipped with more weapons, but trades in manouverability because of it.\n* Bomber: Slowest of all starfighters, but pack a large punch in a small package. Usually come without any lasers, but the largers bombers have been known to deliver nukes."
fighter_db:setLongDescription(generic_starfighter_description)
local frigate_db = queryScienceDatabase("Ships","Frigate")
local generic_frigate_description = "Frigates are one size up from starfighters. They require a crew from 3 to 20 people.\nThink, Firefly, millennium falcon, slave I (Boba fett's ship).\n\nThey generally have 2 or more shield sections, but hardly ever more than 4.\n\nThis class of ships is normally not fitted with jump or warp drives. But in some cases ships are modified to include these, or for certain roles it is built in.\n\nThey are divided in 3 different sub-classes:\n* Cruiser: Weaponized frigates, focused on combat. These come in various roles.\n* Light transport: Small transports, like transporting up to 50 soldiers in spartan conditions or a few diplomats in luxury. Depending on the role it can have some weaponry.\n* Support: Support types come in many varieties. They are simply a frigate hull fitted with whatever was needed. Anything from mine-layers to science vessels."
frigate_db:setLongDescription(generic_frigate_description)
local corvette_db = queryScienceDatabase("Ships","Corvette")
local generic_corvette_description = "Corvettes are the common large ships. Larger then a frigate, smaller then a dreadnaught.\nThey generally have 4 or more shield sections. Run with a crew of 20 to 250.\nThis class generally has jumpdrives or warpdrives. But lack the maneuverability that is seen in frigates.\n\nThey come in 3 different subclasses:\n* Destroyer: Combat oriented ships. No science, no transport. Just death in a large package.\n* Support: Large scale support roles. Drone carriers fall in this category, as well as mobile repair centers.\n* Freighter: Large scale transport ships. Most common here are the jump freighters, using specialized jumpdrives to cross large distances with large amounts of cargo."
corvette_db:setLongDescription(generic_corvette_description)
local dreadnought_db = queryScienceDatabase("Ships","Dreadnought")
dreadnought_db:setLongDescription("Dreadnoughts are the largest ships.\nThey are so large and uncommon that every type is pretty much their own subclass.\nThey usually come with 6 or more shield sections, require a crew of 250+ to operate.\n\nThink: Stardestroyer.")
--------------------------
-- Stock player ships --
--------------------------
local stock_db = ships_db:addEntry("Mainstream")
stock_db = queryScienceDatabase("Ships","Mainstream")
stock_db:setLongDescription("Mainstream ships are those ship types that are commonly available to crews serving on the front lines or in well established areas")
---- Starfighters
local fighter_stock_db = stock_db:addEntry("Starfighter")
fighter_stock_db:setLongDescription(generic_starfighter_description)
-- MP52 Hornet
fighter_stock_db:addEntry("MP52 Hornet")
local mp52_hornet_db = queryScienceDatabase("Ships","Mainstream","Starfighter","MP52 Hornet")
mp52_hornet_db:setLongDescription("The MP52 Hornet is a significantly upgraded version of MU52 Hornet, with nearly twice the hull strength, nearly three times the shielding, better acceleration, impulse boosters, and a second laser cannon.")
mp52_hornet_db:setKeyValue("Class","Starfighter")
mp52_hornet_db:setKeyValue("Sub-class","Interceptor")
mp52_hornet_db:setKeyValue("Size","30")
mp52_hornet_db:setKeyValue("Shield","60")
mp52_hornet_db:setKeyValue("Hull","70")
mp52_hornet_db:setKeyValue("Repair Crew",1)
mp52_hornet_db:setKeyValue("Warp Speed","60 U/min") --1000 (added for scenario)
mp52_hornet_db:setKeyValue("Battery Capacity",400)
mp52_hornet_db:setKeyValue("Sensor Ranges","Long: 18 U / Short: 4 U")
mp52_hornet_db:setKeyValue("Move speed","7.5 U/min") --125 (value * 60 / 1000 = units per minute)
mp52_hornet_db:setKeyValue("Turn speed","32 deg/sec")
mp52_hornet_db:setKeyValue("Beam weapon 355:30","Rng:.9 Dmg:2.5 Cyc:4")
mp52_hornet_db:setKeyValue("Beam weapon 5:30","Rng:.9 Dmg:2.5 Cyc:4")
mp52_hornet_db:setImage("radar_fighter.png")
-- Player Fighter
fighter_stock_db:addEntry("Player Fighter")
local player_fighter_db = queryScienceDatabase("Ships","Mainstream","Starfighter","Player Fighter")
player_fighter_db:setLongDescription("A fairly standard fighter with strong beams and a tube for HVLIs. The sensors aren't that great, but it often has a warp drive bolted on making it extraordinarily fast")
player_fighter_db:setKeyValue("Class","Starfighter")
player_fighter_db:setKeyValue("Size","40")
player_fighter_db:setKeyValue("Shield","40")
player_fighter_db:setKeyValue("Hull","60")
player_fighter_db:setKeyValue("Repair Crew",3)
player_fighter_db:setKeyValue("Warp Speed","60 U/min") --1000 (added for scenario)
player_fighter_db:setKeyValue("Battery Capacity",400)
player_fighter_db:setKeyValue("Sensor Ranges","Long: 15 U / Short: 4.5 U")
player_fighter_db:setKeyValue("Move speed","6.6 U/min") --110 (value * 60 / 1000 = units per minute)
player_fighter_db:setKeyValue("Turn speed","20 deg/sec")
player_fighter_db:setKeyValue("Beam weapon 0:40","Rng:.5 Dmg:4 Cyc:6") --modified for scenario: added short forward beam so others balance
player_fighter_db:setKeyValue("Beam weapon 10:40","Rng:1 Dmg:8 Cyc:6")
player_fighter_db:setKeyValue("Beam weapon 350:40","Rng:1 Dmg:8 Cyc:6")
player_fighter_db:setKeyValue("Tube 0","10 sec")
player_fighter_db:setKeyValue("Storage HVLI","4")
player_fighter_db:setImage("radar_fighter.png")
-- Striker
fighter_stock_db:addEntry("Striker")
local striker_db = queryScienceDatabase("Ships","Mainstream","Starfighter","Striker")
striker_db:setLongDescription("The Striker is the predecessor to the advanced striker, slow but agile, but does not do an extreme amount of damage, and lacks in shields")
striker_db:setKeyValue("Class","Starfighter")
striker_db:setKeyValue("Size","140")
striker_db:setKeyValue("Shield","50/30")
striker_db:setKeyValue("Hull","120")
striker_db:setKeyValue("Repair Crew",2)
striker_db:setKeyValue("Jump Range","3 - 40 U") --modified for scenario
striker_db:setKeyValue("Battery Capacity",500)
striker_db:setKeyValue("Sensor Ranges","Long: 35 U / Short: 5 U")
striker_db:setKeyValue("Move speed","2.7 U/min") --45
striker_db:setKeyValue("Turn speed","15 deg/sec")
striker_db:setKeyValue("Beam weapon 345:100","Rng:1 Dmg:6 Cyc:6 Tur:6")
striker_db:setKeyValue("Beam weapon 15:100","Rng:1 Dmg:6 Cyc:6 Tur:6")
striker_db:setImage("radar_adv_striker.png")
-- ZX-Lindworm
fighter_stock_db:addEntry("ZX-Lindworm")
local zx_lindworm_db = queryScienceDatabase("Ships","Mainstream","Starfighter","ZX-Lindworm")
zx_lindworm_db:setLongDescription("The ZX model is an improvement on the WX-Lindworm with stronger hull and shields, faster impulse and tubes, more missiles and a single weak, turreted beam. The 'Worm' as it's often called, is a bomber-class starfighter. While one of the least-shielded starfighters in active duty, the Worm's launchers can pack quite a punch. Its goal is to fly in, destroy its target, and fly out or be destroyed.")
zx_lindworm_db:setKeyValue("Class","Starfighter")
zx_lindworm_db:setKeyValue("Sub-class","Bomber")
zx_lindworm_db:setKeyValue("Size","30")
zx_lindworm_db:setKeyValue("Shield","40")
zx_lindworm_db:setKeyValue("Hull","75")
zx_lindworm_db:setKeyValue("Repair Crew",1)
zx_lindworm_db:setKeyValue("Warp Speed","57 U/min") --950 (added for scenario)
zx_lindworm_db:setKeyValue("Battery Capacity",400)
zx_lindworm_db:setKeyValue("Sensor Ranges","Long: 18 U / Short: 5.5 U")
zx_lindworm_db:setKeyValue("Move speed","4.2 U/min") --70 (value * 60 / 1000 = units per minute)
zx_lindworm_db:setKeyValue("Turn speed","15 deg/sec")
zx_lindworm_db:setKeyValue("Beam weapon 180:270","Rng:.7 Dmg:2 Cyc:6")
zx_lindworm_db:setKeyValue("Small Tube 0","10 sec")
zx_lindworm_db:setKeyValue("Small Tube 359","10 sec")
zx_lindworm_db:setKeyValue("Small Tube 1","10 sec")
zx_lindworm_db:setKeyValue("Storage Homing","3")
zx_lindworm_db:setKeyValue("Storage HVLI","12")
zx_lindworm_db:setImage("radar_fighter.png")
---- Frigates
local frigate_stock_db = stock_db:addEntry("Frigate")
frigate_stock_db:setLongDescription(generic_frigate_description)
-- Flavia P.Falcon
frigate_stock_db:addEntry("Flavia P.Falcon")
local flavia_p_falcon_db = queryScienceDatabase("Ships","Mainstream","Frigate","Flavia P.Falcon")
flavia_p_falcon_db:setLongDescription("Popular among traders and smugglers, the Flavia is a small cargo and passenger transport. It's cheaper than a freighter for small loads and short distances, and is often used to carry high-value cargo discreetly.\n\nThe Flavia Falcon is a Flavia transport modified for faster flight, and adds rear-mounted lasers to keep enemies off its back.\n\nThe Flavia P.Falcon has a nuclear-capable rear-facing weapon tube and a warp drive.")
flavia_p_falcon_db:setKeyValue("Class","Frigate")
flavia_p_falcon_db:setKeyValue("Sub-class","Cruiser: Light Transport")
flavia_p_falcon_db:setKeyValue("Size","80")
flavia_p_falcon_db:setKeyValue("Shield","70/70")
flavia_p_falcon_db:setKeyValue("Hull","100")
flavia_p_falcon_db:setKeyValue("Repair Crew",8)
flavia_p_falcon_db:setKeyValue("Warp Speed","30 U/min") --500
flavia_p_falcon_db:setKeyValue("Sensor Ranges","Long: 40 U / Short: 5 U")
flavia_p_falcon_db:setKeyValue("Move speed","3.6 U/min") --60
flavia_p_falcon_db:setKeyValue("Turn speed","10 deg/sec")
flavia_p_falcon_db:setKeyValue("Beam weapon 170:40","Rng:1.2 Dmg:6 Cyc:6")
flavia_p_falcon_db:setKeyValue("Beam weapon 190:40","Rng:1.2 Dmg:6 Cyc:6")
flavia_p_falcon_db:setKeyValue("Tube 180","20 sec")
flavia_p_falcon_db:setKeyValue("Storage Homing","3")
flavia_p_falcon_db:setKeyValue("Storage Nuke","1")
flavia_p_falcon_db:setKeyValue("Storage Mine","1")
flavia_p_falcon_db:setKeyValue("Storage HVLI","5")
flavia_p_falcon_db:setImage("radar_tug.png")
-- Hathcock
frigate_stock_db:addEntry("Hathcock")
local hathcock_db = queryScienceDatabase("Ships","Mainstream","Frigate","Hathcock")
hathcock_db:setLongDescription("Long range narrow beam and some point defense beams, broadside missiles. Agile for a frigate")
hathcock_db:setKeyValue("Class","Frigate")
hathcock_db:setKeyValue("Sub-class","Cruiser: Sniper")
hathcock_db:setKeyValue("Size","80")
hathcock_db:setKeyValue("Shield","70/70")
hathcock_db:setKeyValue("Hull","120")
hathcock_db:setKeyValue("Repair Crew",2)
hathcock_db:setKeyValue("Jump Range","6 - 60 U") --modified for scenario
hathcock_db:setKeyValue("Sensor Ranges","Long: 35 U / Short: 6 U")
hathcock_db:setKeyValue("Move speed","3 U/min") --50
hathcock_db:setKeyValue("Turn speed","15 deg/sec")
hathcock_db:setKeyValue("Beam weapon 0:4","Rng:1.4 Dmg:4 Cyc:6")
hathcock_db:setKeyValue("Beam weapon 0:20","Rng:1.2 Dmg:4 Cyc:6")
hathcock_db:setKeyValue("Beam weapon 0:60","Rng:1.0 Dmg:4 Cyc:6")
hathcock_db:setKeyValue("Beam weapon 0:90","Rng:0.8 Dmg:4 Cyc:6")
hathcock_db:setKeyValue("Tube 270","15 sec")
hathcock_db:setKeyValue("Tube 90","15 sec")
hathcock_db:setKeyValue("Storage Homing","4")
hathcock_db:setKeyValue("Storage Nuke","1")
hathcock_db:setKeyValue("Storage EMP","2")
hathcock_db:setKeyValue("Storage HVLI","8")
hathcock_db:setImage("radar_piranha.png")
-- Nautilus
frigate_stock_db:addEntry("Nautilus")
local nautilus_db = queryScienceDatabase("Ships","Mainstream","Frigate","Nautilus")
nautilus_db:setLongDescription("Small mine laying vessel with minimal armament, shields and hull")
nautilus_db:setKeyValue("Class","Frigate")
nautilus_db:setKeyValue("Sub-class","Mine Layer")
nautilus_db:setKeyValue("Size","80")
nautilus_db:setKeyValue("Shield","60/60")
nautilus_db:setKeyValue("Hull","100")
nautilus_db:setKeyValue("Repair Crew",4)
nautilus_db:setKeyValue("Jump Range","5 - 70 U") --modified for scenario
nautilus_db:setKeyValue("Sensor Ranges","Long: 22 U / Short: 4 U")
nautilus_db:setKeyValue("Move speed","6 U/min") --100
nautilus_db:setKeyValue("Turn speed","10 deg/sec")
nautilus_db:setKeyValue("Beam weapon 35:90","Rng:1 Dmg:6 Cyc:6 Tur:6")
nautilus_db:setKeyValue("Beam weapon 325:90","Rng:1 Dmg:6 Cyc:6 Tur:6")
nautilus_db:setKeyValue("Tube 180","10 sec / Mine")
nautilus_db:setKeyValue(" Tube 180","10 sec / Mine")
nautilus_db:setKeyValue(" Tube 180","10 sec / Mine")
nautilus_db:setKeyValue("Storage Mine","12")
nautilus_db:setImage("radar_tug.png")
-- Phobos M3P
frigate_stock_db:addEntry("Phobos M3P")
local phobos_m3p_db = queryScienceDatabase("Ships","Mainstream","Frigate","Phobos M3P")
phobos_m3p_db:setLongDescription("Player variant of the Phobos M3. Not as strong as the Atlantis, but has front firing tubes, making it an easier to use ship in some scenarios.")
phobos_m3p_db:setKeyValue("Class","Frigate")
phobos_m3p_db:setKeyValue("Sub-class","Cruiser")
phobos_m3p_db:setKeyValue("Size","80")
phobos_m3p_db:setKeyValue("Shield","100/100")
phobos_m3p_db:setKeyValue("Hull","200")
phobos_m3p_db:setKeyValue("Repair Crew",3)
phobos_m3p_db:setKeyValue("Warp Speed","54 U/min") --900 (added for scenario)
phobos_m3p_db:setKeyValue("Sensor Ranges","Long: 25 U / Short: 5 U")
phobos_m3p_db:setKeyValue("Move speed","4.8 U/min") --80
phobos_m3p_db:setKeyValue("Turn speed","10 deg/sec")
phobos_m3p_db:setKeyValue("Beam weapon 345:90","Rng:1.2 Dmg:6 Cyc:8")
phobos_m3p_db:setKeyValue("Beam weapon 15:90","Rng:1.2 Dmg:6 Cyc:8")
phobos_m3p_db:setKeyValue("Tube 359","10 sec")
phobos_m3p_db:setKeyValue("Tube 1","10 sec")
phobos_m3p_db:setKeyValue("Tube 180","10 sec / Mine")
phobos_m3p_db:setKeyValue("Storage Homing","10")
phobos_m3p_db:setKeyValue("Storage Nuke","2")
phobos_m3p_db:setKeyValue("Storage Mine","4")
phobos_m3p_db:setKeyValue("Storage EMP","3")
phobos_m3p_db:setKeyValue("Storage HVLI","20")
phobos_m3p_db:setImage("radar_cruiser.png")
-- Piranha
frigate_stock_db:addEntry("Piranha")
local piranha_db = queryScienceDatabase("Ships","Mainstream","Frigate","Piranha")
piranha_db:setLongDescription("This combat-specialized Piranha F12 adds mine-laying tubes, combat maneuvering systems, and a jump drive.")
piranha_db:setKeyValue("Class","Frigate")
piranha_db:setKeyValue("Sub-class","Cruiser: Light Artillery")
piranha_db:setKeyValue("Size","80")
piranha_db:setKeyValue("Shield","70/70")
piranha_db:setKeyValue("Hull","120")
piranha_db:setKeyValue("Repair Crew",2)
piranha_db:setKeyValue("Jump Range","5 - 50 U")
piranha_db:setKeyValue("Sensor Ranges","Long: 25 U / Short: 6 U")
piranha_db:setKeyValue("Move speed","3.6 U/min") --60
piranha_db:setKeyValue("Turn speed","10 deg/sec")
piranha_db:setKeyValue("Large Tube 270","8 sec / Homing,HVLI")
piranha_db:setKeyValue("Tube 270","8 sec")
piranha_db:setKeyValue(" LargeTube 270","8 sec / Homing,HVLI")
piranha_db:setKeyValue("Large Tube 90","8 sec / Homing,HVLI")
piranha_db:setKeyValue("Tube 90","8 sec")
piranha_db:setKeyValue(" LargeTube 90","8 sec / Homing,HVLI")
piranha_db:setKeyValue("Tube 170","8 sec / Mine")
piranha_db:setKeyValue("Tube 190","8 sec / Mine")
piranha_db:setKeyValue("Storage Homing","12")
piranha_db:setKeyValue("Storage Nuke","6")
piranha_db:setKeyValue("Storage Mine","8")
piranha_db:setKeyValue("Storage HVLI","20")
piranha_db:setImage("radar_piranha.png")
-- Repulse
frigate_stock_db:addEntry("Repulse")
local repulse_db = queryScienceDatabase("Ships","Mainstream","Frigate","Repulse")
repulse_db:setLongDescription("A Flavia P. Falcon with better hull and shields, a jump drive, two turreted beams covering both sides and a forward and rear tube. The nukes and mines are gone")
repulse_db:setKeyValue("Class","Frigate")
repulse_db:setKeyValue("Sub-class","Cruiser: Armored Transport")
repulse_db:setKeyValue("Size","80")
repulse_db:setKeyValue("Shield","80/80")
repulse_db:setKeyValue("Hull","120")
repulse_db:setKeyValue("Repair Crew",8)
repulse_db:setKeyValue("Jump Range","5 - 50 U")
repulse_db:setKeyValue("Sensor Ranges","Long: 38 U / Short: 5 U")
repulse_db:setKeyValue("Move speed","3.3 U/min") --55
repulse_db:setKeyValue("Turn speed","9 deg/sec")
repulse_db:setKeyValue("Beam weapon 90:200","Rng:1.2 Dmg:5 Cyc:6")
repulse_db:setKeyValue("Beam weapon 270:200","Rng:1.2 Dmg:5 Cyc:6")
repulse_db:setKeyValue("Tube 0","20 sec")
repulse_db:setKeyValue("Tube 180","20 sec")
repulse_db:setKeyValue("Storage Homing","4")
repulse_db:setKeyValue("Storage HVLI","6")
repulse_db:setImage("radar_tug.png")
---- Corvettes
local corvette_stock_db = stock_db:addEntry("Corvette")
corvette_stock_db:setLongDescription(generic_corvette_description)
-- Atlantis
corvette_stock_db:addEntry("Atlantis")
local atlantis_db = queryScienceDatabase("Ships","Mainstream","Corvette","Atlantis")
atlantis_db:setLongDescription("A refitted Atlantis X23 for more general tasks. The large shield system has been replaced with an advanced combat maneuvering systems and improved impulse engines. Its missile loadout is also more diverse. Mistaking the modified Atlantis for an Atlantis X23 would be a deadly mistake.")
atlantis_db:setKeyValue("Class","Corvette")
atlantis_db:setKeyValue("Sub-class","Destroyer")
atlantis_db:setKeyValue("Size","200")
atlantis_db:setKeyValue("Shield","200/200")
atlantis_db:setKeyValue("Hull","250")
atlantis_db:setKeyValue("Repair Crew",3)
atlantis_db:setKeyValue("Jump Range","5 - 50 U")
atlantis_db:setKeyValue("Sensor Ranges","Long: 30 U / Short: 5 U")
atlantis_db:setKeyValue("Move speed","5.4 U/min") --100
atlantis_db:setKeyValue("Turn speed","10 deg/sec")
atlantis_db:setKeyValue("Beam weapon 340:100","Rng:1.5 Dmg:8 Cyc:6")
atlantis_db:setKeyValue("Beam weapon 20:100","Rng:1.5 Dmg:8 Cyc:6")
atlantis_db:setKeyValue("Tube 270","10 sec")
atlantis_db:setKeyValue(" Tube 270","10 sec")
atlantis_db:setKeyValue("Tube 90","10 sec")
atlantis_db:setKeyValue(" Tube 90","10 sec")
atlantis_db:setKeyValue("Tube 180","10 sec / Mine")
atlantis_db:setKeyValue("Storage Homing","12")
atlantis_db:setKeyValue("Storage Nuke","4")
atlantis_db:setKeyValue("Storage Mine","8")
atlantis_db:setKeyValue("Storage EMP","6")
atlantis_db:setKeyValue("Storage HVLI","20")
atlantis_db:setImage("radar_dread.png")
-- Benedict
corvette_stock_db:addEntry("Benedict")
local benedict_db = queryScienceDatabase("Ships","Mainstream","Corvette","Benedict")
benedict_db:setLongDescription("Benedict is Jump Carrier with a shorter range, but with stronger shields and hull and with minimal armament")
benedict_db:setKeyValue("Class","Corvette")
benedict_db:setKeyValue("Sub-class","Freighter/Carrier")
benedict_db:setKeyValue("Size","200")
benedict_db:setKeyValue("Shield","70/70")
benedict_db:setKeyValue("Hull","200")
benedict_db:setKeyValue("Repair Crew",6)
benedict_db:setKeyValue("Jump Range","5 - 90 U")
benedict_db:setKeyValue("Sensor Ranges","Long: 30 U / Short: 5 U")
benedict_db:setKeyValue("Move speed","3.6 U/min") --60
benedict_db:setKeyValue("Turn speed","6 deg/sec")
benedict_db:setKeyValue("Beam weapon 0:90","Rng:1.5 Dmg:4 Cyc:6 Tur:6")
benedict_db:setKeyValue("Beam weapon 180:90","Rng:1.5 Dmg:4 Cyc:6 Tur:6")
benedict_db:setImage("radar_transport.png")
-- Crucible
corvette_stock_db:addEntry("Crucible")
local crucible_db = queryScienceDatabase("Ships","Mainstream","Corvette","Crucible")
crucible_db:setLongDescription("A number of missile tubes range around this ship. Beams were deemed lower priority, though they are still present. Stronger defenses than a frigate, but not as strong as the Atlantis")
crucible_db:setKeyValue("Class","Corvette")
crucible_db:setKeyValue("Sub-class","Popper")
crucible_db:setKeyValue("Size","80")
crucible_db:setKeyValue("Shield","160/160")
crucible_db:setKeyValue("Hull","160")
crucible_db:setKeyValue("Repair Crew",4)
crucible_db:setKeyValue("Warp Speed","45 U/min") --750
crucible_db:setKeyValue("Sensor Ranges","Long: 20 U / Short: 6 U")
crucible_db:setKeyValue("Move speed","4.8 U/min") --80
crucible_db:setKeyValue("Turn speed","15 deg/sec")
crucible_db:setKeyValue("Beam weapon 330:70","Rng:1 Dmg:5 Cyc:6")
crucible_db:setKeyValue("Beam weapon 30:70","Rng:1 Dmg:5 Cyc:6")
crucible_db:setKeyValue("Small Tube 0","8 sec / HVLI")
crucible_db:setKeyValue("Tube 0","8 sec / HVLI")
crucible_db:setKeyValue("Large Tube 0","8 sec / HVLI")
crucible_db:setKeyValue("Tube 270","8 sec")
crucible_db:setKeyValue("Tube 90","8 sec")
crucible_db:setKeyValue("Tube 180","8 sec / Mine")
crucible_db:setKeyValue("Storage Missiles","H:8 N:4 M:6 E:6 L:24")
crucible_db:setImage("radar_laser.png")
-- Kiriya
corvette_stock_db:addEntry("Kiriya")
local kiriya_db = queryScienceDatabase("Ships","Mainstream","Corvette","Kiriya")
kiriya_db:setLongDescription("Kiriya is Warp Carrier based on the jump carrier with stronger shields and hull and with minimal armament")
kiriya_db:setKeyValue("Class","Corvette")
kiriya_db:setKeyValue("Sub-class","Freighter/Carrier")
kiriya_db:setKeyValue("Size","200")
kiriya_db:setKeyValue("Shield","70/70")
kiriya_db:setKeyValue("Hull","200")
kiriya_db:setKeyValue("Repair Crew",6)
kiriya_db:setKeyValue("Warp Speed","45 U/min") --750
kiriya_db:setKeyValue("Sensor Ranges","Long: 35 U / Short: 5 U")
kiriya_db:setKeyValue("Move speed","3.6 U/min") --60
kiriya_db:setKeyValue("Turn speed","6 deg/sec")
kiriya_db:setKeyValue("Beam weapon 0:90","Rng:1.5 Dmg:4 Cyc:6 Tur:6")
kiriya_db:setKeyValue("Beam weapon 180:90","Rng:1.5 Dmg:4 Cyc:6 Tur:6")
kiriya_db:setImage("radar_transport.png")
-- Maverick
corvette_stock_db:addEntry("Maverick")
local maverick_db = queryScienceDatabase("Ships","Mainstream","Corvette","Maverick")
maverick_db:setLongDescription("A number of beams bristle from various points on this gunner. Missiles were deemed lower priority, though they are still present. Stronger defenses than a frigate, but not as strong as the Atlantis")
maverick_db:setKeyValue("Class","Corvette")
maverick_db:setKeyValue("Sub-class","Gunner")
maverick_db:setKeyValue("Size","80")
maverick_db:setKeyValue("Shield","160/160")
maverick_db:setKeyValue("Hull","160")
maverick_db:setKeyValue("Repair Crew",4)
maverick_db:setKeyValue("Warp Speed","48 U/min") --800
maverick_db:setKeyValue("Sensor Ranges","Long: 20 U / Short: 4 U")
maverick_db:setKeyValue("Move speed","4.8 U/min") --80
maverick_db:setKeyValue("Turn speed","15 deg/sec")
maverick_db:setKeyValue("Beam weapon 0:10","Rng:2 Dmg:6 Cyc:6")
maverick_db:setKeyValue("Beam weapon 340:90","Rng:1.5 Dmg:8 Cyc:6")
maverick_db:setKeyValue("Beam weapon 20:90","Rng:1.5 Dmg:8 Cyc:6")
maverick_db:setKeyValue("Beam weapon 290:40","Rng:1 Dmg:6 Cyc:4")
maverick_db:setKeyValue("Beam weapon 70:40","Rng:1 Dmg:6 Cyc:4")
maverick_db:setKeyValue("Beam weapon 180:180","Rng:.8 Dmg:4 Cyc:6 Tur:.5")
maverick_db:setKeyValue("Tube 270","8 sec")
maverick_db:setKeyValue("Tube 90","8 sec")
maverick_db:setKeyValue("Tube 180","8 sec / Mine")
maverick_db:setKeyValue("Storage Missiles","H:6 N:2 M:2 E:4 L:10")
maverick_db:setImage("radar_laser.png")
-- Player Cruiser
corvette_stock_db:addEntry("Player Cruiser")
local player_cruiser_db = queryScienceDatabase("Ships","Mainstream","Corvette","Player Cruiser")
player_cruiser_db:setLongDescription("A fairly standard cruiser. Stronger than average beams, weaker than average shields, farther than average jump drive range")
player_cruiser_db:setKeyValue("Class","Corvette")
player_cruiser_db:setKeyValue("Size","200")
player_cruiser_db:setKeyValue("Shield","80/80")
player_cruiser_db:setKeyValue("Hull","200")
player_cruiser_db:setKeyValue("Repair Crew",3)
player_cruiser_db:setKeyValue("Jump Range","5 - 80 U") --modified for scenario
player_cruiser_db:setKeyValue("Sensor Ranges","Long: 30 U / Short: 5 U")
player_cruiser_db:setKeyValue("Move speed","5.4 U/min") --90
player_cruiser_db:setKeyValue("Turn speed","10 deg/sec")
player_cruiser_db:setKeyValue("Beam weapon 345:90","Rng:1 Dmg:10 Cyc:6")
player_cruiser_db:setKeyValue("Beam weapon 15:90","Rng:1 Dmg:10 Cyc:6")
player_cruiser_db:setKeyValue("Tube 355","8 sec")
player_cruiser_db:setKeyValue("Tube 5","8 sec")
player_cruiser_db:setKeyValue("Tube 180","8 sec / Mine")
player_cruiser_db:setKeyValue("Storage Homing","12")
player_cruiser_db:setKeyValue("Storage Nuke","4")
player_cruiser_db:setKeyValue("Storage Mine","8")
player_cruiser_db:setKeyValue("Storage EMP","6")
player_cruiser_db:setImage("radar_cruiser.png")
-- Player Missile Cruiser
corvette_stock_db:addEntry("Player Missile Cr.")
local player_missile_cruiser_db = queryScienceDatabase("Ships","Mainstream","Corvette","Player Missile Cr.")
player_missile_cruiser_db:setLongDescription("It's all about the missiles for this model. Broadside tubes shoot homing missiles (30!), front, homing, EMP and nuke. Comparatively weak shields, especially in the rear. Sluggish impulse drive.")
player_missile_cruiser_db:setKeyValue("Class","Corvette")
player_missile_cruiser_db:setKeyValue("Size","100")
player_missile_cruiser_db:setKeyValue("Shield","110/70")
player_missile_cruiser_db:setKeyValue("Hull","200")
player_missile_cruiser_db:setKeyValue("Repair Crew",3)
player_missile_cruiser_db:setKeyValue("Warp Speed","48 U/min") --800
player_missile_cruiser_db:setKeyValue("Sensor Ranges","Long: 35 U / Short: 6 U")
player_missile_cruiser_db:setKeyValue("Move speed","3.6 U/min") --60
player_missile_cruiser_db:setKeyValue("Turn speed","8 deg/sec")
player_missile_cruiser_db:setKeyValue("Tube 0","8 sec")
player_missile_cruiser_db:setKeyValue(" Tube 0","8 sec")
player_missile_cruiser_db:setKeyValue("Tube 90","8 sec / Homing")
player_missile_cruiser_db:setKeyValue(" Tube 90","8 sec / Homing")
player_missile_cruiser_db:setKeyValue("Tube 270","8 sec / Homing")
player_missile_cruiser_db:setKeyValue(" Tube 270","8 sec / Homing")
player_missile_cruiser_db:setKeyValue("Tube 180","8 sec / Mine")
player_missile_cruiser_db:setKeyValue("Storage Homing","30")
player_missile_cruiser_db:setKeyValue("Storage Nuke","8")
player_missile_cruiser_db:setKeyValue("Storage Mine","12")
player_missile_cruiser_db:setKeyValue("Storage EMP","10")
player_missile_cruiser_db:setImage("radar_cruiser.png")
---------------------------
-- Custom player ships --
---------------------------
local prototype_db = ships_db:addEntry("Prototype")
prototype_db = queryScienceDatabase("Ships","Prototype")
prototype_db:setLongDescription("Prototype ships are those that are under development or are otherwise considered experimental. Some have been through several iterations after being tested in the field. Many have been scrapped due to poor design, the ravages of space or perhaps the simple passage of time.")
prototype_db:setImage("gui/icons/station-engineering.png")
---- Starfighters
local fighter_prototype_db = prototype_db:addEntry("Starfighter")
fighter_prototype_db:setLongDescription(generic_starfighter_description)
-- Striker LX
fighter_prototype_db:addEntry("Striker LX")
local striker_lx_db = queryScienceDatabase("Ships","Prototype","Starfighter","Striker LX")
striker_lx_db:setLongDescription("The Striker is the predecessor to the advanced striker, slow but agile, but does not do an extreme amount of damage, and lacks in shields. The Striker LX is a modification of the Striker: stronger shields, more energy, jump drive (vs none), faster impulse, slower turret, two rear tubes (vs none)")
striker_lx_db:setKeyValue("Class","Starfighter")
striker_lx_db:setKeyValue("Sub-class","Patrol")
striker_lx_db:setKeyValue("Size","140")
striker_lx_db:setKeyValue("Shield","100/100")
striker_lx_db:setKeyValue("Hull","100")
striker_lx_db:setKeyValue("Repair Crew",3)
striker_lx_db:setKeyValue("Battery Capacity",600)
striker_lx_db:setKeyValue("Jump Range","2 - 20 U")