Tuesday, October 14, 2025

Vendor Buff-Shops

One of the last things I've decided I need to have in the game before I can open up to some open testing is having vendors that sell buffs or effects. While it's reasonably quick to get a healer up to be able to cast a resurrection spell, if you don't have one... you kinda don't have one.

I was going to get around this by making items that could be applied - and I did in fact set up some test items that do that, but I figure it's better to go through and make the changes to the database that are needed to support these things before there's players running about in case I break things.

So I've been working on how to add that to the schema, and this morning, since the first thing, I've been trying to work through a dumb bug that was stopping something working - and making me exceptionally frustrated. Turns out it was a scope issue with one variable, in one function where the functionality had been expanded and I could not for the life of me work out why things weren't working... when clearly they should have been. And they were. Just inside that one single function.

Anyhow...... now that I finally got through there, I need to make a bunch more changes to other sections of the database, add the new fields to the extracts that the app picks up, and finally I can make the interface in the app to let you turn up to a healer, or a tavern kitchen or whatever else, and pick up some sweet healing or buffs from the locals! 

The other thing I managed to incorporate nicely into this change, was the ability to set up other types of vendors with more ease as well - and I have a few more ideas for those. Not that I really need to implement them yet, but knowing I can do so later without too much hassle is great.

No comments:

Post a Comment

Vendor Buff-Shops

One of the last things I've decided I need to have in the game before I can open up to some open testing is having vendors that sell buf...