[script] broadcast return home
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
[script] broadcast return home
Greetings,
this is return.home command
DESCRIPTION
Wanna tell all the fighters owned by a certain carrier to return home ?
They're all across the galaxy and there's a ton of them ?
You don't want to search for them one by one (carrier property list is just too long) ?
This script have the answer !
USAGE
This script adds two commands :
one in the Ships "general" command and one in the stations commands
execute it on a carrier or a station to see all of their property return home.
Ships will use their jump drive like any other ship would do if you'd issued the commands yourself : ship will jump if able to AND set to.
DOWNLOAD
megaupload SPK version
megaupload ZIP version
filefront hosted SPK version
TECHNIQUE
languages :
33 - french
44 - english
44 language used if else with spk manager
t-file used :
7905
command slots used :
<t id="1158">COMMAND_RETURN_BASE_STATION</t>
<t id="1255">COMMAND_RETURN_BASE_CARRIER</t>
V1.1
repaired french text files (deleted accentuated chars, replaced with regular ones as X3 TC don't like them)
added loop to check if ship's already docked => if so the ship will do nothing but stay home
added check to know if ship has docking rights => if not i will escort (carrier) or fly to (station)
Hope it will be usefull,
Seedz
edit :
added filefront hosting solution for spk file
this is return.home command
DESCRIPTION
Wanna tell all the fighters owned by a certain carrier to return home ?
They're all across the galaxy and there's a ton of them ?
You don't want to search for them one by one (carrier property list is just too long) ?
This script have the answer !
USAGE
This script adds two commands :
one in the Ships "general" command and one in the stations commands
execute it on a carrier or a station to see all of their property return home.
Ships will use their jump drive like any other ship would do if you'd issued the commands yourself : ship will jump if able to AND set to.
DOWNLOAD
megaupload SPK version
megaupload ZIP version
filefront hosted SPK version
TECHNIQUE
languages :
33 - french
44 - english
44 language used if else with spk manager
t-file used :
7905
command slots used :
<t id="1158">COMMAND_RETURN_BASE_STATION</t>
<t id="1255">COMMAND_RETURN_BASE_CARRIER</t>
V1.1
repaired french text files (deleted accentuated chars, replaced with regular ones as X3 TC don't like them)
added loop to check if ship's already docked => if so the ship will do nothing but stay home
added check to know if ship has docking rights => if not i will escort (carrier) or fly to (station)
Hope it will be usefull,
Seedz
edit :
added filefront hosting solution for spk file
Last edited by seedee on Tue, 17. Feb 09, 20:32, edited 2 times in total.
only one i can't get rid of without a really heavy loop test is that ships already docked will want to undock and redock,
won't really matter OOS though
(still working on it, if i can't get a "sexy" way of resolving that i might want to go brute force checking wich could be you know, kinda ressource freak for a big array of owned / docked ships)
edit :
found no way do deal with the "already docked" check without comparing owned ship VS docked ships one by one.
placed a new check to tell if owned ship has docking rights on base, if not, if ship => will escort, if station => will fly to
repaired a text file error with french version (X3 TC don't like "à" "é" "è" )
currently uploading, files will be ok in 5minutes max
PS : reports on bugs are appreciated if found
won't really matter OOS though
(still working on it, if i can't get a "sexy" way of resolving that i might want to go brute force checking wich could be you know, kinda ressource freak for a big array of owned / docked ships)
edit :
found no way do deal with the "already docked" check without comparing owned ship VS docked ships one by one.
placed a new check to tell if owned ship has docking rights on base, if not, if ship => will escort, if station => will fly to
repaired a text file error with french version (X3 TC don't like "à" "é" "è" )
currently uploading, files will be ok in 5minutes max
PS : reports on bugs are appreciated if found
-
- Posts: 511
- Joined: Mon, 8. Jun 09, 14:40
-
- Posts: 9
- Joined: Thu, 28. Jan 10, 21:56