After a lot of googling and searching for examples I came up with the following, but for some reason it doesn't work and I can't figure out why.
t-file I use:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="true"?>
<!-- Generated using X-Studio -->
-<language id="44">
-<page title="Script Cmd Names" id="2008" voice="no" desc="">
<t id="830">A_HIRE_CREW</t>
</page>
-<page title="Script Cmd Names" id="2010" voice="no" desc="">
<t id="830">Hire Ship Crew</t>
</page>
-<page title="Script Cmd Shorts" id="2011" voice="no" desc="">
<t id="830">HirShiCre</t>
</page>
-<page title="Script User Help" id="2022" voice="no" desc="">
<t id="830">Command this ship to fly to the nearest friendly station and hire a crew for your ships. You can specify whether you want to hire a complete crew or a skeleton crew, as well as choosing which races to include.</t>
</page>
</language>
Code: Select all
load text: id=9977
$ware = {Cargo Lifesupport System}
add ship custom command: id=830
set script command upgrade: command=[A_HIRE_CREW] upgrade=[TRUE]
set script command upgrade: command=[A_HIRE_CREW] upgrade=$ware
global script map: set: key=[A_HIRE_CREW], class=[TP], race=[Player], script='z.String.Input', prio=0
return null