Greetings survivors, and welcome to the second installment in our dev-diary series. Today, we are going to focus on the trader algorithm improvement that was introduced in Update 15.
Want to stay up to date? Subscribe for updates
You can also follow us on Facebook or join our Discord.
We initially released the trading feature in Update 13. For the first time in Judgement, trading allowed players to engage in economics, selling surplus items and purchasing rare resources or powerful equipment that would help them battle the demonic horde.
While the feature was well received, the overwhelming feedback was that most items sold by the traders were either useless or too expensive. So expensive, in fact, that many players didn’t bother with the trading mechanics at all.
Trading was meant to be a secondary channel to receiving certain necessary goods. Getting a trader visit was supposed to be an event players looked forward to, and one of the biggest rewards for being in good relationships with neighboring settlements. Clearly, we wanted traders to be useful.
Trader prices were designed to be high, so that this route is actually secondary, and only used occasionally to get higher tier equipment. The main progress path was still to be achieved through research, crafting and scavenging. Getting higher tier equipment is one of the more challenging milestones in Judgment, where players need to get higher level research resources while still using lower level equipment. If players could easily buy their way to the next tier, that challenge would be lost. So, how do we make traders meaningful and useful, without breaking the balance?
The first step was to clearly identify the problem. The core problem, as we saw it, was not necessarily that the prices were too high, but that players had nothing they really wanted, such that they would be willing to pay the high prices, being offered to them. Players often got lower tier gear and resources, those that they could already craft themselves, and were unwilling to pay high prices for them.
Once we identified the issue, we attacked it on three fronts. First, we increased the selling price of equipment. It is now sold at 25% of the buying price, as opposed to 10% before Update 15. This would make it a bit more feasible to get enough scraps for an upgrade by selling lower tier equipment.
Second, we added some new items that are helpful, but not absolutely essential (as opposed to higher tier equipment), that can only be obtained through traders. You can find journals that will let your survivors learn new skills, gain experience, or even reset their skill points.
The third part of the solution was the most complicated one - a new algorithm that is meant to predict what the player might really be interested in buying, and offering some of these items at the traders.
Originally, the items a trader offered were a random selection from the items in a given tier, that was based on the current day in the game. This meant that when a player progressed faster than the demons, they would be offered useless, low tier equipment. If they advanced slower and were at a disadvantage, they would get very expensive high level equipment that they could rarely afford.
To improve that, we designed the algorithm from scratch and came up with an important variable: Desirability, our way to try and gauge how much a player would desire to obtain an item, at their current state. Every item that a trader might offer is analyzed, and then every trader offers at least a few items with very high desirability.
So how is desirability calculated? Let’s take a weapon as an example. Clearly, players would love to get their hands on a weapon that is better than anything they have, so all weapons that are one tier above the player’s current research tier get a bonus to their desirability. They are also less likely to want to spend a lot of money on weapons that they can make themselves, as it is more cost-effective to craft them. Weapons get a penalty to desirability when a player has the research required to craft them, and an even bigger penalty if the crafting station and resources are available.
Similar calculations are used for raw materials. If a player has none of this material, and the material’s tier is in line with what we assume the player needs to make their equipment, they get a boost to desirability. However, if a player already has a large stock of this resource, or can craft as many as are needed, there is a penalty.
The result is a system that tries to ensure that every trader offers the player some equipment they could really use (and usually not get anywhere else), and some materials they are currently lacking.
So far, our data and player feedback shows a major improvement. Traders are now actually used to upgrade equipment and get other unique items, but only so much that they provide a helping hand towards reaching the higher tier naturally so that players can craft their own higher tier equipment. This is exactly what we were aiming for. Feel the higher tier fights are too difficult? Then spend some more time on your base economy, sell a few lower tier resources and equipment, then buy a single piece of higher tier gear which can make the difference between victory and defeat, when scavenging for those pesky research kits that you need to craft your own high level equipment. Or maybe just buy that first research kit directly.
The traders algorithm is also moddable, modders can tinker with the bonuses and penalties to desirability, how many items a trader offers, and how many of these items are of high desirability.
Have your own insights and ideas on the traders’ mechanic? Let us know!