[Docn] Director Start.xml

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

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

Post Reply
User avatar
apricotslice
Posts: 13630
Joined: Sun, 16. May 04, 13:01

Post by apricotslice » Sat, 9. Jun 12, 01:00

loadout = max would be the same as the script command to default outfit ship I expect.

No idea what the others do. Try it and report back.

"naming thing" ? To what are you referring ?

User avatar
XDrake
Posts: 133
Joined: Wed, 29. Oct 08, 19:48

Post by XDrake » Sat, 9. Jun 12, 02:25

I am sorry didn't state it very well.

Code: Select all

<create_ship name="myCarrier" typename="SS_SH_A_M1"... 

<create_ship name="subShip" typename="SS_SH_A_M3" dockobject="myCarrier"...
Is the Name flag only use for as reference object in MD, or can you actually effect the name of the ship in the game, like "Your Buster" and have MD change it to "This is MY RIDE"
XDrake
-------------------------------------------------------
NECORE Inc.

dillpickle
Posts: 1154
Joined: Mon, 3. Nov 08, 15:25

Post by dillpickle » Sat, 9. Jun 12, 03:43

The name flag is what the MD uses to track that particular object.

If you want to 'name' your ship there are a couple of ways...

Code: Select all

<create_ship name="TempShip" typename="SS_SH_B_M4P" race="player" textid="13471">
  <position object="{player.ship}" min="5km" max="10km"/>
  <sector sector="{player.sector}"/>
  <equipment loadout="default"/>
</create_ship>
The textid has to be from pageid="17" (in this case 'Exterminator') - when you target the ship Betty will identify it as 'Exterminator'.

You can also use:

Code: Select all

<create_ship name="Exterminator2" typename="SS_SH_B_M4P" race="player">
  <position object="{player.ship}" min="5km" max="10km"/>
  <sector sector="{player.sector}"/>
  <equipment loadout="default"/>
  <pilot shipname="{17,13471}"/>
</create_ship>
Which will name the ship 'Exterminator', but when targeted the Ship type (Pike in this case) will be said.
This can use any text id for the name..

Code: Select all

<pilot shipname="{1000,20041}"/>
...Engineering Specialist.

Or simply enter the text...

Code: Select all

<pilot shipname="This is MY RIDE"/>
If there is spoken text on pageid's other than 17, you can create an entry for it:

Code: Select all

<page id="350017">
    <t id="9999500">{1000,20041}</t>
  </page>
Then using...

Code: Select all

<create_ship name="TempShip" typename="SS_SH_B_M4P" race="player" textid="9999500">
Woul have Betty calling it 'Engineering Specialist' when targeted.

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”