Hi, I'd like in a module to change the status text of a crew NPC (ie: for engineers the text "Repairing", for commander the text "Following ALbion Skunk"...), especially the engineer one if relevant, to set a custom text giving more info about what is really happening.
Does any one know about this kind of stuff?
(that's the part actually setting the status text using text constants and dynamic values which I can't find how to)
Thanks
[Question] How to change the status text of a crew NPC?
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 246
- Joined: Fri, 7. Nov 08, 10:47
-
- Posts: 235
- Joined: Sat, 16. Feb 08, 23:44
as far as i can tell, they're set by <set_command name=" " /> in aiscripts leaving you to chose from a bunch of given alternatives as attributes, but you can't create your own. these are the possible attributes from aiscripts.xsd:
Code: Select all
<xs:simpleType name="commandlookup">
<xs:annotation>
<xs:documentation>
Command
</xs:documentation>
</xs:annotation>
<xs:union memberTypes="expression">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="command.attackenemies">
<xs:annotation>
<xs:documentation>
Attack Enemies Command (no param)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.attackobject">
<xs:annotation>
<xs:documentation>
Attack Object Command (param = the target to attack)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.buildexpansion">
<xs:annotation>
<xs:documentation>
Build Expansion Command (no param)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.buildship">
<xs:annotation>
<xs:documentation>
Build Ship Command (no param)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.buildstation">
<xs:annotation>
<xs:documentation>
Build Station Command (no param)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.buildupgrades">
<xs:annotation>
<xs:documentation>
Build Upgrades Command (no param)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.collect">
<xs:annotation>
<xs:documentation>
Collect Command (param = the object to collect)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.freemining">
<xs:annotation>
<xs:documentation>
Free Mining Command (no param)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.freetrade">
<xs:annotation>
<xs:documentation>
Free Trading Command (no param)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.follow">
<xs:annotation>
<xs:documentation>
Follow Command (param = the object to follow)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.escort">
<xs:annotation>
<xs:documentation>
Escort Command (param = the object to escort)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.mining">
<xs:annotation>
<xs:documentation>
Mining Command (param = the zone where stuff is mined)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.move">
<xs:annotation>
<xs:documentation>
Move Command (param = the object/zone to fly to)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.patrol">
<xs:annotation>
<xs:documentation>
Patrol Command (no param)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.police">
<xs:annotation>
<xs:documentation>
Police Command (no param)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.protect">
<xs:annotation>
<xs:documentation>
Protect Command (param = the object to protect)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.repair">
<xs:annotation>
<xs:documentation>
Repair Command (no param)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.scan">
<xs:annotation>
<xs:documentation>
Scan Object Command (no param)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.support">
<xs:annotation>
<xs:documentation>
Support Command (param = the object to support)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
<xs:enumeration value="command.trade">
<xs:annotation>
<xs:documentation>
Trade Command (param = the object to trade with)
</xs:documentation>
</xs:annotation>
</xs:enumeration>
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>