Help with a short script

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

linearised
Posts: 4
Joined: Sat, 4. Jan 14, 23:41

Help with a short script

Post by linearised »

Hi

would someone be able to give me a hint how to do a very simple script please. I want to be able to select a ship in a wing, and then set the ammo resupply amount for all ships in that wing (for example, set EBC ammo resupply amount for a whole wing). I figured out how to do this for one ship but not a wing.

If there is already a script that does that, even better!

Thanks
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

if this is about Rebirth: the scriptproperties.html file is very useful for that ;) just extract the related files from the cats/dats.


$ship.subordinates is a list of all followers of $ship ;) use it like any other list ^^
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)
linearised
Posts: 4
Joined: Sat, 4. Jan 14, 23:41

Post by linearised »

It's for TC, just realised I put it in the wrong forum.
UniTrader
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 14571
Joined: Sun, 20. Nov 05, 22:45
x4

Post by UniTrader »

linearised wrote:It's for TC, just realised I put it in the wrong forum.
in that case ***moved***

for TC not really sure, but i think there was something with followers in the General Object Commands or Other Commands
if not stated otherwise everything i post is licensed under WTFPL

Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter ;)

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help ;)

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