are there any Khaak scripts that spawn destroyers that your ships can dock with

The place to discuss scripting and game modifications for X²: The Threat.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

Demo_the_gamer
Posts: 13
Joined: Fri, 2. Dec 05, 23:14

are there any Khaak scripts that spawn destroyers that your ships can dock with

Post by Demo_the_gamer »

no explination needed 8)
User avatar
Serial Kicked
Posts: 3823
Joined: Fri, 12. Aug 05, 20:46
x3tc

Post by Serial Kicked »

in fact it needs an explanation. Do you want a M1 carrier type that can dock many ships or a M2 destroyer type that can (iirc) dock only 5 fighter type ships ?

Anyway this script will allow you to spawn any type of ship you want :

Code: Select all

Arguments
1: shiptype , Var/Ship Type , 'Ship Type' 
----
001   $sec = [PLAYERSHIP] -> get sector
002   $ship =  create ship: type=$shiptype owner=Player addto=$sec x=1 y=1 z=1
004   $ship -> add default items to ship

006   = $ship -> install 1 units of Boost Extension
[..copy this for each ship upgrade you need..] 
029   = $ship -> install 1 units of Triplex Scanner

030   $n = $ship -> get max amount of ware Engine Tuning that can be stored in cargo bay
031   = $ship -> install $n units of Engine Tuning
032   $n = $ship -> get max amount of ware Cargo bay extension that can be stored in cargo bay
033   = $ship -> install $n units of Cargo bay extension
034   $n = $ship -> get max amount of ware Rudder Optimisation that can be stored in cargo bay
035   = $ship -> install $n units of Rudder Optimisation
036   return null
X3:TC/AP Pirate Guild 3 - Yaki Armada 2 - Anarkis Defense System

Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station
FIarrsturm
Posts: 133
Joined: Tue, 10. Jan 06, 22:52
x2

Post by FIarrsturm »

Someone please translate what that person ^^^ did and the transporter item at the goner temple worked for me :D I LOVE the mothership!!!
Mark T
Posts: 120
Joined: Mon, 26. Dec 05, 02:36
x3

Post by Mark T »

he was telling you the script commands so that anyone can make themselves any ship and how to have them with any upgrades or wares etc, very handy, might add more upgrades to my ship script, the now i just use the add default items.

Return to “X²: The Threat - Scripts and Modding”