[MOD] TAF! v1.2 (12 Dec. 2015)

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

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

User avatar
TheRealBix
Posts: 400
Joined: Thu, 2. Jul 09, 14:34
x4

Post by TheRealBix » Fri, 23. May 14, 13:23

YorrickVander wrote:Try this Bix

Code: Select all

<reward_player money="-2000Cr"/>
it will also generate a notification of money down on the event monitor :)
Rhaaaaa I was sure I had already tried this !!! :evil: :evil: :evil:

In fact i was trying to do so manually

Code: Select all

		  <transfer_money from="player.entity" to="$actor" amount="10000000" />
		  <show_notification caption="'Paid : 100000 Cr'" icon="achievement_money_down" queued="true" sound="ui_mon_eve_money_down"/>
But it wasn't very clean

Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp » Fri, 23. May 14, 13:50

TheRealBix wrote:In fact the name is a sort of french wordplay :P
OK, fair enough :)

User avatar
TheRealBix
Posts: 400
Joined: Thu, 2. Jul 09, 14:34
x4

Post by TheRealBix » Fri, 23. May 14, 14:49

Ok, here is the code, I can't find the way to create this #*$\ menu.. I think i'll need to take a nap :wink:

Here the code

Code: Select all

                <add_player_choice_sub position="top_right" text="{1002,12220}" comment="Ask for: Trade offer updates - menu" section="gTradeAgent_Start" selectable="not event.object.container.hastradesubscription" baseparam="event.param2"/>
Here I set the submenu to access to the confirmation

Code: Select all

	<cue name="TradeAgentBix" instantiate="true">
      <conditions>
        <check_any>
          <event_conversation_started sectionprefix="gTradeAgent_" actor="$actor" />
          <event_conversation_returned_to_section sectionprefix="gTradeAgent_" actor="$actor" />
        </check_any>
	  </conditions>
	  <actions>
	    <do_if value="event.param == 'gTradeAgent_Start'">
	      <add_player_choice_sub position="top_left" text="Confirm" comment="Search in T files" section="gTradeAgent_rewardTradeUpdates" selectable="player.money gt 100000Cr" />
          <add_player_choice_return text="{1002,20}" position="bottom_right" comment="Back"/>
		</do_if>
	  </actions>
	</cue>
	
    <cue name="RewardTradeUpdatesFinishedHandler" instantiate="true" namespace="this">
      <conditions>
            <!--<event_conversation_finished outcome="gTradeAgent_rewardTradeUpdates" />-->
			<event_conversation_next_section sectionprefix="gTradeAgent_rewardTradeUpdates"/>
      </conditions>
      <actions>
		<do_if value="event.param == 'gTradeAgent_rewardTradeUpdates'">
          <add_trade_subscription object="event.object.container" />
          <show_help line="350" comment="Your ship computer database will automatically be updated with trade offers from this station." log="false" position="8" />
          <add_npc_line line="4119" comment="Sure" />
		  <reward_player money="-10000000Cr"/>
        </do_if>
      </actions>
    </cue>
And here I set the Confirm option and back + the trade subscrption.

But.. No submenu at all :evil:


edit :

Code: Select all

<event_conversation_next_section
FACEPALM
Last edited by TheRealBix on Fri, 23. May 14, 14:58, edited 1 time in total.

User avatar
YorrickVander
Posts: 2702
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander » Fri, 23. May 14, 14:58

Personally I would take the simple option :

Code: Select all

 <actions>
      <do_if value="event.param == 'gTradeAgent_rewardTradeUpdates'">
          <reward_player money="-2000Cr"/>
          <add_trade_subscription object="event.object.container" /> 
          ....
and include details of cost in the mod desc. More submenus are rarely good :) Just my opinion of course.
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.

User avatar
TheRealBix
Posts: 400
Joined: Thu, 2. Jul 09, 14:34
x4

Post by TheRealBix » Fri, 23. May 14, 15:07

YorrickVander wrote:Personally I would take the simple option :

Code: Select all

 <actions>
      <do_if value="event.param == 'gTradeAgent_rewardTradeUpdates'">
          <reward_player money="-2000Cr"/>
          <add_trade_subscription object="event.object.container" /> 
          ....
and include details of cost in the mod desc. More submenus are rarely good :) Just my opinion of course.
I'd like to, but without submenu there's a loop in the payment :/

User avatar
TheRealBix
Posts: 400
Joined: Thu, 2. Jul 09, 14:34
x4

Post by TheRealBix » Fri, 23. May 14, 15:43

Mhh.. In fact there's still a loop ..

User avatar
YorrickVander
Posts: 2702
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander » Fri, 23. May 14, 15:51

Check your pm :)
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.

User avatar
TheRealBix
Posts: 400
Joined: Thu, 2. Jul 09, 14:34
x4

Post by TheRealBix » Fri, 23. May 14, 18:46

1.1 online :)

Endeavour79
Posts: 287
Joined: Fri, 29. Nov 13, 23:14
x4

Post by Endeavour79 » Sun, 25. May 14, 04:20

How to use this functionality?

Can you post a quick guide please.. Thanks

User avatar
YorrickVander
Posts: 2702
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander » Sun, 25. May 14, 04:38

