Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Shopkeeper question

Shopkeeper question

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Kain   USA  (43 posts)  Bio
Date Thu 04 Jul 2002 11:58 PM (UTC)
Message
Another question (and thanks for all the help so far):

I'm having a little trouble understanding how the shopkeeper code exactly works. Here's a little background on what I'm trying to do first...

Let's say in Area A, you can buy foo at a real cheap price. The player can then travel all the way to Area Z and foo is highly valued.

My question is: is this already part of the smaug system or something that needs to be specifically coded in? I guess what I'm asking is that are the values of items based on the areas or on the inherent value of the item when it is created and then set by the stats of the shopkeeper? The reason I'm trying to be so exacting is that say I always want the price of X that all shopkeeps sell to be fairly the same but the price of Y that all shopkeeps sell to fluctuate based on area.

What I'm driving at is that I'd like to create localized economies and am trying to figure out if this is going to be "easy" to do.

If this isn't clear, let me know and I'll try and be a bit more precise...

Thanks
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 07 Jul 2002 11:40 PM (UTC)
Message
I think the price is based on its level, so what you want to do would require some coding changes. Probably not too much, but some. Maybe a flag "price varies" and some way of knowing what area it is valuable in.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,633 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.