Ich habe mir einen Code gesucht, um meine Schiffe auszurüsten, da es einfach nur ewig dauert und man in storytechnisch garkeine Chance gegen die Terraner hat.
Gefunden habe ich allerdings nur einen, mit dem man ein Schiff erstellt und ausrüstet.
Das wäre dieser Code, den ich in Sachen Waffen leicht abgeändert habe:
Code:
Version: 0
for Script Engine Version: 44
Description
Schiff erstellen
Arguments
1: Sector.Pos , Var/Sector Position , 'Wähle Sektor und Position'
2: Ship , Var/Ship Type , 'Schifstyp wählen'
3: Rasse , Var/Race , 'Rasse auswählen'
Source Text
001 $X = $Sector.Pos[0]
002 $Y = $Sector.Pos[1]
003 $Z = $Sector.Pos[2]
004 $Sector = $Sector.Pos[3]
005 $cship = create ship: type=$Ship owner=$Rasse addto=$Sector x=$X y=$Y z=$Z
006 $Upgrade = $cship -> get amount of ware Laderaumerweiterung in cargo bay
007 $UpgradeMax = $cship -> get max upgrades for upgrade Laderaumerweiterung
008 $Upgrade = $UpgradeMax - $Upgrade
009 = $cship -> install $Upgrade units of Laderaumerweiterung
010 $Upgrade = $cship -> get amount of ware Triebwerkstuning in cargo bay
011 $UpgradeMax = $cship -> get max upgrades for upgrade Triebwerkstuning
012 $Upgrade = $UpgradeMax - $Upgrade
013 = $cship -> install $Upgrade units of Triebwerkstuning
014 $Upgrade = $cship -> get amount of ware Ruder-Optimierung in cargo bay
015 $UpgradeMax = $cship -> get max upgrades for upgrade Ruder-Optimierung
016 $Upgrade = $UpgradeMax - $Upgrade
017 = $cship -> install $Upgrade units of Ruder-Optimierung
018 $ShieldType = $cship -> get max. shield type that can be installed
019 $ShieldMax = $cship -> get number of shield bays
020 = $cship -> install $ShieldMax units of $ShieldType
021
022 $Turret = 0
023 $TurretMax = $cship -> get number of turrets
024 while $Turret < $TurretMax
025 |
026 |$LaserType1 = null
027 |$LaserType2 = null
028 |$LaserType3 = null
029 |$LaserType4 = null
030 |
031 |skip if not $cship -> fits laser Photonenimpulskanone into turret $Turret
032 ||$LaserType1 = Photonenimpulskanone
033 |skip if not $cship -> fits laser Clusterflakartillerie into turret $Turret
034 ||$LaserType3 = Clusterflakartillerie
035 |skip if not $cship -> fits laser Energiepulskanone into turret $Turret
036 ||$LaserType1 = Energiepulskanone
037 |skip if not $cship -> fits laser Energieplasmawerfer into turret $Turret
038 ||$LaserType2 = Energieplasmawerfer
039 |skip if not $cship -> fits laser Splitterbombenwerfer into turret $Turret
040 ||$LaserType2 = Splitterbombenwerfer
041 |skip if not $cship -> fits laser Phasenrepetiergeschütz into turret $Turret
042 ||$LaserType3 = Phasenrepetiergeschütz
043 |skip if not $cship -> fits laser Pulsstrahler into turret $Turret
044 ||$LaserType4 = Pulsstrahler
045 |skip if not $cship -> fits laser Ionen-Disruptor into turret $Turret
046 ||$LaserType4 = Ionen-Disruptor
047 |$LaserMax = $cship -> get max. number of lasers in turret $Turret
048 |skip if not $LaserType1
049 ||= $cship -> install $LaserMax units of $LaserType1
050 |skip if not $LaserType2 AND ! $LaserType1
051 ||= $cship -> install $LaserMax units of $LaserType2
052 |skip if not $LaserType2 AND $LaserType1
053 ||= $cship -> install $LaserMax units of $LaserType2
054 |skip if not $LaserType3
055 ||= $cship -> install $LaserMax units of $LaserType3
056 |skip if not $LaserType4
057 ||= $cship -> install $LaserMax units of $LaserType4
058 |inc $Turret =
059 end
060
061 $inst = $cship -> install 1 units of Boost Erweiterung
062 $inst = $cship -> install 1 units of Versorgungssoftware
063 $inst = $cship -> install 1 units of Duplex Scanner
064 $inst = $cship -> install 1 units of Patrouillensoftware
065 $inst = $cship -> install 1 units of Erkundungssoftware
066 $inst = $cship -> install 1 units of Frachtscanner
067 $inst = $cship -> install 1 units of Kampfsoftware MK1
068 $inst = $cship -> install 1 units of Kampfsoftware MK2
069 $inst = $cship -> install 1 units of Landecomputer
070 $inst = $cship -> install 1 units of Mineralienscanner
071 $inst = $cship -> install 1 units of Navigationssoftware MK1
072 $inst = $cship -> install 1 units of Singularitäts-Zeitverzerrungsantrieb
073 $inst = $cship -> install 1 units of Spezialsoftware MK1
074 $inst = $cship -> install 1 units of Transporter
075 $inst = $cship -> install 1 units of Triplex Scanner
076 $inst = $cship -> install 1 units of Sprungantrieb
077 $inst = $cship -> install 1 units of Handelssoftware MK3
078 $inst = $cship -> install 1 units of Handelssoftware MK1
079 $inst = $cship -> install 1 units of Handelscomputer-Erweiterung
080 $inst = $cship -> install 1 units of Handelssoftware MK2
081 $inst = $cship -> install 1 units of Lebenserhaltung für Frachtraum
082 return $cship
Jetzt meine Frage:
Wie verwende ich den? Wo muss ich den einfügen? In eine Editordatei? Direkt irgendwo in den Skripteditor?
Ich konnte in dem Thread, wo ich das gefunden habe keine Anleitung dazu finden.
Achja, ich möchte keinen Cheatdingens verwenden, da dieser nur im freien Spiel läuft