talk to trader npc
choose the fairly obvious convo option
?
profit
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.

karabAs
Posts: 97
Joined: Sun, 7. Dec 03, 01:58
x3tc

Post by karabAs » Tue, 27. May 14, 01:02

Endeavour79 wrote:How to use this functionality?

Can you post a quick guide please.. Thanks

Second on that. I'm a total noob with this game and some kind of guide/examples would be very helpful.

Thanks.

User avatar
kinetic
Posts: 4
Joined: Mon, 26. May 14, 08:16
xr

Post by kinetic » Tue, 27. May 14, 09:58

Thank you !

Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp » Tue, 27. May 14, 10:07

A little guide:

1. Fly around station exterior to reveal a docking port.
2. Left-click on the port's icon on your HUD.
3. Left-click on the on the HUD's main monitor.
4. Marvel at the pop-up window of dreamy goodness.
5. Start a conversation with an appropriate NPC*.
6. "Choose the fairly obvious convo option".
7. Pay the fee and "profit".


* I don't have a definitive list but it's the sort that would offer you trade updates as a small talk reward. So basically, most trader NPCs (e.g. Junk Dealer or Black Market dude) plus a couple of others (Architect?).
Last edited by Sparky Sparkycorp on Tue, 27. May 14, 19:53, edited 1 time in total.

karabAs
Posts: 97
Joined: Sun, 7. Dec 03, 01:58
x3tc

Post by karabAs » Tue, 27. May 14, 18:02

@Sparky

Thank you. I did that. Now I have an eye near the station's name. Good. But what next... I mean how exactly this mod working? Where/how I can see the results of this just hired for 80000 credits agent? Is this somewhere in trade menu (SHIFT+T) or he/she will contact me about an available offer(s) or should I contact him/her or... well I can't figure this out.

Thanks.

User avatar
YorrickVander
Posts: 2702
Joined: Tue, 29. Oct 13, 21:59
x4

Post by YorrickVander » Tue, 27. May 14, 18:12

What happens now is that your trade window (shift+t) will be instantly updated for any prices changed or orders added/finished for any station with the eye icon. As you build up your contacts you can eventually cover every friendly station.
X Rebirth - A Sirius Cybernetics Corporation Product

Split irritate visiting pilot with strange vocal patterns.

karabAs
Posts: 97
Joined: Sun, 7. Dec 03, 01:58
x3tc

Post by karabAs » Tue, 27. May 14, 19:06

YorrickVander wrote:What happens now is that your trade window (shift+t) will be instantly updated for any prices changed or orders added/finished for any station with the eye icon. As you build up your contacts you can eventually cover every friendly station.
Ahh! I actually was thinking about that, but wasn't sure!
Thanks for a lesson!

User avatar
Baconnaise
Posts: 619
Joined: Sat, 23. Nov 13, 15:50
x4

Post by Baconnaise » Tue, 27. May 14, 23:39

I love this mod dearly.

User avatar
Baconnaise
Posts: 619
Joined: Sat, 23. Nov 13, 15:50
x4

Post by Baconnaise » Tue, 27. May 14, 23:41

Sparky Sparkycorp wrote:A little guide:

1. Fly around station exterior to reveal a docking port.
2. Left-click on the port's icon on your HUD.
3. Left-click on the on the HUD's main monitor.
4. Marvel at the pop-up window of dreamy goodness.
5. Start a conversation with an appropriate NPC*.
6. "Choose the fairly obvious convo option".
7. Pay the fee and "profit".


* I don't have a definitive list but it's the sort that would offer you trade updates as a small talk reward. So basically, most trader NPCs (e.g. Junk Dealer or Black Market dude) plus a couple of others (Architect?).
You could also just hit enter/3/3/4/4/1/5/1 provided that's the only station in the zone that you need. Way faster :p.

Sparky Sparkycorp
Moderator (English)
Moderator (English)
Posts: 8074
Joined: Tue, 30. Mar 04, 12:28
x4

Post by Sparky Sparkycorp » Wed, 28. May 14, 00:48

Hahaha, oh wow... hahaha!

Just went to check what crew I had on-board after using Taf! to hire someone... The newly-hired dude docked and entered the ship via the toilet while I was looking around! :lol:

Well placed Sir, well played.


Edit:
TheRealBix wrote: This little crappy mod
lol

docwho83
Posts: 168
Joined: Mon, 15. Jun 09, 23:10
x4

Post by docwho83 » Sat, 31. May 14, 01:06

Love the mod. It helps with just being able to send my ships back to get more supples without having to fly there first to see the dock locations.


Small request..... (I tried modding this mod to make it work no luck)

Can you add a version with discounts and commissions? I see in cat.8 (2.0 files) player_commission and player_discount

I tried adding following code to taf.xml just after the line of add_trade_subscription

Code: Select all


		<add_player_commission object="event.object.container" name="Tech Enticement" commission="50%" />
		<add_player_discount object="event.object.container" name="Insider Benefactor" discount="50%" />
[/code]
My Mods
RepairLasers Player controlled drone Also on steam
[Minefield] fell affliction minefield removed Also on steam
[Buildmodule] add research for buildmodule leak steals

Post Reply

Return to “X Rebirth - Scripts and Modding”