Need help with script....

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

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

HartBreaker
Posts: 18
Joined: Tue, 15. Jun 04, 01:32

Need help with script....

Post by HartBreaker »

Hi Everyone!

Can any one help me with this?

I’ve just downloaded a script called ‘Create.Ship.Khaak.Destroyer’. I’ve run the script and the ship appears okay. My problem is, there’s no weapons on board and there’s no way of installing any. For some reason, I can’t install any weapons.

Can any one help me?

Cheers,

Jessica
User avatar
Some Strange Man
Posts: 2997
Joined: Sat, 20. Mar 04, 20:50
x3

Post by Some Strange Man »

edit the script and add the lines

ship -> install 18 units of Gamma Kyon Emitter

or

ship -> add 18 units of Gamma Kyon Emitter

(its pseudocode, it wont be just the same you might need to do something like make a new variable called dummy and do
dummy = ship -> install 18 units of gamma kyon emitter) just before the "return null" line.

if you haven't got the gamma kyon emitter details, its one of the unknown objects (size 25XL) And Khaak ships can only equip Khaak weapons.

ps if you register your game via your profile you can get access to the scripting forum, where you might find scripts that actually work :o
HartBreaker
Posts: 18
Joined: Tue, 15. Jun 04, 01:32

Post by HartBreaker »

Hi Some Strange Man,

Thanks for the reply.

The script already contains the line:-

*Adding Max Weapons
$ADDEDTO=SHIP->INSTALL 15 UNITS OF GAMMA KYON EMITTER

I can’t see anything wrong, but the ship appears with the Gamma Kyon Emitters in the Cargo hold and not installed and there’s no way of installing them.

Can you suggest anything else?

Thanks,

Jessica
User avatar
Some Strange Man
Posts: 2997
Joined: Sat, 20. Mar 04, 20:50
x3

Post by Some Strange Man »

replace that line with the one that says Add instead of install. (you will need to rerun it (and get a new one for it to work.)

If that doesn't work I'll put up one here that will do the job.
User avatar
JustHere4Coffee
Posts: 1075
Joined: Wed, 6. Nov 02, 20:31
x2

Post by JustHere4Coffee »

HartBreaker wrote:...and there’s no way of installing them.
just use the Weapons screen (S, then G) and load them there?
Sir Crashalot
Posts: 3846
Joined: Wed, 6. Nov 02, 20:31
x4

Post by Sir Crashalot »

I`m not sure the original poster can post in this thread now it is here because he/she isn`t registered.
If you can`t dazzle them with dynamics, then baffle them with bullsh*t :D
CBJ
EGOSOFT
EGOSOFT
Posts: 54288
Joined: Tue, 29. Apr 03, 00:56
x4

Post by CBJ »

There's a simple solution to that. Register. :)
darth_prime
Posts: 1
Joined: Thu, 7. Jun 07, 04:20

Post by darth_prime »

Has Someone done this script correctly? If so, where can i download it?
User avatar
ninjitsumonk
Posts: 1874
Joined: Thu, 1. Mar 07, 09:21
x3

Post by ninjitsumonk »

Well, IIRC back in the day of X2, there were two instances of gamma kyon emitter, one of which was the planet killer on the m0, the other was the one used by the destroyers, make sure that the gamma that's being added is the lighter of the two kyons.
Archeo Avis wrote:
if you take out phrasing and root notes and just look at the notes, they are the same
So what you're saying is, if you ignore everything that's different and focus only on the one thing that's the same, they're same.

Good God.

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