Jump to content


Photo

Prices varying with conversation choices


  • Please log in to reply
11 replies to this topic

#1 Bookwyrme

Bookwyrme
  • Modder
  • 5804 posts

Posted 21 March 2007 - 01:32 PM

Is it possible to code a store so that the prices vary depending on the response the PC makes in conversation? More than once, I mean.

Say, the PC visits and the conversation runs:

Storekeep greeting

PC1: Pleasant reply (prices go down)
PC2: Neutral reply (Prices stay at the normal level)
PC3: Rude reply (Prices go up)

Purchases made.

PC leaves & the store prices are back at "normal" until the next such conversation.

Mods: <a data-cke-saved-href="http://www.shsforums...-auroras-shoes/">Aurora's Shoes (released),

 


 

 


#2 Yovaneth

Yovaneth

    The newly-appointed Master Builder of Baldur's Gate

  • Modder
  • 3061 posts

Posted 21 March 2007 - 01:37 PM

Is it possible to code a store so that the prices vary depending on the response the PC makes in conversation? More than once, I mean.

I've done this by using two stores (or three in your case) all of which have the same items but at different prices. The dialog trail then opens the relevant store depending on the PC's response.

-Y-

#3 Rabain

Rabain

    God

  • Member
  • 653 posts

Posted 21 March 2007 - 03:12 PM

The only problem is that if the PC has the same options subsequent times they visit the Merchant items you sold will only show up if you choose the same option you chose when you sold the item to the store first.

E.G: You talk to the merchant and choose the Rude reply and then sell him some wands into store3. If you come back and choose Neutral Reply you will see store2 which won't have the wands in it you sold earlier (they remain in store3).

No problem if Merchant sticks with store chosen in first dialog.
A knight without armour in a savage land...

#4 Bookwyrme

Bookwyrme
  • Modder
  • 5804 posts

Posted 21 March 2007 - 03:14 PM

That is a significant drawback.

Mods: <a data-cke-saved-href="http://www.shsforums...-auroras-shoes/">Aurora's Shoes (released),

 


 

 


#5 berelinde

berelinde

    Troublemaker

  • Modder
  • 4916 posts

Posted 21 March 2007 - 03:37 PM

E.G: You talk to the merchant and choose the Rude reply and then sell him some wands into store3. If you come back and choose Neutral Reply you will see store2 which won't have the wands in it you sold earlier (they remain in store3).


Depending on how you look at it, this might be a feature as opposed to a drawback.

I always thought it was ridiculous that Ribald would hang on to that +1 sword you sold him forever.

"Imagination is given to man to console him for what he is not; a sense of humor, for what he is." - Oscar Wilde

berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum


#6 Yovaneth

Yovaneth

    The newly-appointed Master Builder of Baldur's Gate

  • Modder
  • 3061 posts

Posted 21 March 2007 - 03:45 PM

That is a significant drawback.

Damn. Yes. I checked and I find that I've actually tagged the stores so that the storekeeper remembers CHARNAME and always offers the same option. That seemed a reasonable action on the grounds that the storekeeper would remember a rude customer whereas everyone else (including CHARNAME, if he/she had behaved) would get the better prices.

-Y-

Edited by Yovaneth, 21 March 2007 - 03:47 PM.


#7 SConrad

SConrad

    I swear to drunk I'm not God

  • Administrator
  • 11149 posts

Posted 21 March 2007 - 04:10 PM

E.G: You talk to the merchant and choose the Rude reply and then sell him some wands into store3. If you come back and choose Neutral Reply you will see store2 which won't have the wands in it you sold earlier (they remain in store3).

This also works the other way around - if store3 has one particular magic item in stock, and you purchase that one, the next time you visit store2 it will be as if it's magically reappeared in the store.

Posted Image Khadion NPC mod - Team leader, head designer
Posted Image Hubelpot NPC mod - Team leader, coder
Posted Image NPC Damage - Coder
Posted Image PC Soundsets - Coder, voice actor
Posted Image Brythe NPC mod - Designer
Posted Image DragonLance TC - Glory of Istar - Designer
Posted Image The NPC Interaction Expansion Project - Writer for Cernd, Sarevok
Posted Image The Jerry Zinger Show - Producer

Iron Modder 5 - Winner


#8 Bookwyrme

Bookwyrme
  • Modder
  • 5804 posts

Posted 21 March 2007 - 07:47 PM

That is a significant drawback.

Damn. Yes. I checked and I find that I've actually tagged the stores so that the storekeeper remembers CHARNAME and always offers the same option. That seemed a reasonable action on the grounds that the storekeeper would remember a rude customer whereas everyone else (including CHARNAME, if he/she had behaved) would get the better prices.

-Y-



I was hoping for a way to vary the prices more often and for the change to hold only for the single conversation.

Mods: <a data-cke-saved-href="http://www.shsforums...-auroras-shoes/">Aurora's Shoes (released),

 


 

 


#9 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 21 March 2007 - 11:39 PM

I was hoping for a way to vary the prices more often and for the change to hold only for the single conversation.

Unfortunately...

Retired from modding.


#10 Kulyok

Kulyok
  • Modder
  • 2450 posts

Posted 21 March 2007 - 11:52 PM

Temporary "Reaction" boost, not unlike Friends spell or something, doesn't work? (I've no idea how to modify spells/effects, just a thought).

#11 GeN1e

GeN1e

    A very GAR character

  • Modder
  • 1604 posts

Posted 22 March 2007 - 12:22 AM

Good idea, but prices depend only upon chrmodst.2da and repmodst.2da, not the reaction.

Retired from modding.


#12 Kulyok

Kulyok
  • Modder
  • 2450 posts

Posted 22 March 2007 - 01:51 AM

Yep, that's what I meant: modifying CHA/reputation(+ or -) for about five seconds; but since it is such a drastic measure, probably equaling to "burn the entire Left Side to steal an old tunic" ©, I guess it's a bad idea.

Edited by Kulyok, 22 March 2007 - 01:51 AM.