By default an NPC is in the valley from the first day. Unlock in [Social] holds them back until the conditions are true, the way the game's own late arrivals work. The rules are plain words, so you do not need to write a game state query.
toml
[Social]
Unlock = ["day 5", "hearts Penny 4", "not joja"]
Every rule must be true at the same time. Put not in front of a rule to turn it round. A pack that uses Unlock must require NPC Helper 2.6.0.
The rules#
| Rule | True when |
|---|---|
day 5 or after day 5 |
at least this many days have been played |
year 2 |
it is this year or later |
season spring or season spring summer |
it is one of these seasons |
event 3691371 |
a player has seen this event |
mail ccVault |
a player has this letter |
met Penny |
a player has met this NPC |
hearts Penny 4 |
a player has at least this many hearts with the NPC (0 to 14) |
relationship Penny dating |
the relationship is friendly, dating, engaged, married, roommate or divorced |
community center |
the community center is complete |
joja |
the Joja route is complete |
query <game state query> |
anything else, written the way the game writes it |
toml
Unlock = [
"season spring summer",
"not event 3691371",
"query PLAYER_HAS_ITEM Current (O)74",
]
What is checked#
- A rule that is not understood is skipped with a warning that lists the rules above. The NPC still loads.
- A rule is one line of plain text, with no tabs or control characters.
afteronly goes withday.notcannot turn round aquerythat holds a comma, because that is several conditions. Write each condition as its own rule.- Rules are combined with a comma, which the game reads as "and". For "or", write one
querythat uses the game'sANY.
In the SDK#
csharp
new NpcBuilder("Rei").Unlock("day 5", "hearts Penny 4");
Unlock throws an ArgumentException that names the rule when it is not understood. See the C# SDK.