Re: Shops (now with source)
Posted: Mon May 06, 2013 10:33 am
Hi alois, in which phase your shop is curently ? are you going to implement real "money" ? (some stackable item in inventory)
The 'shop' part is (i hope) finished; of course there will be a ton of bugs As for the 'money' system, I do not know what to do: stacking money may create a problem with weights (say you have 2000 gold coins...), so - maybe - one could make a 'letter of credit' which is a scroll/note whose text is something like: "You have a credit of xxxx coins"; every time money is gained (either because you sell something, or because you gain it from a monster, or whatever) the 'text' in the scroll is changed to reflect the new amount of money: of course such an item shoud have an hook of the form "are you sure?" when you drop it...Drakkan wrote:Hi alois, in which phase your shop is curently ? are you going to implement real "money" ? (some stackable item in inventory)
scroll idea is not bad, but real money are real money also i do not think you need 2000 golds - cheapest item (lets say torch) could have value for example 1 gold. sword could have around 10 golds etc. Since there is 99 spaces for one stack if I am correct, weight problem should be fine as well. but thats just idea.alois wrote:The 'shop' part is (i hope) finished; of course there will be a ton of bugs As for the 'money' system, I do not know what to do: stacking money may create a problem with weights (say you have 2000 gold coins...), so - maybe - one could make a 'letter of credit' which is a scroll/note whose text is something like: "You have a credit of xxxx coins"; every time money is gained (either because you sell something, or because you gain it from a monster, or whatever) the 'text' in the scroll is changed to reflect the new amount of money: of course such an item shoud have an hook of the form "are you sure?" when you drop it...Drakkan wrote:Hi alois, in which phase your shop is curently ? are you going to implement real "money" ? (some stackable item in inventory)
I'm going to try it!
alois
I have gotten the shop to work in my mod (with some help from Alois) So if you want I can send you the dungeon file and you can compare to try and get it working. Let me know if you want me to upload it somewhere/send it to you.LordGarth wrote:Both the skyscript framework and shop framework have clone party script. Maybe that is the cause.
LordGarth
I have some non-standard stairs in my dungeon that use a clone party, when it came time to add in framework I had issues getting a number of functions to work till I commented out the clone party and they worked fineLordGarth wrote:Both the skyscript framework and shop framework have clone party script. Maybe that is the cause.
LordGarth
Code: Select all
function activate()
fw.addHooks('party','fake_stairs', {
onMove = function(self, dir)
code goes here
end
})
fw.debugPrint("fake stairs active")
end