I Need Help with the Script Editor Please!

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

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

Danny200
Posts: 132
Joined: Wed, 4. Nov 09, 21:35
xr

I Need Help with the Script Editor Please!

Post by Danny200 »

I want to create a station in a sector but i want it to be in the position that i want it to be in... everytime i go to create a sola power plant it always spawns in the middle of the map ontop of an asteroid so it slowly dies =(

also the sola powerplant spawns with no shields =( dose anyone know how i can give it shields useing the script editor please? i been trying for hours now but nothing i do works please help thanks =)
User avatar
mrbadger
Posts: 14228
Joined: Fri, 28. Oct 05, 17:27
x3tc

Post by mrbadger »

This is something that needs to be asked in the scripting and modding forum
If an injury has to be done to a man it should be so severe that his vengeance need not be feared. ... Niccolò Machiavelli
Danny200
Posts: 132
Joined: Wed, 4. Nov 09, 21:35
xr

Post by Danny200 »

i thaught about that but i dont think it comes under scripting or modding as its in gameplay? and im not makeing a script or a mod :?
Apollo303
Posts: 604
Joined: Sun, 7. Dec 08, 18:15
x3tc

Post by Apollo303 »

When you create a station in a sector of your choice, the station will appear on the sector map... use the keys on your numerical pad to move the station to where you want it.

As for shields, it should automatically have shields after you accept the placement !!
Who am i ? I am but the sum of my experiences....
And today i am more than i was yesterday and less than i will be tomorrow.

Imagination is a part of Reality we all agree on !!
Danny200
Posts: 132
Joined: Wed, 4. Nov 09, 21:35
xr

Post by Danny200 »

lol no thats if i buy a station from a shipyard im not doing that im creating my own useing script editor but it dose nto give me the option to place it where i want inside the sector iwant it in it just places it in the middle of the map =(
Apollo303
Posts: 604
Joined: Sun, 7. Dec 08, 18:15
x3tc

Post by Apollo303 »

This then is definatly to do with scripting, as you are scripting in a station, therfore as mrbadger has stated you will need to ask on the scripting/modding forums....

Good Luck :D
Last edited by Apollo303 on Sun, 8. Nov 09, 14:53, edited 1 time in total.
Who am i ? I am but the sum of my experiences....
And today i am more than i was yesterday and less than i will be tomorrow.

Imagination is a part of Reality we all agree on !!
Danny200
Posts: 132
Joined: Wed, 4. Nov 09, 21:35
xr

Post by Danny200 »

ahh okey =) thanks
Rapier
Posts: 11377
Joined: Mon, 11. Nov 02, 10:57
x3tc

Post by Rapier »

If you are using the script editior, then you are scripting.

Over we go...
Rapier - The Orifice of all Knowledge

Godwin's Law is not one of the Forum Rules.
Search just the forum with Google
User avatar
Chris Gi
Posts: 960
Joined: Wed, 20. Sep 06, 09:57
x3tc

Post by Chris Gi »

You need to provide some coordinates for the "create station" instruction.
You could do so by using a Var/Sector Position argument. This will give you a 4-dim array with x,y,z coordinates and the chosen sector.
--------------------------------

[ external image ]
jlehtone
Posts: 22583
Joined: Sat, 23. Apr 05, 21:42
x4

Post by jlehtone »

[Edit] Look at the sticky threads. Tutorials might have hints, or there could be a script in the Community Index that creates stations. If there is one, look at its code to find out how others have done it.

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