Repository navigation
π Condition Keys Reference
JiHyeon Lee edited this page Oct 1, 2025
·
5 revisions
Dialogue Expander allows you to add conditions to NPC dialogues and events.
Conditions can be written using either the short key or the full name, and both forms can be mixed.
| Short | Full name | Description | Example |
|---|---|---|---|
w |
weather | Weather (5 fixed types) |
"Sunny", "Rainy", "Snowy", "Storm", "GreenRain"
|
t |
time | Time (range only) |
"0600-1200", "1800-2400"
|
l |
location | Location |
"Town", "Indoor", "Outdoor", "Patio", "SpouseRoom"
|
d |
date | Absolute date |
"spring_15", "Mon", ["spring", "Mon", 15]
|
ds |
daysInState | Days since current state started |
0 (first day), 7 (7th day), 100 (100th day) |
a |
action | Spouse action events / special actions |
"jobLeave", "funReturn", "nobed"
|
i |
item | Item condition |
458, [458,460]
|
f |
flag | Flags (mail, events, orders, recipes) |
"mail.intro", "recipe.Pizza", "bool.TownKey"
|
k |
kids | Number of children |
0 (none), 1 (one child), 2 (two children) |
c |
chance | Probability (0β100, %) |
5 (5% chance), 80 (80% chance) |
r |
rel | Relationship state |
"spouse", "exspouse", "dating"
|
luck |
luck | Playerβs daily luck (good/neutral/bad) |
"good", "neutral", "bad"
|
flag lets you branch based on the playerβs progress.
Supported categories:
| Prefix | Description | Example |
|---|---|---|
mail.{id} |
Player has received a specific mail |
"mail.intro", "!mail.clubCard"
|
event.{id} |
Player has seen a specific event |
"event.1001", "!event.754602"
|
order.{id} |
A Special Order is currently active | "order.FishStew" |
orderdone.{id} |
A Special Order has been completed | "orderdone.IslandResort" |
recipe.{name} |
Player has learned a cooking recipe |
"recipe.Pancakes", "!recipe.Pizza"
|
craft.{name} |
Player has learned a crafting recipe |
"craft.CheesePress", "!craft.Keg"
|
bool.RustyKey |
Player has the Rusty Key | "bool.RustyKey" |
bool.SkullKey |
Player has the Skull Key | "bool.SkullKey" |
bool.TownKey |
Player has the Town Key | "bool.TownKey" |
- Use
!to invert a condition.
Example:"!mail.clubCard"β true if the mail has not been received.
You can branch dialogue/events based on spouse leaving/returning home.
| Value | Description |
|---|---|
jobLeave |
Leaves for work at 9:00 AM |
jobReturn |
Returns home from work after 1:00 PM |
funLeave |
Leaves for leisure at 9:00 AM |
funReturn |
Returns home from leisure after 1:00 PM |
You can restrict dialogues/events to specific relationship states.
Examples:
"Today I want to spend time with my spouse.": { "rel": "spouse" }
"Weβve started dating again.": { "rel": "dating" }
"Now youβre just my exβ¦": { "rel": "exspouse" }-
Multiple conditions are combined with AND logic. (All conditions must be true to trigger.)
-
OR/grouped conditions are not supported yet (may be added in future updates).
-
If no condition is specified, the "default" line is used.