
are there any Khaak scripts that spawn destroyers that your ships can dock with
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 13
- Joined: Fri, 2. Dec 05, 23:14
are there any Khaak scripts that spawn destroyers that your ships can dock with
no explination needed 

-
- Posts: 3823
- Joined: Fri, 12. Aug 05, 20:46
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 :
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
Anarkis Gaming HQ
Independent Game Development
X3 Scripting and Modding Station
-
- Posts: 133
- Joined: Tue, 10. Jan 06, 22:52
-
- Posts: 120
- Joined: Mon, 26. Dec 05, 02:36