Can't get why there if no trade offer's in my station

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

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

Post Reply
Trup2
Posts: 35
Joined: Wed, 5. Nov 14, 20:49
x4

Can't get why there if no trade offer's in my station

Post by Trup2 » Sun, 23. Sep 18, 05:38

Hello,

I'am trying to add custom warehouse station to De Vriese.

For base i copy the "struct_bt_alb_warehouse_macro" rename it to "struct_bt_ca_warehouse_macro" and create new index in "macro".

Then i added this station as connection to zone_49.

Last i found that warehouse used "trade.station.tradingstation" script to set wares to bay and sell, and add my new "struct_bt_ca_warehouse_macro" into it.

As a result a get fully working station with one problem, script didn't add wares to cargo, and trade offers on station are disable.

I thought i did wrong edit in AIscript and try it with changing trade offers on Plutarch stock, everything work's fine.

:evil: :evil: i gonna burn

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13289
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Mon, 24. Sep 18, 16:38

The trading part is done by a script that runs on the station manager.

Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

Trup2
Posts: 35
Joined: Wed, 5. Nov 14, 20:49
x4

Post by Trup2 » Wed, 26. Sep 18, 10:37

I get it. list of station to run tradingstation script is in the Trade.station file.

So if you wan't to setup a new one, you need to add it's macro there.

User avatar
euclid
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 13289
Joined: Sun, 15. Feb 04, 20:12
x4

Post by euclid » Wed, 26. Sep 18, 15:45

I'm not sure what exactly you are doing but to make a station offer trades you need to add a manager and run a script on him/her. Here an example:

Code: Select all

<create_cue_actor cue="this" name="$manager" macro="macro.character_ar_female_manager_macro">
			 <select race="race.argon" tags="tag.manager"/>
			 <page exact="10109"/>	
       <owner exact="faction.player" />
			 <skills>
				<skill type="boarding" exact="1"/>
				<skill type="combat" exact="2"/>
				<skill type="engineering" exact="1"/>
				<skill type="leadership" exact="4"/>
				<skill type="management" exact="5"/>
				<skill type="morale" exact="4"/>
				<skill type="navigation" exact="1"/>
				<skill type="science" exact="2"/>
			 </skills>
      </create_cue_actor>
      <set_entity_type entity="$manager" type="entitytype.manager"/>
      <add_actor_to_platform actor="$manager" dockingbay="$Stationdock.component"/>
      <assign_trade_manager actor="$manager" object="$Station"/>
			<set_actor_account actor="$manager" />
      <start_script object="$manager" name="'trade.station.player'"/>
Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786

Post Reply

Return to “X Rebirth - Scripts and Modding”