Which Terran stations can sell and train marines?

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

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

dtrowle
Posts: 351
Joined: Wed, 24. Aug 05, 05:45
xr

Which Terran stations can sell and train marines?

Post by dtrowle »

I have tried via scripts to add marines to the "Military Base" in Mercury and The Moon. When I do it the "Marine training" bar appears in the stations menu but no marines for sale. I am using the "add ware to dock or factory" and then "add X units of Marines." Are commonwealth Military Outposts and those Mercenary Training Facilities the only stations that can produce marines?
Igor.tverd
Posts: 266
Joined: Sun, 5. Oct 08, 10:06
x3ap

Post by Igor.tverd »

You need to add "mercenaries" to be able to buy marine, "marines" just add the training facility.

P.s. Anybody know how to specify that only Terran marines spawn?
Fantasy is the impossible made probable. Science fiction is the improbable made possible.
dtrowle
Posts: 351
Joined: Wed, 24. Aug 05, 05:45
xr

Post by dtrowle »

Thanks, I'll try that. Good question. If it is a Terran station then I would assume that only Terran marines spawn but not sure.
Igor.tverd
Posts: 266
Joined: Sun, 5. Oct 08, 10:06
x3ap

Post by Igor.tverd »

No problem, yeah it would make sense that only Terran marines should spawn at Terran station, but for some reason it spawns everything but the Terran marines :(
Fantasy is the impossible made probable. Science fiction is the improbable made possible.
argon_emperor
Posts: 1225
Joined: Mon, 12. Dec 05, 07:41
x4

Post by argon_emperor »

Only way to get Terran marines (that I've found) is to temporarily set one of your ship's ownership to Terran (note: must be TERRAN not, ATF), add however many marines, then set the ownership back to yours.

If you're feeling like this is cheating, then tag a price of 25K per marine that gets automatically deducted from your account.

The code that I used to use (before my hard drive got reformatted and I forgot to back everything up) was

Code: Select all

$target-> get player tracking aim
$target-> set ownership to Terran
$availiable.marines = $target-> get free volume of ware Marine
$target -> add $availiable.marines of ware Marine
$target -> set ownership to Player
$cost = - $available.marines * 25000
= add money to player $cost
And that would give me a full ship of Terran marines. Note: I had this bound to a hotkey, hence the getting player tracking aim. And it had several other uses (as in checking the race of the ship, if NPC it didn't bother changing to Terran to make them their marines, it was just simply to give them marines at all)

However, use that block of code and you can add Terran marines to your ships for a fairly reasonable cost. :wink:
[ external image ]
***modified***
"You can get more of what you want with kind words and a gun, than you can with just kind words" - Al Capone
Igor.tverd
Posts: 266
Joined: Sun, 5. Oct 08, 10:06
x3ap

Post by Igor.tverd »

Thank you, this is a pretty good workaround, I would have never though of doing it this way.
Fantasy is the impossible made probable. Science fiction is the improbable made possible.
argon_emperor
Posts: 1225
Joined: Mon, 12. Dec 05, 07:41
x4

Post by argon_emperor »

Haha, well, it kinda sprang up from me wanting to just simply not have to keep going back to the outposts and what not everytime I wanted cannon fodder, and I noticed that they get added as the race of whatever race owns the ship, 'cept for player, pirate and ATF, they just get random picks, and so would I assume of Kha'ak and Xenon.
[ external image ]
***modified***
"You can get more of what you want with kind words and a gun, than you can with just kind words" - Al Capone
dtrowle
Posts: 351
Joined: Wed, 24. Aug 05, 05:45
xr

Post by dtrowle »

Thanks for the info, I'll use the workaround as well.

I wonder why the game doesn't add Terran marines to a Terran station in same manner? Wonder if there is some global setting for the races that determines this or if it has to do with the station itself.

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