Megi in "Sultan's Game" is a special and important character in the game. The card of wife's dissatisfaction has caused headaches for many novice players in the early stage. Because there are too many ways of generating dissatisfaction in his wife, it is almost impossible to completely ban it. We can start with the code of the card cancellation ceremony to reduce the difficulty of the game.
How to eliminate wife’s dissatisfaction in Sultan’s game
My wife's dissatisfaction with this card has caused headaches for many novice players in the early stage. On the one hand, it is extremely easy to be dissatisfied, and on the other hand, the conditions for canceling the card are relatively harsh. Because there are too many ways for wife to develop dissatisfaction, it is almost impossible to completely ban it. We can start with the code of the card removal ceremony to reduce the difficulty of the game.
The id of the "Eliminate Wife's Dissatisfaction" ceremony is 5000009. We use a text editor to open steamapps\\common\\Sultan's Game DEMO\\Sultan's
Game_Data\\StreamingAssets\\config\\rite\\5000009.json file, here I use vscode to demonstrate:
We can understand many attributes at the beginning of the code in the future. At present, we only need to know "round_number": 1 means that it will take one round to complete after starting this ceremony. If you change it to 0, you can settle immediately without waiting until the next day.
Next, our first step is to go to the end of the code and check the "cards_slot" part:
"cards_slot" specifies which cards can be placed on each card slot of the ceremony, and cards that are not within the specified range cannot be placed on them. We can see that the condition (condition) of s2 is all types of gold jewelry, or books that my wife likes, or Naibhani, etc.
Therefore, if we want to use something else to eliminate the card, we just need to add "is":xxxxxx so that the card with id xxxxxx can be put on.
Here I want to add two more special circumstances:
1. If we want to put gold coins here and set an upper and lower limit for the number of gold coins placed, we can add "all":{"type":"item","cost. Gold coins":[m,n]}, where m is the lower limit and n is the upper limit. We know that Sultan's game can be placed quickly with right-clicking cards, and setting the upper limit can prevent players from accidentally stuffing all gold coins into the ceremony;
2. If we want to put any type of sultan card here, we can add "type":"sudan".
In the second step, we go back to the front of the code and check the "settlement_prior" attribute item. The purpose of this part is to determine what type of cards you put in after the launch ceremony and make corresponding responses.
The condition of each piece of code is as usual. After judging that the id of the card you put into slot 2 satisfies "s2.is":xxxxxx, the current code block will be executed. First, the text of the title and text are output. The result (result) is to clear the card in the s4 slot (that is, the wife's dissatisfaction).
Since I imagined that the protagonist uses gold coins to take his wife to go shopping, "clean.s2" is added: 1. This line clears the gold coins placed in slot 2. Of course, if you don't want the card in slot 2 to be destroyed, you can not add it, just like the code block in the second part of my picture.
Next, we save the file, restart the game, and check the running effect in the game, and we can see that it is very successful.