[MOD] Premium Ship Trader

The place to discuss scripting and game modifications for X Rebirth.

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

yonker3445
Posts: 7
Joined: Mon, 18. Nov 13, 08:58
x4

[MOD] Premium Ship Trader

Post by yonker3445 »

Premium Ship Trader 00.02.02

Adds 5 star pilot, engineer, defense officer, and architect (if its a construction ship) to a ship created at a shipyard.

History:

00.01 -02.03 (lots of trial, and too many errors)

removed get architect mission when you build a construction ship
added architect to construction ship
added engineer to any ship
added defense officer to any ship
specified all crew to be argon
edited architect to be a platform target (now works when you tell it to build something)
added 5 star skills to all crew
added appropriate scripts to defense officer and engineer
made all crew to belong to player faction, they will obey without question.
added max fuelcells

02.04 - 02.26

fix pilot/captain, engineer, defense officer to appear on deck when docked
only commanders will be used for the pilot role
updated content.xml so that it won't invalidate save files
added 300 of every drone to ship trader's inventory

To Do:

call shipyard from anywhere and have new ship delivered to your location
Add conversation options to add the crew members

Current Version: 02.26

Special Thanks To:

spartanheyho - for his extensive work on drones.

http://xrebirth.nexusmods.com/download/704
Last edited by yonker3445 on Mon, 25. Nov 13, 20:12, edited 17 times in total.
SparvieroGed
Posts: 968
Joined: Mon, 25. Jun 12, 22:19
x4

Post by SparvieroGed »

Hello :D

Can you add S and M ship vendors? Thanks!
yonker3445
Posts: 7
Joined: Mon, 18. Nov 13, 08:58
x4

Post by yonker3445 »

Adding more traders to other stations will have to be in my (or someone else's) next mod. I will continue to work on it.
User avatar
kuplo
Posts: 296
Joined: Wed, 6. Sep 06, 08:38
x3tc

Post by kuplo »

Do I need to go and find these 5 star NPC's and have them on the skunk or they are automatically put on the ship once it's built?
yonker3445
Posts: 7
Joined: Mon, 18. Nov 13, 08:58
x4

Post by yonker3445 »

they are automatically placed on the ship once it's built. works for the ships you can't dock on as well.
yonker3445
Posts: 7
Joined: Mon, 18. Nov 13, 08:58
x4

Post by yonker3445 »

fixed for game version 1.17

crew now available on platform when docked
yonker3445
Posts: 7
Joined: Mon, 18. Nov 13, 08:58
x4

New Version

Post by yonker3445 »

version 2.26 is out and found the inventory/cargo of a ship trader:

Code: Select all

<set_value name="$station" exact="$actor.station"/>
<create_list name="$oldcount"/>
<do_all exact="md.$ShiptraderDroneList.count" counter="$i">
     <append_to_list name="$oldcount" exact="$station.cargo.{ware.{$WareList.{$i}}}.count"/>
     <remove_cargo object="$station" ware="ware.{$WareList.{$i}}" exact="$station.cargo.{ware.{$WareList.{$i}}}.count" />
     <add_cargo object="$station" ware="ware.{$WareList.{$i}}" exact="300" />
</do_all>

in this example I stored the old values of the drone counts so I could put those amounts back. didn't want to destroy the economy.

edit:
$WareList is defined earlier in the script

Return to “X Rebirth - Scripts and Modding”