This repository has been archived by the owner on Jun 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WE_Blackmarket.xml
686 lines (563 loc) · 18.9 KB
/
WE_Blackmarket.xml
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
<?xml version="1.0" encoding="utf-8"?>
<TranscendenceModule>
<!-- STATION TYPES -->
<!-- Black Market Station -->
<StationType UNID="&stBlackMarketStation;"
name= "Black Market station"
sovereign= "&svBlackMarket;"
dockScreen= "Main"
abandonedScreen= "&dsAbandonedStation;"
dockingPorts= "8"
canAttack= "true"
multiHull= "true"
armorID= "&itBlastPlate;"
hitPoints= "250"
repairRate= "3"
fireRateAdj= "20"
explosionType= "&vtThermoExplosion1;"
ejectaType= "&vtWreckEjecta;"
attributes= "blackMarket, friendly, envEarth, envAvoidsAir, populated"
levelFrequency= "-uccu v---- ----- ----- -----"
locationCriteria= "+planetary,-asteroids"
>
<Image imageID="&rsStations3;" imageX="128" imageY="0" imageWidth="128" imageHeight="128"/>
<Ships>
<Ship count="1" class="&scMolotok;" orders="guard"/>
<Lookup count="1d3+1" table="&tbBlackMarketShips;"/>
</Ships>
<Reinforcements minShips="4">
<Table>
<Ship chance="50" count="1" class="&scMolotok;" orders="guard"/>
<Lookup chance="50" count="1d2" table="&tbBlackMarketShips;"/>
</Table>
</Reinforcements>
<Devices>
<Device deviceID="&itSlamCannon;" omnidirectional="true" posAngle="45" posRadius="60"/>
<Device deviceID="&itSlamCannon;" omnidirectional="true" posAngle="215" posRadius="60"/>
</Devices>
<Items>
<Item count="8d12" item="&itTempusSyrette;" />
<Item count="6d12" item="&itMartianNori;" />
<Item count="4d12" item="&itBooster;" />
<Item count="4d12" item="&itDeathDrugs;" />
<Lookup count="4d4" table="&trIllegalItems1;"/>
<Lookup count="2d4" table="&trIllegalItems2;"/>
<Lookup count="1d4" table="&trIllegalItems3;"/>
<Lookup count="2d4" table="&trMilitaryItem5;"/>
<!--<Lookup count="1d4" table="&trMilitaryItem8;"/>-->
<RandomItem count="2d4"
criteria= "ad +Illegal"
level= "6"
levelCurve= "3"
/>
<RandomItem count="8d12"
criteria= "m +Illegal"
level= "5"
levelCurve= "3"
/>
</Items>
<Events>
<OnBountyHunterCheck>
(if (objGetData gPlayerShip "blackMarketCrimeCost")
(block (bountyHunter)
(setq bountyHunter (sysCreateShip &scMolotok; (objGetNearestStargate gPlayerShip) &svBlackMarket;))
(shpOrderAttack bountyHunter gPlayerShip)
)
)
</OnBountyHunterCheck>
<OnCreate>
; Register timer event for bounty hunters
(sysAddObjRecurringTimerEvent (random 4000 5000) gSource "OnBountyHunterCheck")
</OnCreate>
<OnDestroy>
(intBlackMarketOnDestroy 250000)
</OnDestroy>
</Events>
<DockScreens>
<Main>
<Panes>
<Default
desc= "The docking bay is guarded by two men with heavy weapons. They check you out and then step aside to let you in.">
<Actions>
<Action name="Talk to station boss" key="T">
(block Nil
(setq gPrevScreen "Main")
(scrShowScreen gScreen "Boss")
)
</Action>
<Action name="Buy items" default="1" key="B">
(comShowBuyScreen
intBlackMarketBuyPrice ; items sold to player
)
</Action>
<Action name="Sell items" key="S">
(comShowSellScreen
intBlackMarketSellPrice ; items bought from player
Nil ; obsolete
'(
Nil ; title
100000 ; max price per item
)
)
</Action>
<Action name="Dock Services" key="D">
<ShowPane pane="DockServices"/>
</Action>
<Action name="Undock" cancel="1" key="U">
<Exit/>
</Action>
</Actions>
</Default>
<DockServices
desc= "You are at the docking services terminal.">
<Actions>
<Action name="Refuel" imageIndex="1" key="R">
(block Nil
(intSetCompatibleFuelEx '((&itHeliumAssembly; 93) (&itHelium3FuelRod; 92)))
(scrShowScreen gScreen "&dsRefuel;")
)
</Action>
<Action name="Upgrade cargo hold" key="C">
(block Nil
(setq gCost 2200)
(setq gItem (itmCreate &itSmugglersCargoHold; 1))
(setq gCheckMilitaryID Nil)
(scrShowScreen gScreen "&dsInstallSpecificDevice;")
)
</Action>
<Action name="Done" cancel="1" key="D">
<ShowPane pane="Default"/>
</Action>
</Actions>
</DockServices>
</Panes>
</Main>
<Boss>
<InitialPane>
(switch
(ls (objGetData gPlayerShip "blackMarketLevel") 2)
"NoAccess"
(ls (objGetData gPlayerShip "blackMarketLevel") 4)
"MemberBoss"
;"LordBoss"
"MemberBoss"
)
</InitialPane>
<Panes>
<MemberBoss
desc= "You are escorted to Lord Mikho's outer office. But instead of finding him there, you see a young, dark-haired woman sitting at the desk. She looks at you slowly, perhaps trying to remember your name, "What can I do for you?"">
<Actions>
<Action name=""I want a mission."" default="1" key="M">
(switch
(objGetData gPlayerShip "blackMarketMission")
(scrShowPane gScreen "NoMissions")
(eq (objGetData gPlayerShip "blackMarketLevel") 2)
(scrShowPane gScreen "DeliveryMission")
(scrShowPane gScreen "NoMissions")
)
</Action>
<Action name=""I need a better weapon."" default="1" key="W">
(if (ls (objGetData gPlayerShip "blackMarketWeapon") (objGetData gPlayerShip "blackMarketLevel"))
(block (level)
(setq level (objGetData gPlayerShip "blackMarketLevel"))
(setq gCost 0)
(switch
(eq level 6)
(block Nil
(setq gItem (itmCreate &itRasiermesserLauncher; 1))
(setq gAmmo (itmCreate &itGotha400Seeker; 50))
)
(eq level 5)
(block Nil
(setq gItem (itmCreate &itHanzoBlaster; 1))
(setq gAmmo Nil)
)
(eq level 4)
(block Nil
(setq gItem (itmCreate &itDragonflyMissileSystem; 1))
(setq gAmmo (itmCreate &itDragonflyCartridge; 150))
)
(block Nil
(setq gItem (itmCreate &itMAGLauncher; 1))
(setq gAmmo (itmCreate &itZG24ClusterMAG; 100))
)
)
(setq gCheckMilitaryID Nil)
(scrShowPane gScreen "UpgradeWeaponComplete")
(scrShowScreen gScreen "&dsInstallSpecificDevice;")
)
(scrShowPane gScreen "NoUpgrade")
)
</Action>
<Action name=""I need better shields."" default="1" key="S">
(if (ls (objGetData gPlayerShip "blackMarketShields") (objGetData gPlayerShip "blackMarketLevel"))
(block (level)
(setq level (objGetData gPlayerShip "blackMarketLevel"))
(setq gCost 0)
(switch
(eq level 6)
(setq gItem (itmCreate &itPlasmaShieldGenerator; 1))
(eq level 5)
(setq gItem (itmCreate &itYoroiMX; 1))
(eq level 4)
(setq gItem (itmCreate &itYoroiS500; 1))
(eq level 3)
(setq gItem (itmCreate &itYoroiS100; 1))
(setq gItem (itmCreate &itClass3Deflector; 1))
)
(setq gCheckMilitaryID Nil)
(scrShowPane gScreen "UpgradeShieldsComplete")
(scrShowScreen gScreen "&dsInstallSpecificDevice;")
)
(scrShowPane gScreen "NoUpgrade")
)
</Action>
<Action name="Leave" cancel="1" key="L">
(scrShowScreen gScreen "Main")
</Action>
</Actions>
</MemberBoss>
<LordBoss
desc= "You try to see Lord Mikho, but he is indisposed.">
<Actions>
<Action name="Leave" cancel="1" key="L">
(scrShowScreen gScreen "Main")
</Action>
</Actions>
</LordBoss>
<NoAccess
desc= "You ask to see the station boss. Everyone turns to stare at you for a second, but then they go about their business and continue to ignore you.">
<Actions>
<Action name="Continue" cancel="1" default="1" key="C">
(scrShowScreen gScreen "Main")
</Action>
</Actions>
</NoAccess>
<NoMissions
desc= "The dark-haired woman frowns for a second, "I'm sorry, but we don't have any use for you right now."">
<Actions>
<Action name="Continue" cancel="1" default="1" key="C">
(scrShowScreen gScreen "Main")
</Action>
</Actions>
</NoMissions>
<NoUpgrade
desc= "The dark-haired woman rolls her eyes, "I'm sorry, but you'll just have to do with what you've got."">
<Actions>
<Action name="Continue" cancel="1" default="1" key="C">
(scrShowScreen gScreen "Main")
</Action>
</Actions>
</NoUpgrade>
<DeliveryMission>
<OnPaneInit>
(block Nil
(setq gDest "StK")
(scrSetDesc gScreen "The dark-haired woman looks down at some papers and says, \"As a matter of fact, I was thinking of you. We need you to deliver some cargo to St. Katharine's. Do you think you could do that?\"")
)
</OnPaneInit>
<Actions>
<Action name=""Yes, absolutely!"" default="1" key="Y">
(scrShowPane gScreen "AcceptDelivery")
</Action>
<Action name=""No, sorry."" cancel="1" key="N">
(scrShowPane gScreen "DeclineMission")
</Action>
</Actions>
</DeliveryMission>
<AcceptDelivery>
<OnPaneInit>
(switch
(eq gDest "StK")
(scrSetDesc gScreen "\"Take this container to the Victorian at the Commonwealth station in St. Katharine's Star. Do not take it through customs, obviously. Be careful and good luck!\"")
)
</OnPaneInit>
<Actions>
<Action name="Continue" cancel="1" default="1" key="C">
(block Nil
(objSetData gPlayerShip "blackMarketMission" gDest)
(objAddItem gPlayerShip (itmCreate &itBlackMarketContainer; 1))
(scrExitDock gScreen)
)
</Action>
</Actions>
</AcceptDelivery>
<DeclineMission
desc= "The dark-haired woman frowns for a second, "I'm sorry you feel that way. I will inform Lord Mikho."">
<Actions>
<Action name="Continue" cancel="1" default="1" key="C">
(scrShowScreen gScreen "Main")
</Action>
</Actions>
</DeclineMission>
<UpgradeWeaponComplete>
<OnPaneInit>
(if gResult
(scrSetDesc gScreen "The dark-haired woman smiles as the crew installs your new weapon: \"Enjoy your new toy.\"")
(scrSetDesc gScreen "The dark-haired woman frowns in disappointment.")
)
</OnPaneInit>
<Actions>
<Action name="Continue" cancel="1" default="1" key="C">
(block Nil
(if gResult
(block Nil
(objAddItem gPlayerShip gAmmo)
(objSetData gPlayerShip "blackMarketWeapon" (objGetData gPlayerShip "blackMarketLevel"))
)
)
(scrShowScreen gScreen "Main")
)
</Action>
</Actions>
</UpgradeWeaponComplete>
<UpgradeShieldsComplete>
<OnPaneInit>
(if gResult
(scrSetDesc gScreen "The dark-haired woman smiles as the crew installs your new shield generator: \"Enjoy your new toy.\"")
(scrSetDesc gScreen "The dark-haired woman frowns in disappointment.")
)
</OnPaneInit>
<Actions>
<Action name="Continue" cancel="1" default="1" key="C">
(block Nil
(if gResult
(objSetData gPlayerShip "blackMarketShields" (objGetData gPlayerShip "blackMarketLevel"))
)
(scrShowScreen gScreen "Main")
)
</Action>
</Actions>
</UpgradeShieldsComplete>
</Panes>
</Boss>
</DockScreens>
<DockingPorts>
<Port x="0" y="90" />
<Port x="0" y="-90" />
<Port x="60" y="60" />
<Port x="60" y="-60" />
<Port x="90" y="0" />
<Port x="-90" y="0" />
<Port x="-60" y="60" />
<Port x="-60" y="-60" />
</DockingPorts>
</StationType>
<!-- Black Market Shipyard -->
<StationType UNID="&stBlackMarketShipyard;"
name= "Black Market shipyard"
sovereign= "&svBlackMarket;"
dockScreen= "Main"
abandonedScreen= "&dsAbandonedStation;"
canAttack= "true"
multiHull= "true"
armorID= "&itBlastPlate;"
hitPoints= "500"
repairRate= "3"
shipRepairRate= "3"
fireRateAdj= "20"
explosionType= "&vtThermoExplosion2;"
ejectaType= "&vtWreckEjecta;"
attributes= "blackMarket, friendly, populated, envEarth, envAvoidsAir"
levelFrequency= "---uc crr-- ----- ----- -----"
locationCriteria= "+planetary,-asteroids"
enemyExclusionRadius="50"
>
<Image imageID="&rsStations5;" imageX="0" imageY="896" imageWidth="256" imageHeight="256"/>
<Ships>
<Ship count="2" class="&scMolotok;" orders="guard"/>
<Lookup count="1d3+1" table="&tbBlackMarketShips;"/>
</Ships>
<Reinforcements minShips="4">
<Table>
<Ship chance="50" count="1" class="&scMolotok;" orders="guard"/>
<Lookup chance="50" count="1d2" table="&tbBlackMarketShips;"/>
</Table>
</Reinforcements>
<Devices>
<Device deviceID="&itSlamCannon;" omnidirectional="true" posAngle="45" posRadius="60"/>
<Device deviceID="&itSlamCannon;" omnidirectional="true" posAngle="215" posRadius="60"/>
</Devices>
<Items>
<Item count="8d12" item="&itTempusSyrette;" />
<Item count="6d12" item="&itMartianNori;" />
<Item count="4d12" item="&itBooster;" />
<Item count="4d12" item="&itDeathDrugs;" />
<Lookup count="4d4" table="&trIllegalItems1;"/>
<Lookup count="2d4" table="&trIllegalItems2;"/>
<Lookup count="1d4" table="&trIllegalItems3;"/>
<Item count="20d20" item="&it800HexageneMAG;" />
<Item count="20d20" item="&itZG24ClusterMAG;" />
<Item count="20d20" item="&itDragonflyCartridge;" />
<Lookup count="2d4" table="&trMilitaryItem5;"/>
<Lookup count="1d4" table="&trMilitaryItem6;"/>
<Lookup chance="50" count="1d4" table="&trMilitaryItem7;"/>
<RandomItem count="5"
criteria= "ad +Illegal"
level= "6"
levelCurve= "3"
/>
<RandomItem count="20d20"
criteria= "m +Illegal"
level= "5"
levelCurve= "3"
/>
</Items>
<Events>
<OnBountyHunterCheck>
(if (objGetData gPlayerShip "blackMarketCrimeCost")
(block (bountyHunter)
(setq bountyHunter (sysCreateShip &scMolotok; (objGetNearestStargate gPlayerShip) &svBlackMarket;))
(shpOrderAttack bountyHunter gPlayerShip)
)
)
</OnBountyHunterCheck>
<OnCreate>
; Register timer event for bounty hunters
(sysAddObjRecurringTimerEvent (random 4000 5000) gSource "OnBountyHunterCheck")
</OnCreate>
<OnDestroy>
(intBlackMarketOnDestroy 500000)
</OnDestroy>
</Events>
<DockScreens>
<Main>
<Panes>
<Default
desc= "The docking bay is guarded by two men with heavy weapons. They check you out and then step aside to let you in.">
<Actions>
<Action name="Buy items" default="1" key="B">
(comShowBuyScreen
intBlackMarketBuyPrice ; items sold to player
Nil ; obsolete
'( "d" ; install devices
9 ; of level 6 (and below)
Nil ; no special tech modifiers
Nil ; check for military ID
20) ; install cost margin
)
</Action>
<Action name="Sell items" key="S">
(comShowSellScreen
intBlackMarketSellPrice ; items bought from player
Nil ; obsolete
'(
Nil ; title
100000 ; max price per item
)
)
</Action>
<Action name="Dock Services" key="D">
<ShowPane pane="DockServices"/>
</Action>
<Action name="Undock" cancel="1" key="U">
<Exit/>
</Action>
</Actions>
</Default>
<DockServices
desc= "You are at the docking services terminal.">
<Actions>
<Action name="Refuel" key="R">
(block Nil
(intSetCompatibleFuelEx
'((&itXenotiteFuelRod; 94)
(&itHeliumAssembly; 93)
(&itHelium3FuelRod; 92))
)
(scrShowScreen gScreen "&dsRefuel;")
)
</Action>
<Action name="Repair or replace armor" key="A" >
(block Nil
(setq gTechLevel 9)
(setq gArmorSegment 0)
(setq gCheckMilitaryID Nil)
(setq gMargin 110)
(scrShowScreen gScreen "&dsRepairArmor;")
)
</Action>
<Action name="Install device" key="D" >
(block Nil
(setq gTechLevel 9)
(setq gTechModifier Nil)
(setq gCheckMilitaryID Nil)
(setq gMargin 120)
(scrShowScreen gScreen "&dsInstallDevice;")
)
</Action>
<Action name="Remove device" key="V" >
(block Nil
(setq gMargin 120)
(scrShowScreen gScreen "&dsRemoveDevice;")
)
</Action>
<Action name="Upgrade cargo hold" key="C">
(block Nil
(setq gCost 2200)
(setq gItem (itmCreate &itSmugglersCargoHold; 1))
(setq gCheckMilitaryID Nil)
(scrShowScreen gScreen "&dsInstallSpecificDevice;")
)
</Action>
<Action name="Upgrade reactor" key="P" >
(block (maxPower)
(setq gCheckMilitaryID Nil)
; Figure out what reactor to upgrade to
(setq maxPower (objGetMaxPower gPlayerShip))
(switch
(ls maxPower 1000)
(block Nil
(setq gCost 10000)
(setq gItem (itmCreate &it100MWReactor; 1))
)
(ls maxPower 1500)
(block Nil
(setq gCost 20000)
(setq gItem (itmCreate &it150MWReactor; 1))
)
(ls maxPower 2500)
(block Nil
(setq gCost 60000)
(setq gItem (itmCreate &it250MWReactor; 1))
)
(setq gItem Nil)
)
; Install screen
(if gItem
(scrShowScreen gScreen "&dsInstallSpecificDevice;")
(scrShowPane gScreen "NoReactorUpgrade")
)
)
</Action>
<Action name="Done" cancel="1" key="N">
<ShowPane pane="Default"/>
</Action>
</Actions>
</DockServices>
<NoReactorUpgrade
desc= "The technology required to upgrade your reactor is not available at this station.">
<Actions>
<Action name="Continue" key="C" default="1" cancel="1">
<ShowPane pane="DockServices"/>
</Action>
</Actions>
</NoReactorUpgrade>
</Panes>
</Main>
</DockScreens>
<DockingPorts>
<Port x="53" y="146" />
<Port x="-92" y="100" />
<Port x="-148" y="-42" />
<Port x="-64" y="-134" />
<Port x="108" y="-116" />
<Port x="148" y="5" />
<Port x="62" y="43" />
<Port x="-19" y="76" />
<Port x="-67" y="12" />
<Port x="-72" y="-60" />
<Port x="12" y="-72" />
</DockingPorts>
</StationType>
</TranscendenceModule>