Line 299: |
Line 299: |
| | Whether the [[#Target player|specified player(s)]] have chosen the given dialogue answer in a previous dialogue. | | | Whether the [[#Target player|specified player(s)]] have chosen the given dialogue answer in a previous dialogue. |
| |- | | |- |
− | | <samp>PLAYER_HAS_FLAG {{t|player}} {{t|id}}</samp> | + | | <samp>PLAYER_HAS_MAIL {{t|player}} {{t|mail id}} {{o|type}}</samp> |
− | | Whether the [[#Target player|specified player(s)]] have the given [[Modding:Mail data|mail flag]] set (with spaces allowed in the {{t|id}}). This checks the mailbox, tomorrow's mail, and mail received. | + | | Whether the [[#Target player|specified player(s)]] have the given [[Modding:Mail data|mail flag]] set. |
| | | |
− | See also <samp>PLAYER_HAS_MAIL_RECEIVED</samp>, which only checks mail received.
| + | The {{o|type}} (default <samp>Any</samp>) can be one of: |
| + | {| class="wikitable" |
| + | |- |
| + | ! type |
| + | ! effect |
| + | |- |
| + | | <samp>Any</samp> |
| + | | Mail in [[The Farm#Mailbox|the mailbox]], in the queue for tomorrow's mailbox, or already received. |
| + | |- |
| + | | <samp>Mailbox</samp> |
| + | | Mail in the mailbox. |
| + | |- |
| + | | <samp>Tomorrow</samp> |
| + | | Mail in the queue for tomorrow's mailbox. |
| + | |- |
| + | | <samp>Received</samp> |
| + | | Mail which either: |
| + | * was in the mailbox and read by the player; |
| + | * or has no letter in <samp>Data/mail</samp>, so it was added to the received list directly. |
| + | |} |
| |- | | |- |
| | <samp>PLAYER_HAS_ITEM {{t|player}} {{t|item}} {{o|min}} {{o|max}}</samp> | | | <samp>PLAYER_HAS_ITEM {{t|player}} {{t|item}} {{o|min}} {{o|max}}</samp> |
| | Whether the [[#Target player|specified player(s)]] have between {{o|min}} and {{o|max}} (default unlimited) matching items in their inventory, inclusively. The {{t|item}} can be <samp>858</samp> or <samp>(O)858</samp> (Qi Gems), <samp>73</samp> or <samp>(O)73</samp> (Walnuts), or the [[Modding:Migrate to Stardew Valley 1.6#Custom items|qualified or unqualified item ID]]. | | | Whether the [[#Target player|specified player(s)]] have between {{o|min}} and {{o|max}} (default unlimited) matching items in their inventory, inclusively. The {{t|item}} can be <samp>858</samp> or <samp>(O)858</samp> (Qi Gems), <samp>73</samp> or <samp>(O)73</samp> (Walnuts), or the [[Modding:Migrate to Stardew Valley 1.6#Custom items|qualified or unqualified item ID]]. |
− | |-
| |
− | | <samp>PLAYER_HAS_MAIL_RECEIVED {{t|player}} {{t|id}}</samp>
| |
− | | Whether the [[#Target player|specified player(s)]] have the given [[Modding:Mail data|mail flag]] in their mail-received list.
| |
− |
| |
− | See also <samp>PLAYER_HAS_FLAG</samp>, which also checks mail in the player's mailbox and tomorrow's mail.
| |
| |- | | |- |
| | <samp>PLAYER_HAS_PROFESSION {{t|player}} {{t|profession id}}</samp> | | | <samp>PLAYER_HAS_PROFESSION {{t|player}} {{t|profession id}}</samp> |
| | Whether the [[#Target player|specified player(s)]] have the given [[Skills|profession]] ID. | | | Whether the [[#Target player|specified player(s)]] have the given [[Skills|profession]] ID. |
− | |-
| |
− | | <samp>PLAYER_HAS_READ_LETTER {{t|player}} {{t|id}}</samp>
| |
− | | Whether the [[#Target player|specified player(s)]] have read a letter, where {{t|id}} is the internal mail ID (spaces allowed). For example, <code>PLAYER_HAS_READ_LETTER Any Visited_Island</code>.
| |
| |- | | |- |
| | <samp>PLAYER_HAS_RUN_TRIGGER_ACTION {{t|player}} {{t|id}}</samp> | | | <samp>PLAYER_HAS_RUN_TRIGGER_ACTION {{t|player}} {{t|id}}</samp> |
Line 455: |
Line 466: |
| | Whether the [[#Target player|specified player(s)]] have talked to an NPC at least once. The {{t|npc}} is an NPC's internal name. | | | Whether the [[#Target player|specified player(s)]] have talked to an NPC at least once. The {{t|npc}} is an NPC's internal name. |
| |- | | |- |
− | | <samp>PLAYER_IS_DATING {{t|player}} {{t|npc}}</samp><br /><samp>PLAYER_IS_ENGAGED {{t|player}} {{t|target}}</samp><br /><samp>PLAYER_IS_MARRIED {{t|player}} {{t|target}}</samp><br /><samp>PLAYER_IS_DIVORCED {{t|player}} {{t|npc}}</samp> | + | | <samp>PLAYER_NPC_RELATIONSHIP {{t|player}} {{t|npc}} {{t|type}}+</samp> |
− | | Whether the [[#Target player|specified player(s)]] have this relationship status with an NPC. The player is dating after giving the NPC a [[bouquet]], and engaged after giving a [[Mermaid's Pendant]] but before the marriage. The {{t|npc}} can be an NPC's internal name, or <samp>Any</samp> (check every romanceable NPC). | + | | Whether the [[#Target player|specified player(s)]] have one of the relationship statuses with an NPC. The {{t|npc}} can be an NPC's internal name or <samp>Any</samp> (match any NPC). |
| + | |
| + | {{t|type}} can be any combination of these values: |
| + | {| class="wikitable" |
| + | |- |
| + | ! type |
| + | ! effect |
| + | |- |
| + | | <samp>Friendly</samp> |
| + | | Met the NPC, but no other status applies. |
| + | |- |
| + | | <samp>Roommate</samp> |
| + | | The NPC has moved in with the player as a roommate. |
| + | |- |
| + | | <samp>Dating</samp> |
| + | | The player has given a [[bouquet]] to the NPC, but haven't yet given them a [[Mermaid's Pendant|mermaid's pendant]]. |
| + | |- |
| + | | <samp>Engaged</samp> |
| + | | The player has given a [[Mermaid's Pendant|mermaid's pendant]] to the NPC, but the marriage hasn't happened yet. |
| + | |- |
| + | | <samp>Married</samp> |
| + | | The NPC has moved in with the player as a spouse. |
| + | |- |
| + | | <samp>Divorced</samp> |
| + | | The player has dissolved their marriage with the NPC. |
| + | |} |
| |- | | |- |
− | | <samp>PLAYER_IS_ROOMMATE {{t|player}} {{t|target}}</samp> | + | | <samp>PLAYER_PLAYER_RELATIONSHIP {{t|player}} {{t|other player}} {{t|type}}+</samp> |
− | | Whether the [[#Target player|specified player(s)]] have a roommate. The {{t|target}} can be an NPC's internal name, <samp>Any</samp> (with any NPC), or <samp>Player</samp> (always false). | + | | Whether the [[#Target player|specified player(s)]] have one of the relationship types with the other specified player(s). The {{t|other player}} can be a [[#Target player|target player]] or <samp>Any</samp> (match any player). |
| + | |
| + | {{t|type}} can be any combination of these values: |
| + | {| class="wikitable" |
| + | |- |
| + | ! type |
| + | ! effect |
| + | |- |
| + | | <samp>Friendly</samp> |
| + | | No other status applies. |
| + | |- |
| + | | <samp>Engaged</samp> |
| + | | One of the players has given a [[Wedding Ring|wedding ring]] to the other, but the marriage hasn't happened yet. |
| + | |- |
| + | | <samp>Married</samp> |
| + | | The players are married. |
| + | |} |
| |- | | |- |
| | <samp>PLAYER_PREFERRED_PET {{t|player}} {{t|pet}}</samp> | | | <samp>PLAYER_PREFERRED_PET {{t|player}} {{t|pet}}</samp> |