any way to get amount spent at a vendor?

Post » Tue Nov 09, 2010 9:55 am

So my work on a town simulation mod is coming along nicely, implementing new stuff added in Dead Money for a compatible expanded version will take some time, but it's coming along nicely.

I just am having one issue.

One of the key features of the mod is that the town starts off poor, dilapidated and at risk of being overrun by the escaped powder ganger convicts, through your actions you can help the town become more secure, wealthy, independent, ect.

There's two things that I'm having trouble with though.

I'd like the town's vendor to count how much you have spent there and that to have an impact on the economic fortunes of the town, I would also like that effect to decrease if you have a high barter skill (if you're shrewdly milking the town merchants for money they're not getting rich quick off of you).

Ideally I'd also like to implement a feature like in FO3 with the Canterbury Commons investment thingy (or the CARs quest in Paradise Falls), where after patronizing the store to a certain degree they gain access to new items and a higher base cap count independent of just increasing as you gain levels.

Essentially my goal is to model the effects of a big-time adventurer on the economy of a small town, with the prosperity of the town increasing as you buy and sell with their merchants. I also hope to make this effect dependent on your bartering skill, in that the higher your skill the more slowly your actions impact the merchants, because you're pushing them closer and closer to their wholesale cost.
User avatar
Hannah Barnard
 
Posts: 3421
Joined: Fri Feb 09, 2007 9:42 am

Post » Tue Nov 09, 2010 1:12 am

After this many months I figure a bump isn't out of line.

Can anyone help me out?
User avatar
Breanna Van Dijk
 
Posts: 3384
Joined: Mon Mar 12, 2007 2:18 pm

Post » Tue Nov 09, 2010 8:12 am

have a trigger go off when you enter the shop that takes the merchants money and records it to a var. after doing business have another trigger go off that takes the enter amount and the ending amount and adds/subtracts them and records it into a global var. have any building up/building down scripts be based off of the global var.
User avatar
Emerald Dreams
 
Posts: 3376
Joined: Sun Jan 07, 2007 2:52 pm

Post » Tue Nov 09, 2010 7:30 am

brilliant idea! thank you so much.
User avatar
RObert loVes MOmmy
 
Posts: 3432
Joined: Fri Dec 08, 2006 10:12 am


Return to Fallout: New Vegas