Need some scripting help to merge

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

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

User avatar
Dgn Master
Posts: 1311
Joined: Fri, 27. Feb 04, 10:36
x3tc

Need some scripting help to merge

Post by Dgn Master »

I have Xaicorp trading command software mk1 v1.1a(fixed) installed along with patrol 3 but it seems the last command in the trade menu is being used by both :( One is the get energycells for mothership script and the other is the Xai auto buy and sell. As i use both of these (now that i have over 75 factories they are both VERY needed) could some kind soul either merge them for me or take me through it SLOWLY.

TIA :)
User avatar
Dgn Master
Posts: 1311
Joined: Fri, 27. Feb 04, 10:36
x3tc

Post by Dgn Master »

Well it has been weeks and still no answer, i now have over 120 factories (had to replace my mantas first). I e-mailed the creator of XAI but no reply there either. Not trying to be a pain in the arse here, but i really could use some help to get these 2 scripts to like each other.

Hoping on a reply this time
User avatar
LV
Sith Lord
Posts: 8255
Joined: Wed, 6. Nov 02, 20:31
x3tc

Post by LV »

Code: Select all

$command5 = COMMAND_TYPE_PIRACY_17
044   global script map: set: key=$command5, class=Moveable Ship, race=Player, script='hackstation', prio=0
045   global script map: remove: key=$command5, class=Fight drone, race=Player
046   set script command upgrade: command=$command5  upgrade=$hack
If i'm reading you right.......

find the scripts that have these commands if there is a conflict then

Code: Select all

COMMAND_TYPE_TRADE_01
or whatever number they are using will be listed twice

change that trade command to

Code: Select all

COMMAND_TYPE_TRADE_11 
for arguments sake if no other script is using it.

then open the "t" folder and find where it says

Code: Select all

<t id="201">Trade Run</t>
for the trade menu it would be changed to 211
the t file number corresponds to the COMMAND_TYPE option you picked.

as an example

Code: Select all

 <t id="617">Hack Enemy Station</t> 
=

Code: Select all

$command5 = COMMAND_TYPE_PIRACY_17
6 = piracy menu
17 = command button linked

hth
LV's TC Scripts
Readme's For All My Scripts


I felt a great disturbance in the forum, Like millions of voices cried out in terror, then were silenced

si tacuisses, philosophus mansisses
User avatar
Dgn Master
Posts: 1311
Joined: Fri, 27. Feb 04, 10:36
x3tc

Post by Dgn Master »

Thank you for taking the time to reply, i will go try that right away. :D

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