Falcon's Tax Script Modification?

Started by CountVlad, May 26, 2010, 08:09:58 pm

Previous topic - Next topic

CountVlad

A while back I found a script by Falcon, which allowed you to modify the prices of items in a shop before you entered it.
Here's the thread: http://forum.chaos-project.com/index.php/topic,1807.0.html

I was wondering if there is any easy way to make a new script based on that one that will change the sell price for when you sell an item to a merchant? It would need to be a completely seperate script that could be called independently from the original tax system.

If it's possible, could someone explain to me how to do it? Even better, would someone be able to make it for me? I'm still a novice at scripting.

Thanks! :)

Jragyn

Erm, so yu want a script that will alter the % for which you sell back items to a merchant?
ie: instead of selling items back for half price, you sell them back at full price?


--J
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

CountVlad

Basicly, yeah. Instead of it being fixed at 50% you can set it by using a script in an event, in a very similar way to the Tax script. Do you know if there is any simple way of just modifying the tax script to change item sellback instead of item price?

Jragyn

The answer!Somewhat.

Its uhh, not like, eccentric or anything, but it'll get the job done.


--J
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

CountVlad

Wow! That's even better than I was expecting! Thanks! And... er... sorry Falcon. I'm gonna have to defect. I think I've got another script of yours, tho.

Jragyn

Well uhh...keep in mind, if it matters at all, Falcon's script DOES state the price altercations ingame, while mine does not, if its important to yu. Of course, if it IS important, I'm sure I could implement something along the same lines as Falcon.

ie:
Current BUY  rate: +25%
Current SELL rate: -10%



--J
A bright light can either illuminate or blind, but how will you know which until you open your eyes?

CountVlad

No, it's one of the features I was thinking about disabling. I've got an NPC who tells you, in general terms, the 'prosperity' of the settlement. The prosperity value (-100 to +100) then directly affects the prices of merchants in that settlement. Basically what I'm trying to do is set up some kind of economy system in the game so you can actually make money from trading!

Jragyn

That could be pretty awesome at least!
With the slight modification of the script I've provided, you should be able to establish that pretty well.
As you know, you can access variables within the text windows 'n stuff with '\V
  • ' making it completely possible to state the exact "prosperity" at anytime :D Hurray.


    --J
A bright light can either illuminate or blind, but how will you know which until you open your eyes?