Jump to content


Photo

Quick store modification question


  • Please log in to reply
3 replies to this topic

#1 Duality

Duality

    Deranged Mactel User

  • Member
  • 150 posts

Posted 01 April 2008 - 03:19 PM

Hmm... I'm messing around with a new mod and I have a question, any ideas would be welcome since I can't really figure out an elegant way to approach this.

Here's the problem; I want to make a store that don't use gold as the currency of choice but something else. Something like the tokens in the Asylum. However, as far as I can tell, this is impossible.

So....
Is it possible to test conditions while still in the store screen? i.e. The player buys something and a check occurs to see if they have enough points to purchase the item? If so, the points are deducted from their total, if not, the item is removed.

Would this have to be run from player.bcs? (bleh, not really what I want to do)


Alternatively, and definitely not an ideal choice, can you run checks on store exit?


The only other thing I can think of would to stick a whole bunch of if statements into player.bcs, so that the checks run at some point after they exit the store. Or I suppose I could stick it in the area.bcs... Yuck. An area.bcs setup would cause other problems potentially...


Since it's not possible to tag an item as unbuyable..... I suppose I could setup a simple dialog setup where you pick items and buy them, then have a store setup where you can look at them, but they all cost 1000000 gold, thus preventing people from purchasing them in the actual store setup....

The only real reason I want some sort of store setup is so that people can see an item before they buy it, otherwise they have to sort through a readme to figure out what items do...

Meh, nothing seems to work like I want it to. Anyone have any suggestions on how this might be accomplished?

Edited by Duality, 01 April 2008 - 03:20 PM.


#2 vilkacis

vilkacis

    Rashemen REPRESENT! Word to yo hamsta!

  • Modder
  • 1571 posts

Posted 01 April 2008 - 04:30 PM

I remember PS:T having a store that uses dialogue for everything - the owner pretty much goes "I have X, Y and Z for sale" and the player can ask to be shown a specific item and get a "this item does A B C and I want Q amount of money for it, interested? Y/N" kind of description. The easiest and smoothest way to handle this would probably be to do something similar. (I uninstalled Torment though, so I can't check the exact specifics.)

For weapons/armour, you can just describe the enchantment level with words like "weak enchantment" instead of +1 and "overwhelming power" instead of +5.

#3 Duality

Duality

    Deranged Mactel User

  • Member
  • 150 posts

Posted 02 April 2008 - 09:08 AM

I remember PS:T having a store that uses dialogue for everything - the owner pretty much goes "I have X, Y and Z for sale" and the player can ask to be shown a specific item and get a "this item does A B C and I want Q amount of money for it, interested? Y/N" kind of description. The easiest and smoothest way to handle this would probably be to do something similar. (I uninstalled Torment though, so I can't check the exact specifics.)

For weapons/armour, you can just describe the enchantment level with words like "weak enchantment" instead of +1 and "overwhelming power" instead of +5.

Yeah, I guess that would be the easiest way to do it, as far as you know, there isn't any way to modify store functions directly?

#4 vilkacis

vilkacis

    Rashemen REPRESENT! Word to yo hamsta!

  • Modder
  • 1571 posts

Posted 02 April 2008 - 09:46 AM

as far as you know, there isn't any way to modify store functions directly?

As far as I know? No. I'm hardly the definite authority on IE modding, though.