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)
Items can Initiate Quests Now!
In an awesome ongoing surge through things I've wanted to get done for ages, I modified my editor to let items start quests, then brough...
-
It feels a long time ago now, but I was listening to Tim (https://www.youtube.com/@CainOnGames) ages ago and he was talking about getting st...
-
I had a great night in the editor code today. I've had ideas bouncing about my head since yesterday about what I want to implement and h...
-
I've been chipping away nicely at a whole assorted chocolate-box of various tweaks, fixes and additions to the code. In no particular or...
No comments:
Post a Comment