How to read the Fleet name |
Submitted by Franky007 on Tue, 2007-08-14 20:41.
SE:V MODs
I am working in a mod that will assign each fleet to a system to patrol.
I was thinking of using the name of the System as the Fleet name.
But here is the catch, i can't find a way to read the Fleet name, once set.
Any idea ?

Re: How to read the Fleet name
Submitted by Captain Kwok on Fri, 2007-08-17 09:29.
One idea would be to store the fleet's ID along with the System ID it's protecting from turn to turn.
-----




Re: How to read the Fleet name
I'm not sure that I understand. Are you saying that you want to take EXISTING fleets and rename them to system names?
If so, it might be tricky - I don't see any specific "Rename Fleet to X" function. I do see a few other possibilities though:
1) Bypass this problem by creating the fleets with the desired name using the Sys_Create_Empire_Fleet (which allows you to name the fleet) in the first place.
2) Dissolve the existing fleets and re-create using the
Sys_Create_Empire_Fleet command.
3) I don't know if you can use a "space object"
function on a fleet...probably not...but if it worked
you could try Sys_Give_Space_Object_Order_Any
and the ORDER_CHANGE_NAME constant. This is REALLY a longshot though because not only will this probably not
work for a fleet, ORDER_CHANGE_NAME might not work with this function anyway.
Hope one of these works for ya...never tried anything quite like that before.
By the way...I assume that this is a mod involving AI scripts right? Or is this something completely different?