Ship Mod for Mayhem 3.8

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
alexalsp
Posts: 1820
Joined: Fri, 18. Jul 14, 05:28
x4

Re: Xtra shippack for mayhem 3 beta 7/8

Post by alexalsp » Sun, 14. Jun 20, 11:15

1) Create a text file
2) Script to activate
3) Run the editor and select id from the created text file.

1) 1050-L044.xml

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<language id="44">

<page id="222">
 <t id="1">Name of ship</t>
 <t id="2">Description</t>
</page>

</language>
2) setup.txt_1050.xml

Code: Select all

$page.id = 222
load text: id=1050

return null
Try

User avatar
Joubarbe
Posts: 4796
Joined: Tue, 31. Oct 06, 12:11
xr

Re: Xtra shippack for mayhem 3 beta 7/8

Post by Joubarbe » Sun, 14. Jun 20, 11:16

GameFanatic wrote:
Sun, 14. Jun 20, 03:13
I couldn't get ship names to work so i used name ids from other ships
If you don't use the t file, you won't have any description. You must make use of the addon\t\9951-L044 file that is inside the Xtra archive (and as said above by alexalsp, you must have a setup script that loads your t file).
Also, if you want the AI to use your new ships, you can add them to a list (or into a new list) in addon\scripts\Mayhem.Template.Ships.

Post Reply

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