RS.Sell/Move Station (SMS)[06/23/05]

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

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

User avatar
Red Spot
Posts: 3461
Joined: Fri, 4. Feb 05, 13:44
x3

RS.Sell/Move Station (SMS)[06/23/05]

Post by Red Spot »

well with some help off a handy tool OML has made ..
I've been able to make a .. Sell your station to the AI -script ..
and a .. Move your station -script ..

Code: Select all

SMS --> Sell/Move Station


In short -- now you can move or sell your station


The Commands
-RS Sell Station-
sell your factory to the AI .. there are 2 requirements .. you have to be in 'race-space' and there has to be a Trading Dock 
you get 80% off the original price .. and AI will wait for about 24 hours before picking up production (call it their 're-organisation-time')
(race-space --> sectors owned by 1 off the 5 main races)


-RS Move Station-
move your station to any position in sector ..
well if you have at least 50.000Cr ..
and if there is nothing within 5km range off the target-position ..
and the station cant be under attack .. so you cant just move your station when under attack

Credits:  OML --> for his "get.station.price"-script ..
just to be clear on this .. the AI doesnt buy your resources or ships ..
If ships where docked when the Fab is being sold .. no problem .. its just as having them docked some where else .. and any left-over resources .. well call them a gift ..;)
The AI does jump/move in Traders and Fighters .. this happens in about the 1st hour after selling the station (well depending on the station-type it might take a bit longer)
After all ships are being 'bought' .. the Fab will hold production for an other 23 hours .. than it will pick up production ..;)


NOTE; make sure to terminate any scripts running on your station before selling it .. else you could get rich very fast ..;)


Link


G
Last edited by Red Spot on Fri, 2. Dec 05, 20:12, edited 1 time in total.
NavaCorp
Posts: 2253
Joined: Tue, 16. Nov 04, 12:08
x3tc

Post by NavaCorp »

Hi, I tried this script and it's a nice idea but I found it buggy: after I sold the factory to the AI my account started to increase until 2 billions and despite I got rid of credits they came back to 2 billions again. Eventually I had to go back to a previous savegame.

Bye
User avatar
Red Spot
Posts: 3461
Joined: Fri, 4. Feb 05, 13:44
x3

Post by Red Spot »

:lol:


just checked the script .. but I cant see ho my script could cause this .. as there is 'no' loop in it ..


so I'm guessing this is not it .. (at least not by it self)

but tell me more ..
-how/what/when/where ..
-other scripts in use ..


but again .. after checking my script .. I find it hard to think it would be caused by this script ..

(did the station actually change hands??..)


G
NavaCorp
Posts: 2253
Joined: Tue, 16. Nov 04, 12:08
x3tc

Post by NavaCorp »

Red Spot wrote::lol:

just checked the script .. but I cant see ho my script could cause this .. as there is 'no' loop in it ..

so I'm guessing this is not it .. (at least not by it self)

but tell me more ..
-how/what/when/where ..
-other scripts in use ..

but again .. after checking my script .. I find it hard to think it would be caused by this script ..

(did the station actually change hands??..)
G
The station changed hands and started to work.

I used it in President's End selling it to an Argon trading station I had scripted before by the Oljis Editor.

In my script folder there was also the aaa.money script (which gives you an amount of money you set) but it wasn't active (at least I used it only a lot of time before).

Do you think that one of these things could have interfered with your script? :?

Bye :)
User avatar
moggy2
Posts: 5505
Joined: Wed, 6. Nov 02, 20:31
x3ap

Post by moggy2 »

been there, done that.

you had the automatic cash transfer script that comes as default running on the station when you sold it. It's still running on that station :D.

Xai Corp. FMS can do the selling to the AI. You have to make sure there are no scripts running on the station when it changes hands because they will continue running, transfering money to player etc.
User avatar
Red Spot
Posts: 3461
Joined: Fri, 4. Feb 05, 13:44
x3

Post by Red Spot »

figured it might be a combi between the signed and my SMS script ..

I may change the script so it wont be able to cause this .. in the mean-time .. as Moggy2 said .. quit scripts running on fabs before selling them ..

Thanks Moggy2 ..


G
NavaCorp
Posts: 2253
Joined: Tue, 16. Nov 04, 12:08
x3tc

Post by NavaCorp »

Thank Moggy/Red Spot :) : I don't remember well but it's likely that I left the SMS Deluxe running on that factory because I always use it on my stations.

Bye

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