Characters can now make purchases using tokens instead of money when a vendor allows it. This means a multitude of things. Firstly, I can now give mages some tokens when they are created, so you'll be able to pick and choose the spells you have to start with. Same for other classes to get a nice bit of armor, or a nicer weapon etc. Brilliant. Secondly, it means that I'll be able to have some quests reward you with a token that you'll be able to trade for what you want, rather than just a single item from the NPC. Again much better. And lastly, it also opens up the potential to have a form of barter in certain places, or with certain vendors which is quite intriguing from a story point of view.
Wednesday, April 23, 2025
Token Purchases Finally Functioning
Given how nicely and quickly I managed to implement characters starting with gear yesterday, I really thought I'd have a chance of getting tokens implemented yesterday. Alas, it was a lesson in hubris, and towards the end of the day, I thought I was within reach - after having upgraded my editor to handle these things, then making changes to the app in how items are read, then changes to how some adapters process things, then a whole bunch of stuff what happens in the app when checking if a purchase can be made, then finally working out what needs to be passed to the server and eventually getting it passed there.... to realize that unless I made significant changes to much of what I'd just coded, that the server would need to do most of it all over again - and that was not going to be efficient. So this morning I managed to get stuck straight into it as I've got the day off (I've actually had the last few off, hence the dive into bigger things) and made the needed changes, passed all the extra information to the server.... and finally...
Subscribe to:
Post Comments (Atom)
The King is Dead. Long Live the King!
So that was the cry that went up in medieval England when a king died, to herald both the passing of the old monarch, and the crowning of a ...

-
I've been bug fixing things that I could have sworn black and blue were working, as well as having a friend do some solid testing. So, t...
-
Super quick one from me tonight: I've been doing some updates to bits of the world that weren't as finished as I thought - there wer...
-
One of the things I'd sort of half implemented so far, but not really fully gotten around to, was keeping the character state up to date...
No comments:
Post a Comment