-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathscript.rpy
23193 lines (16373 loc) · 789 KB
/
script.rpy
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
## this is the main script file; everything starts here
## the goal is to offload as much declaring to the init module and jump
## back here for main control
## Declare characters used by this game.
#TO DO
##disable the main menu for easy iteration
label splashscreen:
$BM = Battle()
$ renpy.movie_cutscene("CG/OP.avi")
return
label quit:
python:
try:
renpy.quit(relaunch=False)
except:
pass
return
# The game starts here.
label start:
#####################################VARIABLE SET UP
call initialize from _call_initialize
call firstvariables from _call_firstvariables
#####################################VARIABLE SET UP
if config.developer:
menu:
"normal start":
$ pass
"test battle":
jump test_battle
stop music fadeout 3.0
play sound "Sound/buttonclick.wav"
scene bg cera:
pause 5.0
with Dissolve(2)
if store.Difficulty == 3:
$ show_message('Please select your difficulty.',0.5,0.8,2)
show screen gameprefs
window hide
play music "Music/Tides.ogg" loop
$ renpy.pause (0.5)
$ BM.lowest_difficulty = store.Difficulty
show introtext0:
yalign 0.12
xalign 0.5
pause
hide introtext0 with Dissolve(1)
show intro1:
yalign 0.12
xalign 0.5
alpha 0.0
linear 1.0 alpha 1.0
pause
hide intro1 with Dissolve(1)
show intro2:
yalign 0.12
xalign 0.5
alpha 0.0
linear 1.0 alpha 1.0
pause
hide intro2 with Dissolve(1)
show intro3:
yalign 0.12
xalign 0.5
alpha 0.0
linear 1.0 alpha 1.0
pause
hide intro3 with Dissolve(1)
show intro4:
yalign 0.12
xalign 0.5
alpha 0.0
linear 1.0 alpha 1.0
pause
hide intro4 with Dissolve(1)
show intro5:
yalign 0.12
xalign 0.5
alpha 0.0
linear 1.0 alpha 1.0
pause
hide intro5 with Dissolve(1)
show introtext1:
parallel:
xalign 0.35 yalign 0.4
easein 6.0 xalign 0.5
parallel:
alpha 0.0
linear 2.5 alpha 1.0
$ renpy.pause (2.0)
show introtext2:
parallel:
xalign 0.65 yalign 0.5
easein 6.0 xalign 0.5
parallel:
alpha 0.0
linear 2.5 alpha 1.0
$ renpy.pause (2.0)
show introtext3:
parallel:
xalign 0.35 yalign 0.6
easein 6.0 xalign 0.5
parallel:
alpha 0.0
linear 2.5 alpha 1.0
$ renpy.pause (8.0)
hide introtext1 with dissolve
hide introtext2 with dissolve
hide introtext3 with dissolve
$VNmode() #enables rollback
window show dissolve
"Shields leaned forward on his seat and spoke to his pilot. The pilot was obscured by his seat and Shields could only hear his burly voice humming to the tinny radio."
kay "How much further until we get there?"
pi "Just a moment now. Can't wait until you meet your girl, can you sir?"
kay "I haven't seen Ava since we were in high school. I doubt she even remembers me."
pi "The commander? Psh, not her! I mean the Sunrider. The newest ship in the fleet!"
pi "Here, let me turn the ship around and give you a view."
scene cg sunrider_drydock:
xalign 0.0
linear 20.0 xalign 0.8
with dissolve
"Shields leaned against his window and laid his eyes on the Sunrider."
"Colossal in size, but still sleek looking, Shields found her to his liking. The behemoth vessel stuck a deadly image, like a poised arrowhead at the ready."
pi "Aye, there, have a look at her. So advanced that the brass needed to train a new line of officers to fly her."
kay "She looks like a fine vessel."
pi "Just hang tight, captain. Won't be long now."
"The shuttle continued its docking approach. Shields sat tight as the shuttle neared the Sunrider and docked."
scene bg hangar
with dissolve
"After exiting the shuttle, Shields walked through the airlock and entered the Sunrider's hangar."
show ava uniform salute talk with dissolve
ava "Captain on deck!"
show ava uniform neutral neutral with dissolve
ava "Welcome aboard, captain. First Officer Ava Crescentia reporting for duty."
menu:
"At ease, commander.":
jump at_ease
"It's been awhile, Ava.":
jump its_been_awhile
label at_ease:
jump give_report
label its_been_awhile:
$ affection_ava += 1
show ava uniform neutral lookleft with dissolve
ava "Same to you, uh, captain."
kay "The last time we saw each other was your graduation in high school. I didn't ever dream that I'd ever become your commanding officer."
show ava uniform neutral neutral with dissolve
ava "Neither did I."
menu:
"I guess things have changed since then.":
jump things_have_changed
"It'll be just like old times again.":
jump old_times
label things_have_changed:
ava "I agree."
jump give_report
label old_times:
$ affection_ava += 1
kay "Anyways, don't be too awkward around me, alright? I'll be counting on you from now."
show ava uniform salute neutral with dissolve
ava "Understood captain."
kay "I'm not sure you understand..."
show ava uniform neutral neutral with dissolve
ava "Understand what?"
kay "The whole captain thing... It's just bizarre hearing you call me that."
ava "I do believe that is the correct protocol for a first officer, is it not?"
kay "Ah, never mind..."
jump give_report
label give_report:
kay "Give me a report of Sunrider's status."
show ava uniform alt neutral neutral with dissolve
ava "We've been working for the past two weeks testing her systems. She's prepped to go on your word, sir."
kay "Good. It sounds like High Command wants us out of here asap."
label give_report_menu:
menu:
"Tell me more about the Sunrider":
jump tell_more_Sunrider
"Tell me more about this orange alert.":
jump tell_more_orange_alert
"Let's move on. What's next on our agenda?":
jump give_report_move_on
label tell_more_Sunrider:
show ava uniform alt neutral neutral with dissolve
ava "She's the newest ship in the fleet. She's armed like a warship, but built like a carrier. We can field up to twelve ryders and also provide capital ship support for them."
ava "Her biggest asset is the Vanguard cannon. They took a gun from a battleship-class warship, modified it extensively, and put it on top of our ship. Still, it works like a charm and can rip holes through ships over twice as big as ours."
ava "Not only that, but the Sunrider can be flown with a crew of just 50 and has one of the most efficient warp drives in the fleet. We'll be able to jump across the galaxy in just days."
kay "Sounds like a fine vessel."
jump give_report_menu
label tell_more_orange_alert:
show ava uniform armscrossed neutral with dissolve
ava "Don't tell me you don't know. Rynar's surrendered to PACT just this morning."
kay "Already? That's another neutral world that's been taken by PACT."
ava "Not only that, but PACT's taken Minerva, Barona, and Gerald in the past three months. One neutral planet after another. What do you think that means?"
kay "Encirclement. We're next."
ava "Exactly. So that's why High Command's not taking any risks. If any hostiles enter our gravity well, we're to open fire first and ask questions later."
jump give_report_menu
label give_report_move_on:
show ava uniform alt neutral neutral with dissolve
ava "First, a tour of the ship."
kay "Oh good."
ava "As you've noticed, this is the Sunrider's hangar. We can store up to twelve ryders here."
kay "I don't see any ryders here. Where are they now?"
ava "We won't be receiving them until Wednesday. Once they're here though, you'll be able to access them and order equipment changes here."
ava "This is an interactive map of the Sunrider. You can use it to navigate around the ship."
ava "We're going to head up to the bridge, up above us on deck 1."
ava "Try using the map to navigate there. Make sure you click on the deck 1 tab first."
$ captaindeck = 2
$ ava_location = "bridge"
$ ava_event = "bridge_tour"
jump dispatch
label bridge_tour:
hide screen ship_map
scene bg bridge
show ava uniform alt neutral neutral:
xanchor 0.5 xpos 0.8
with dissolve
window show
ava "This is the Sunrider's main bridge. This is where you'll be commanding the ship."
kay "That's a pretty fancy star map in the middle."
ava "You can use that star map to plot our course and to warp to other systems."
ava "I'll also usually be here if you ever need me."
$ captaindeck = 1
$ ava_location = "engineering"
$ ava_event = "engineering_tour"
jump dispatch
label engineering_tour:
hide screen ship_map
scene bg engineering
show ava uniform alt neutral neutral:
xanchor 0.5 xpos 0.8
with dissolve
window show
ava "This is engineering. The ship's main reactor is located here and we can also use the lab to research and construct new equipment. Unfortunately, the research lab's not yet open."
kay "That's also going to be available on Wednesday?"
ava "Correct."
$ captaindeck = 1
$ ava_location = "messhall"
$ ava_event = "messhall_tour"
jump dispatch
label messhall_tour:
hide screen ship_map
scene bg messhall
show ava uniform alt neutral neutral:
xanchor 0.5 xpos 0.8
with dissolve
window show
ava "This is the ship's mess hall. We can come down here to eat and relax after work."
kay "Sounds good to me."
$ captaindeck = 0
$ ava_location = "captainsloft"
$ ava_event = "captainsloft_tour"
jump dispatch
label captainsloft_tour:
hide screen ship_map
scene bg captainsloft
show ava uniform alt neutral neutral:
xanchor 0.5 xpos 0.8
with dissolve
window show
ava "Finally, these are your personal quarters."
kay "Looks like I've moved up in life. Wow, it's almost like a loft in Cera City."
show ava uniform armscrossed looklefttalk with dissolve
ava "Please don't mess up your room too much, captain."
kay "I've already got some ideas on how to redecorate it."
show ava uniform handonhip neutral with dissolve
ava "You can come here to access your personal logs and other material. Furthermore, if a member of the crew needs your help with something, they'll be waiting outside of your door."
ava "You can use your map to walk around the ship. You're encouraged to interact with your crew mates whenever possible."
kay "Alright. A happy ship makes for a strong ship."
ava "And that concludes our tour. Like I said, I'll be in the bridge most of the time, so you can come to me if you need help."
kay "What's next?"
ava "I'm afraid we'll have to cut the formalities short, captain. Like I said, Command wants us out of dry dock as soon as possible."
ava "We are scheduled for our first live engine test. We'll be sailing port shortly and making one loop around the moon."
kay "Fine with me. Let's return to the bridge and see what the Sunrider's capable of."
scene bg bridge
show ava uniform handonhip neutral:
xalign 0.5
with screenwipe
play music "Music/WorldBuilder.ogg" fadein 1.5 fadeout 1.5
kay "All hands, this is your captain speaking."
kay "Man your stations. Activate the main reactor and light the engines. Momentarily, we'll begin a live test of our engines by sailing port and making one round to the moon."
kay "We are to enter orange alert as soon as we clear port. Raise shields and scan for any possible hostiles."
kay "I know this is just a test, but keep your guard up. I want everyone to be on their feet in case we run into any problems."
ava "Main reactor is coming awake, captain. Power is increasing."
kay "Wake our lady up, Ava. We're getting out of here."
show ava uniform order talk with dissolve
ava "Aye sir. Helmsman, light the engines."
show ava uniform handonhip neutral with dissolve
ava "Engineering reports the reactor is working within parameters."
ava "Power is increasing to the engines."
ava "Blast off in three."
ava "Two."
stop music fadeout 0.5
play sound "Sound/explosion1.wav"
scene bg bridge:
xalign 0.5
ease 0.025 xalign 0.3
ease 0.05 xalign 0.7
ease 0.025 xalign 0.5
repeat 8
show ava uniform handonhip neutral:
xalign 0.5
ease 0.025 xalign 0.3
ease 0.05 xalign 0.7
ease 0.025 xalign 0.5
repeat 8
hide ava uniform order talk with dissolve
ava "Ugh..."
kay "What the hell was that!?"
show ava uniform alt neutral angry with dissolve
ava "Checking status."
ava "Engineering reports the reactor core is still stable. No explosions reported in either deck 0 or 2."
ava "Captain, the only place that blast could have come from is outside."
kay "Outside!? As in-"
ava "Contact! PACT warp signatures detected!"
kay "What?"
ava "Missile boats! They jumped in right under our noses!"
kay "Red alert! Cancel the engine test!"
play sound "Sound/redalert.ogg"
play music "Music/Intruders.ogg"
scene bg bridgered
show ava uniform alt order angry
with dissolve
ava "Aye captain. All hands, battle stations! This is not a drill!"
kay "This is turning out to be one hell of a maiden flight. Ava, what's our weapon status?"
show ava uniform alt neutral mad with dissolve
ava "Limited. The vanguard cannon is still off line. We have flak turrets, saviors, and a few shots of hell darts."
kay "... ... ..."
ava "Captain... You're not seriously thinking of taking the Sunrider into battle, are you? We haven't even completed any of our engine tests, much less any munitions checks."
kay "No time like the present, Ava."
play sound "Sound/explosion1.wav"
scene bg bridgered:
xalign 0.5
ease 0.025 xalign 0.3
ease 0.05 xalign 0.7
ease 0.025 xalign 0.5
repeat 8
show ava uniform alt neutral mad:
xalign 0.5
ease 0.025 xalign 0.3
ease 0.05 xalign 0.7
ease 0.025 xalign 0.5
repeat 8
with dissolve
show ava uniform alt neutral mad:
xalign 0.5
with dissolve
kay "And from the sound of things, I don't think PACT's going to wait for us to finish our tests."
kay "Get this ship operational, double time."
show ava uniform alt order angry with dissolve
ava "Aye sir. Helmsman, all power to engines!"
ava "Warning, we have inbound one enemy!"
scene bg space1
show missileboatdrydock:
xpos 0.55 ypos 0.5
show parallax_ship1 behind missileboatdrydock
show parallax_ship2 behind missileboatdrydock
show parallax_ship3 behind missileboatdrydock
with screenwipe
"An enemy missile frigate took aim at the Sunrider. Captain Shields gritted his teeth as the Sunrider's engines sparked back to life - painfully slowly."
play sound "Sound/missile.ogg"
show missileboatmissile1:
xpos 0.6 ypos 0.4 additive 1.0
ease .5 xpos -0.1 ypos 1.0
repeat 3
pause 0.2
play sound1 "Sound/missile.ogg"
show missileboatmissile2:
xpos 0.62 ypos 0.43 additive 1.0
ease .5 xpos -0.1 ypos 1.0
repeat 3
pause 0.2
play sound2 "Sound/missile.ogg"
show missileboatmissile3 behind missileboatdrydock:
xpos 0.45 ypos 0.4 additive 1.0
ease .5 xpos -0.1 ypos 0.9
repeat 3
pause 0.2
play sound3 "Sound/missile.ogg"
show missileboatmissile4 behind missileboatdrydock:
xpos 0.46 ypos 0.4 additive 1.0
ease .5 xpos -0.1 ypos 0.9
repeat 3
pause 0.2
play sound4 "Sound/missile.ogg"
show missileboatmissile1:
xpos 0.6 ypos 0.6 additive 1.0
ease .5 xpos 0.1 ypos 1.1
repeat 3
pause 0.2
play sound5 "Sound/missile.ogg"
show missileboatmissile2 behind missileboatdrydock:
xpos 0.4 ypos 0.6 additive 1.0
ease .5 xpos 0.0 ypos 1.1
repeat 3
pause 0.2
play sound5 "Sound/missile.ogg"
kay "Ava...!"
scene bg black
show parallax_missile1
show parallax_missile2
show parallax_missile3
with screenwipe
play sound "Sound/missilefly.ogg"
show missileboatmissilelarge5:
xpos 1.2 ypos 0.43 zoom 0.04
ease 4 xpos 0.3 ypos 0.5 zoom 0.1
show missileboatmissilelarge6:
xpos 1.2 ypos 0.65 zoom 0.08
ease 4 xpos 0.5 ypos 0.63 zoom 0.1
show missileboatmissilelarge4:
xpos 1.2 ypos 0.23 zoom 0.3
ease 4 xpos 0.4 ypos 0.32 zoom 0.2
show missileboatmissilelarge8:
xpos 1.2 ypos 0.65 zoom 0.2
ease 4 xpos 0.21 ypos 0.90 zoom 0.3
show missileboatmissilelarge3:
xpos 1.2 ypos 0.76 zoom 0.4
ease 4 xpos 0.34 ypos 0.65 zoom 0.3
show missileboatmissilelarge7:
xpos 1.2 ypos 0.12 zoom 0.6
ease 4 xpos 0.21 ypos 0.23 zoom 0.4
show missileboatmissilelarge2:
xpos 1.2 ypos 0.56 zoom 0.6
ease 4 xpos 0.43 ypos 0.34 zoom 0.5
show missileboatmissilelarge1:
xpos 1.2 ypos 0 zoom 0.7
ease 4 xpos 0.23 ypos 0.45 zoom 0.6
pause 3
scene cg drydockdestroyed 0 with screenwipe
show missileboatmissile1:
xpos 1 ypos 0.3 additive 1.0 zoom 0.3
linear .3 xpos 0.65 ypos 0.4
repeat
$ renpy.pause (0.3)
play sound1 "Sound/explosion1.ogg"
show cg drydockdestroyed 1:
xalign 0.5
ease 0.025 xalign 0.3
ease 0.05 xalign 0.7
ease 0.025 xalign 0.5
repeat 8
show missileboatmissile2:
xpos 1 ypos 0.4 additive 1.0 zoom 0.3
linear .3 xpos 0.7 ypos 0.45
repeat 3
$ renpy.pause (0.3)
play sound2 "Sound/explosion1.ogg"
show cg drydockdestroyed 2:
xalign 0.5
ease 0.025 xalign 0.3
ease 0.05 xalign 0.7
ease 0.025 xalign 0.5
repeat 8
show missileboatmissile3:
xpos 0.8 ypos 0 additive 1.0 zoom 0.3
linear .3 xpos 0.5 ypos 0.2
$ renpy.pause (0.3)
play sound3 "Sound/explosion1.ogg"
show cg drydockdestroyed 3:
xalign 0.5
ease 0.025 xalign 0.3
ease 0.05 xalign 0.7
ease 0.025 xalign 0.5
repeat 8
show missileboatmissile4:
xpos 0.9 ypos 0 additive 1.0 zoom 0.3
linear .3 xpos 0.4 ypos 0.24
$ renpy.pause (0.3)
play sound4 "Sound/explosion2.ogg"
show cg drydockdestroyed 4:
xalign 0.5
ease 0.025 xalign 0.3
ease 0.05 xalign 0.7
ease 0.025 xalign 0.5
repeat 8
hide missileboatmissile1
$ renpy.pause (0.5)
hide missileboatmissile2
$ renpy.pause (0.5)
hide missileboatmissile3
$ renpy.pause (0.5)
hide missileboatmissile4
"Simultaneously as the frigate launched a swarm of missiles at the Sunrider, her engines roared to life, lurching the ship forward."
"The missiles struck the dry dock's supports exactly as the Sunrider flew out of the resulting fireball. Behind her, the dry dock collapsed in a chaos of steel and fire."
scene bg bridgered
show ava uniform alt neutral mad
with screenwipe
"Captain Shields breathed a sigh of relief while Ava looked utterly unaffected by the peril they were just in."
ava "We're in the clear. Sunrider is joining the fight."
kay "Fire weapons! Take these bastards out!"
label firstbatle:
play sound "Sound/battle.wav"
show battlewarning:
xpos 0.5 ypos 0.5 zoom 20
ease 0.5 zoom 1
pause 0.5
play sound "Sound/drum.ogg"
scene bg bridgered:
xalign 0.5
ease 0.025 xalign 0.45
ease 0.05 xalign 0.55
ease 0.025 xalign 0.5
repeat 2
show ava uniform alt neutral mad:
xalign 0.5
ease 0.025 xalign 0.45
ease 0.05 xalign 0.55
ease 0.025 xalign 0.5
repeat 2
show battlewarning:
xpos 0.5 ypos 0.5
$ renpy.pause(2)
window hide
hide bg bridgered
hide ava
hide battlewarning
call mission1_inits from _call_mission1_inits
$ BM.mission = 1 #this sets the label to loop on. in this case it will be mission1
$ battle1_check1 = False #without this you would see the dialogue over and over again all the time
jump battle_start #jumps to mission1 automatically thanks to setting BM.mission to 1
label mission1:
#an example of scripted dialogue inside the battle
if not battle1_check1: #if you don't check for a flag like this you'll see this dialogue every loop.
$BM.draggable = False #this makes clicking to advance text work but you can't drag the battlefield around anymore
show ava uniform alt neutral neutral onlayer screens:
xzoom -1 xpos 0.2
with dissolve #the onlayer part is required to make ava visible on top of the battle_screen
ava "Welcome to the tactical screen, captain. From here, you can issue orders to the crew during battle."
ava "In front, you see the battle grid. This grid shows where friendlies and enemies are positioned on the battlefield."
ava "You may click and drag the left mouse button move the camera around the battle grid. Further, you can use the mouse wheel to zoom in and out."
ava "To issue an order to a unit, simply select an unit under your command, indicated by the blue ring. Then you may either order the unit to move to another grid, or to use an attack."
ava "Moving and attacking expends energy. Each unit has a finite number of energy points. Once all of the units under your command no longer have enough energy to act, you must end your turn."
ava "PACT units are indicated by the red ring. Your current objective is to eliminate all PACT units from the map."
ava "The Sunrider is armed with a comprehensive suite of weapons to fulfill this task."
ava "Laser based weapons have the longest range, but deal little damage. Kinetic based weapons have short range, but pack a punch. Missile based weapons have both long range and firepower, but are limited in supply, and so must be used wisely."
ava "Use the Sunrider's weapons to eliminate the PACT missile frigates. Good luck, captain."
hide ava onlayer screens with dissolve #onlayer is also required here because otherwise the hide statement can't find the right image
$ battle1_check1 = True #this ensures you see this dialogue only once
$ BM.draggable = True #this enables dragging the viewport again.
$BM.battle() #continue the battle
if BM.battlemode == True: #whenever this is set to False battle ends.
jump mission1 #loop back
else:
pass #continue down to the next label
label after_mission1:
hide screen battle_screen
hide screen commands
$ mission1_complete = True
play music "Music/WorldBuilder.ogg"
scene bg bridgered
show ava uniform handonhip neutral
with dissolve
window show
ava "Our forces are pushing the remaining PACT units back. The PACT frigates are no longer a threat."
kay "Join the rest of our fleet. Let's pitch in with the mop up operation."
ava "Aye captain."
kay "Two missile frigates down with hardly a scratch. Not bad for my first command, huh Ava?"
show ava uniform armscrossed smile with dissolve
ava "Hmph."
kay "Charge up trinities again. Let's give the rest of those missile frigates a parting gift before they warp out of Cera."
show ava uniform alt neutral neutral with dissolve
ava "Aye captain. Charging trinities."
kay "They must have been trying to warp in missile frigates and take out our ships before we could respond."
kay "Given how small the attacking force was though, I'd say the entire operation was-"
show ava uniform alt neutral angry with dissolve
stop music fadeout 1.5
ava "Alert! New contacts on scanner!"
kay "More missile frigates?"
ava "No... It's unlike anything I've ever seen before."
scene cg_legionwarpin_background with dissolve
$ renpy.predict("CG/legionwarpin_full.jpg")
$ renpy.predict("CG/legionwarpin_legion_warp.png")
play music "Music/Posthumus_Regium.ogg"
play sound1 "Sound/small_warpout.ogg"
show cg_legionwarpin_missilefrigate2 warp:
xpos 1940 ypos 200
ease 0.05 xpos 300 ypos 200
pause 0.05
show cg_legionwarpin_missilefrigate_warpflash:
xpos 300 ypos 200
show cg_legionwarpin_missilefrigate2 out
pause 0.15
play sound2 "Sound/small_warpout.ogg"
show cg_legionwarpin_missilefrigate1 warp:
xpos 1940 ypos 800
ease 0.05 xpos 700 ypos 900
pause 0.05
show cg_legionwarpin_missilefrigate_warpflash:
xpos 700 ypos 900
show cg_legionwarpin_missilefrigate1 out behind cg_legionwarpin_missilefrigate_warpflash
pause 0.15
play sound3 "Sound/small_warpout.ogg"
show cg_legionwarpin_missilefrigate3 warp behind cg_legionwarpin_missilefrigate2:
xpos 1950 ypos 100
ease 0.05 xpos 975 ypos 100
pause 0.05
show cg_legionwarpin_missilefrigate_warpflash behind cg_legionwarpin_missilefrigate2:
xpos 975 ypos 100
show cg_legionwarpin_missilefrigate3 out behind cg_legionwarpin_missilefrigate2
pause 0.2
play sound4 "Sound/large_warpout.ogg"
show cg_legionwarpin_legion warp behind cg_legionwarpin_missilefrigate1:
xpos 3000 ypos 600
ease 0.2 xpos 970 ypos 600
pause 0.2
scene cg_legionwarpin_legion_full:
xpos 0.505 ypos 0.56
pause 1.0
ease 0.5 zoom 0.4
ease 0.5 zoom 0.42
with flash
$ renpy.pause(4)
scene bg bridgered with dissolve
show ava uniform neutral surprise with dissolve
ava "Sweet mother of god..."
kay "What is that thing, Ava!? I don't remember PACT having anything that colossal!"
show ava uniform alt neutral mad with dissolve
ava "I'm just getting intel from HQ... It's the PACT Super-Dreadnought class warship Legion."
show ava uniform alt neutral angry with dissolve
ava "Over three kilometers in length... Armed with enough guns to take down a fleet three times our size by itself! That thing's Veniczar S. Arcadius' personal flagship!"
ava "HQ has issued a general retreat! All units are to fall back! The Prime Minister's Office has been advised to issue an immediate unconditional surrender!"
kay "Retreat? It's over already?"
show ava uniform alt order angry with dissolve
ava "Warning! I'm detecting a massive power surge coming from it... Wait! Brace for impact!"
scene legion_cera_fleetfire1 with dissolve
pause 0.5
play sound "Sound/legion_laser.ogg"
show legion_cera_fleetfire2 with screenwipereverse
hide legion_cera_fleetfire2 with screenwipereverse
scene cerafleet1 with dissolve
pause 0.5
play sound "Sound/explosion1.wav"
pause 0.1
play sound1 "Sound/explosion1.wav"
pause 0.1
play sound2 "Sound/explosion1.wav"
scene cerafleet2:
xalign 0.5
ease 0.025 xalign 0.40
ease 0.05 xalign 0.6
ease 0.025 xalign 0.5
repeat 8
$ renpy.pause(5)
scene bg bridgered with dissolve
show ava uniform neutral surpriseangry with dissolve
ava "What disgusting firepower..."
show ava uniform alt neutral angry with dissolve
ava "Battleships Gallant and the Behomian Maiden have been sunk! The Fearless has sustained severe damage!"
ava "Hull breaches reported on section 34-A! Our port trinities are no longer operative!"
kay "Break away! Our ship doesn't stand a chance against that!"
ava "The enemy warship is powering its weapons again!"
scene legion_cerafire1 with dissolve
play sound "Sound/legion_maincannon.ogg"
scene legion_cerafire2 with dissolvelong
pause 1.0
scene legion_cerafire3 with dissolvemedium
$ renpy.pause(1)
scene legion_cerafire4 with dissolve
show legion_cerafire5 with horizontalwipereversefast
hide legion_cerafire5 with horizontalwipereversefast
play sound1 "Sound/explosion1.wav"
play sound1 "Sound/explosion5.ogg"
scene legion_cerafire6:
xalign 0.5
ease 0.025 xalign 0.3
ease 0.05 xalign 0.7
ease 0.025 xalign 0.5
repeat 4
with dissolve
scene legion_cerafire7:
xalign 0.5
ease 0.025 xalign 0.3
ease 0.05 xalign 0.7
ease 0.025 xalign 0.5
repeat 15
with dissolve
$ renpy.pause(2.0)
scene bg bridgered
show ava uniform altneutral surpriseshout
with dissolve
kay "R-report!"
ava "The warship's nuked Cera City with that last shot. I'm still trying to figure out the scope of the damage, but..."
kay "U-unbelievable... To use a weapon of that magnitude on a civilian target..."
ava "More than a million civilians have been lost! All contact has been lost with our civilian and military leadership!"
ava "The rest of the Cera Space Force is scattering! We're going to get overwhelmed if we don't get out of here!"
ava "What are your orders, captain!?"
kay "... ... ..."
ava "CAPTAIN!!"
"The Sunrider began to pound as more enemies arrived. Shields wiped sweat off from his brows and saw that his hand was soaked."
"The pounding wasn't coming from the enemy. It was his own heart."
kay "Fall back..."
kay "... ... ..."
kay "Fall back! Warp to the nearest safe harbor!"
play music "Music/Coming_Soon_Part1.ogg" fadeout 1.5
show ava uniform alt neutral mad with dissolve
ava "Understood."
show ava uniform alt order angry with dissolve
ava "Navigator, punch in the fall back coordinates into the computer! Spool up the warp drive and prepare to jump!"
kay "... ... ..."
"Shields took a final look at his burning home world."
"This wasn't the end."
"He was going to be back. No matter the cost."
play music "Music/Coming_Soon_Part2.ogg" noloop fadeout 0.5
scene bg space_red
show sunrider_warpout 1:
xpos 0.5 ypos 0.5
show parallax_ship1 behind sunrider_warpout
show parallax_ship2 behind sunrider_warpout
show parallax_ship3 behind sunrider_warpout
with dissolve
pause 2.0
show sunrider_warpout_engine:
xpos 0.5 ypos 0.48
alpha 0
linear 5.0 alpha 1
show ava uniform alt neutral mad:
xpos 0.2 xzoom -1
with dissolve
ava "Warp out in 3...!"
$ renpy.pause(1.0)
ava "2..."
hide ava with dissolve
show captain order 1:
xpos 0.4
with dissolve
kay "... ... ..."
$ renpy.pause(1.0)
show captain order 2 with dissolve
kay "WARP!!!"
hide captain with dissolve
pause 1.5
play sound "Sound/large_warpout.ogg"
show sunrider_warpout_flash:
xpos 0.5 ypos 0.5
alpha 1.0
linear 0.5 alpha 0
hide sunrider_warpout_engine with dissolvequick
show sunrider_warpout 3:
ease 0.3 xpos -1.0 ypos 2.0
pause 0.5
window hide
play sound1 "Music/Posthumus_Regium_Finale.ogg" fadeout 0.5 fadein 0.5 noloop
scene bg black2 with dissolvelong
pause 0.1
show mainlogo:
subpixel True
xpos 0.5 ypos 0.5 zoom 1.0
ease 7.0 zoom 1.1
with dissolvelong
$ renpy.pause(9.0)
hide mainlogo with dissolvelong
pause 1.0
jump chap1_start
label chap1_start:
window show
scene bg captainsoffice with dissolve
play music "Music/The_Meteor.ogg"
"Shields sat at his office, writing his daily log."
kay "{i}It's been a week since the fall of Cera. Despite our best efforts, we have been unable to regroup with the rest of the Cera Space Force. The crew is starting to fear that we may be the only ones who got out of that massacre in one piece. To tell the truth, I'm beginning to believe that too.{/i}"
kay "{i}I don't know what we're going to do or what next step to take. All I know is that we're going to be alone from now.{/i}"
"The doorbell interrupted Shields' thoughts."
kay "Come in."
show ava uniform armscrossed neutral with dissolve
ava "Captain."
kay "Any news of the fleet?"
ava "None."
kay "... ... ..."
ava "The crew's beginning to get worried. We've been doing nothing but scanning for the past week. If a PACT force finds us, we're sitting ducks here."
menu:
"You're suggesting that we give up the search?":
jump giveupsearch
"That's agreed. I think we've wasted enough of our time here.":
jump wastedenoughtime
label giveupsearch:
show ava uniform alt neutral neutral with dissolve
ava "Long range scanners do not show any Cera signatures. What's left of our government surrendered and was dissolved six days ago. Most likely, what's left of the Cera Space Force has either gone rogue or been impressed into the PACT fleet."
jump shipwithoutflag
label wastedenoughtime:
show ava uniform alt neutral neutral with dissolve
ava "What's left of our government surrendered and was dissolved six days ago. I don't think there's any hope in looking for our military any more."
jump shipwithoutflag
label shipwithoutflag:
kay "Ava, tell me something. What's a ship without a flag?"
show ava uniform neutral looklefttalk with dissolve
ava "Sir? Well, a pirate ship."
menu:
"Pirate ship Sunrider. I like the sound of that.":
jump pirateshipsunrider
"I don't intend on becoming a pirate captain.":
jump notapiratecaptain
label pirateshipsunrider:
$ captain_moralist += 1
show ava uniform handonhip neutral with dissolve
ava "Are you suggesting we go rogue?"
kay "I don't think we have much of a choice. Our government's no more. We're going to have to go it alone from now on."
jump whatareyousuggesting
label notapiratecaptain:
$ captain_prince += 1
show ava uniform handonhip neutral with dissolve
ava "I wasn't suggesting we turn to piracy."
kay "Remember, Ava. The Sunrider will always be carrying the flag of Cera."