Code: Select all
<!-- Charon Pirate Cache -->
<StationType UNID="&stCharonPirateOutpost;"
name= "Charon Pirate Cache"
sovereign= "&svPirates;"
abandonedScreen= "&dsAbandonedStation;"
dockScreen= "Main"
dockingPorts= "8"
canAttack= "true"
armorID= "&itLightTitaniumPlate;"
maxHitPoints= "50"
hitPoints= "50"
fireRateAdj= "80"
ejectaType= "&vtWreckEjecta;"
attributes= "pirates,enemy,envAir,envEarth,envFire,envWater,populated"
levelFrequency= "cuv-- ----- ------ ----- -----"
locationCriteria= "-planet,-void"
>
<Image imageID="&rsStations1;" imageX="0" imageY="512" imageWidth="156" imageHeight="156"/>
<Devices>
<Device deviceID="&itLaserCannon;" omnidirectional="true"/>
</Devices>
<Ships>
<Table>
<Ship chance="85" count="1d4" class="&scCorsair;" orders="guard"/>
<Group chance="10">
<Ship count="1" class="&scCorsair;" orders="guard"/>
<Ship count="1" class="&scViking;" orders="guard"/>
</Group>
<Ship chance="5" count="1d2" class="&scViking;" orders="guard"/>
</Table>
</Ships>
<Items>
<Table>
<Lookup chance="40" count="1" table="&trConsumables2;"/>
<Lookup chance="40" count="1" table="&trMinorItem2;"/>
<Lookup chance="20" count="1" table="&trMajorItem2;"/>
</Table>
</Items>
<Encounters frequency="common">
<Table>
<Ship chance="75" count="1d3" class="&scCorsair;" orders="attack" />
<Ship chance="25" count="1" class="&scViking;" orders="attack" />
</Table>
</Encounters>
<DockScreens>
<Main
name= "=(objGetName gSource)"
>
<Panes>
<Default
desc= "You are in the docking bay of a pirate outpost.">
<Actions>
<Action name="Ask for the location of the nearest freighter" imageID="&rsItemListScreen;" imageIndex="1" default="1" key="A">
<ShowPane pane="AskForFreighter"/>
</Action>
<Action name="Refuel" imageID="&rsItemListScreen;" imageIndex="1" key="R">
(block Nil
(setq gPrevScreen "Main")
(setq gPrevPane "DockServices")
(intSetCompatibleFuel '((&itHeliumAssembly; 70) (&itHelium3FuelRod; 22)))
(scrShowScreen gScreen "&dsRefuel;")
)
</Action>
<Action name="Undock" imageID="&rsItemListScreen;" imageIndex="0" cancel="1" key="U">
<Exit/>
</Action>
</Actions>
</Default>
<AskForFreighter
desc= "No one seems to recognize your request. (not implemented)">
<Actions>
<Action name="Done" imageID="&rsItemListScreen;" imageIndex="0" cancel="1" key="D">
<ShowPane pane="Default"/>
</Action>
</Actions>
</AskForFreighter>
</Panes>
</Main>
</DockScreens>
</StationType>
</TranscendenceExtension>
The rest of the code is reproduced below so you can test it. Just put this code immediately before the code above which has the problem in it.
Code: Select all
<?xml version="1.0" ?>
<!DOCTYPE TranscendenceExtension
[<!ENTITY itPiratesROM "0xDF506001">
<!ENTITY scWolfenPiratePlayer "0xDF505011">
]>
<TranscendenceExtension UNID="0xDF506000" version="0.98d">
<!-- Pirates ROM (Thank you e___e)-->
<ItemType UNID="&itPiratesROM;"
name= "pirate imitation ROM"
level= "7"
value= "10000"
mass= "1"
frequency= "notrandom"
unknownType= "&itUnknownROM;"
modifiers= "Consumable; Info; Illegal"
description= "This program causes your ship to broadcast on pirate channels, identifying you as a Charon Pirate."
>
<Image imageID="&rsItems1;" imageX="192" imageY="96" imageWidth="96" imageHeight="96"/>
<Invoke>
(block Nil
(objSetSovereign gSource &svPirates;)
(objSendMessage gSource gSource "Program completed.")
)
</Invoke>
</ItemType>
<!-- Player Ship: Wolfen-class Gunship -->
<ShipClass UNID="&scWolfenPiratePlayer;"
manufacturer= ""
class= "Wolfen"
type= "Pirate Gunship"
score= "225"
techOrder= "biomech"
mass= "30"
reactorPower= "100"
fuelCapacity= "25000"
cargoSpace= "35"
thrust= "300"
rotationCount= "40"
maneuver= "2"
maxSpeed= "25"
maxArmor= "10000"
maxCargoSpace= "100"
maxDevices= "8"
maxNonWeapons= "4"
leavesWreck= "20"
>
<Armor>
<ArmorSection start="315" span="90" armorID="&itLightPlasteelPlate;" areaSet="0,2" />
<ArmorSection start="225" span="90" armorID="&itLightPlasteelPlate;" areaSet="3,4" />
<ArmorSection start="45" span="90" armorID="&itLightPlasteelPlate;" areaSet="7,13" />
<ArmorSection start="135" span="90" armorID="&itLightPlasteelPlate;" areaSet="1,6" />
</Armor>
<Devices>
<Device deviceID="&itDualLaserCannon;"/>
<Device deviceID="&itNAMIMissileLauncher;"/>
<Device deviceID="&itHullPlateIonizer;"/>
</Devices>
<Items>
<Item count="4d6" item="&itHelium3FuelRod;"/>
<Item count="4d6" item="&itKM100Missile;"/>
<Item count="1" item="&itPiratesROM;"/>
</Items>
<AISettings
fireRateAdj= "30"
fireAccuracy= "90"
perception= "4"
/>
<Image imageID="&rsWolfenGunship;" imageX="0" imageY="0" imageWidth="48" imageHeight="48" imageFrameCount="0" imageTicksPerFrame="0"/>
<DriveImages>
<NozzleImage imageID="&rsDriveExhaust2;" imageX="0" imageY="0" imageWidth="48" imageHeight="48" imageFrameCount="0" imageTicksPerFrame="0"/>
<NozzlePos x="-41" y="-8"/>
<NozzlePos x="-41" y="0"/>
<NozzlePos x="-41" y="8"/>
</DriveImages>
<PlayerSettings
desc= "Fast and deadly, the Wolfen is designed for combat. Though limited in cargo capacity, it has lots of room for more weapons."
largeImage= "&rsWolfenLarge;"
initialClass= "true"
startingSystem= "SE"
startingPos= "Start"
>
<ArmorDisplay>
<ArmorSection name="forward"
imageID="&rsWolfenArmor;"
imageX="0" imageY="0" imageWidth="52" imageHeight="15"
destX="42" destY="19" hpX="55" hpY="18"
nameY="8" nameBreakWidth="200" nameDestX="0" nameDestY="10" />
<ArmorSection name="starboard"
imageID="&rsWolfenArmor;"
imageX="75" imageY="0" imageWidth="23" imageHeight="69"
destX="94" destY="34" hpX="97" hpY="60"
nameY="30" nameBreakWidth="360" nameDestX="12" nameDestY="0" />
<ArmorSection name="port"
imageID="&rsWolfenArmor;"
imageX="52" imageY="0" imageWidth="23" imageHeight="69"
destX="19" destY="34" hpX="13" hpY="60"
nameY="52" nameBreakWidth="200" nameDestX="0" nameDestY="8" />
<ArmorSection name="aft"
imageID="&rsWolfenArmor;"
imageX="0" imageY="75" imageWidth="52" imageHeight="16"
destX="42" destY="103" hpX="55" hpY="107"
nameY="74" nameBreakWidth="360" nameDestX="12" nameDestY="0" />
</ArmorDisplay>
<ShieldDisplay>
<Image imageID="&rsWolfenShields;" imageX="0" imageY="0" imageWidth="136" imageHeight="136"/>
</ShieldDisplay>
<ReactorDisplay>
<Image imageID="&rsZubrinReactor;"
imageX="0" imageY="0" imageWidth="256" imageHeight="60"/>
<PowerLevelImage imageID="&rsZubrinReactor;"
imageX="0" imageY="60" imageWidth="202" imageHeight="14"
destX="54" destY="9"/>
<FuelLevelImage imageID="&rsZubrinReactor;"
imageX="0" imageY="74" imageWidth="194" imageHeight="14"
destX="54" destY="37"/>
<FuelLowLevelImage imageID="&rsZubrinReactor;"
imageX="0" imageY="88" imageWidth="194" imageHeight="14"/>
<ReactorText x="62" y="22" width="154" height="14"/>
<PowerLevelText x="62" y="0" width="154" height="9"/>
<FuelLevelText x="62" y="51" width="154" height="9"/>
</ReactorDisplay>
</PlayerSettings>
</ShipClass>