Changes

Jump to navigation Jump to search
2,124 bytes added ,  00:00, 17 March 2018
→‎Event preconditions: expand, correct info, update for upcoming Stardew Valley 1.3
Line 31: Line 31:     
==Event preconditions==
 
==Event preconditions==
Each event has a key which includes an event ID and any preconditions. Event preconditions include any number of the following arguments (separated by <tt>/</tt>):
+
Each event has a key which includes an event ID and any preconditions. Event preconditions include any number of the following arguments (separated by <tt>/</tt>).
 +
 
 +
Notes:
 +
* ''Current player'' is the one playing the instance of the game doing the check. ''Host player'' is the main player running a multiplayer farm, or the current player if single-player.
 +
* 'NPC name' means their internal English name, not the translatable display name.
 +
* Most text is case-sensitive (e.g. <tt>Mon</tt> is not the same as <tt>mon</tt>).
    
{| class="wikitable"
 
{| class="wikitable"
Line 38: Line 43:  
! syntax
 
! syntax
 
! precondition
 
! precondition
 +
|-
 +
| 65
 +
| <tt>A {{t|dialogue ID}}</tt>
 +
| {{upcoming|1.3 beta|The special dialogue event with the given ID is in progress. Default values: █████████, <tt>cc_Boulder</tt>, <tt>cc_Bridge</tt>, <tt>cc_Bus</tt>, <tt>cc_Greenhouse</tt>, <tt>cc_Minecart</tt>, <tt>Introduction</tt>, <tt>joja_Begin</tt>. ''TODO:'' fill in details when public.}}
 +
|-
 +
| 67
 +
| <tt>C</tt>
 +
| Host player has not finished the [[community center]], or has not seen the grand reopening yet.
 +
|-
 +
| 68
 +
| <tt>D {{t|name}}</tt>
 +
| Current player is dating the given NPC name.
 +
|-
 +
| 70
 +
| <tt>F</tt>
 +
| Today is ''not'' a festival day.
 +
|-
 +
| 72
 +
| <tt>H</tt>
 +
| {{upcoming|1.3 beta|Current player is the host player.}}
 +
|-
 +
| 72
 +
| <tt>Hn {{t|letter ID}}</tt>
 +
| {{upcoming|1.3 beta|Same as #108 (letter), but check the host player.}}
 +
|-
 +
| 72
 +
| <tt>Hl {{t|letter ID}}</tt>
 +
| {{upcoming|1.3 beta|Same as #108 (letter), but check the host player.}}
 +
|-
 +
| 74
 +
| <tt>J</tt>
 +
| Current player has finished the [[Joja Warehouse]].
 +
|-
 +
| 77
 +
| <tt>M {{t|number}}</tt>
 +
| Current player has at least this much money.
 +
|-
 +
| 83
 +
| <tt>S {{t|█████████ ID}}</tt>
 +
| {{upcoming|1.3 beta|Current player has seen the █████████ with the given ID. ''TODO:'' fill in details when public.}}
 
|-
 
|-
 
| 97
 
| 97
 
| <tt>a {{t|x}} {{t|y}}</tt>
 
| <tt>a {{t|x}} {{t|y}}</tt>
| Player is at that tile position.
+
| Current player is on that tile position.
 
|-
 
|-
 
| 98
 
| 98
 
| <tt>b {{t|number}}</tt>
 
| <tt>b {{t|number}}</tt>
| Player has reached the mine bottom at least that many times.
+
| Current player has reached the bottom floor of the [[Mines]] at least that many times.
 
|-
 
|-
 
| 99
 
| 99
 
| <tt>c {{t|number}}</tt>
 
| <tt>c {{t|number}}</tt>
| Player has at least that many free inventory slots.
+
| Current player has at least that many free inventory slots.
 
|-
 
|-
 
| 100
 
| 100
 
| <tt>d {{t|day of week}}</tt>
 
| <tt>d {{t|day of week}}</tt>
| Today is ''not'' one of the specified days (may specify multiple days). (Sun Mon Tue Wed Thu Fri Sat)
+
| Today is ''not'' one of the specified days (may specify multiple days). Valid values: Mon, Tue, Wed, Thu, Fri, Sat, Sun.
 
|-
 
|-
 
| 101
 
| 101
 
| <tt>e {{t|event ID}}</tt>
 
| <tt>e {{t|event ID}}</tt>
| Player has seen the specified event (may contain multiple event IDs).
+
| Current player has seen the specified event (may contain multiple event IDs).
 
|-
 
|-
 
| 102
 
| 102
 
| <tt>f {{t|name}} {{t|number}}</tt>
 
| <tt>f {{t|name}} {{t|number}}</tt>
| Player has that many friendship points with NPC (may contain multiple name/number pairs). Each heart is 250 points.
+
| Current player has at least {{t|number}} [[friendship|friendship points]] with the {{t|name}} NPC. Can specify multiple name and number pairs, in which case the player must meet all of them.
 
|-
 
|-
 
| 103
 
| 103
 
| <tt>g {{t|gender}}</tt>
 
| <tt>g {{t|gender}}</tt>
| Player is ''not'' the specified gender ("male" or "female").
+
| Current player is ''not'' the specified gender (<tt>male</tt> or <tt>female</tt>).
 
|-
 
|-
 
| 104
 
| 104
 
| <tt>h {{t|pet}}</tt>
 
| <tt>h {{t|pet}}</tt>
| Player does not already have a pet, and their preference matches {{t|pet}} ("cat" or "dog").
+
| Current player does not already have a pet, and their preference matches {{t|pet}} ("cat" or "dog").
 
|-
 
|-
 
| 105
 
| 105
 
| <tt>i {{t|item ID}}</tt>
 
| <tt>i {{t|item ID}}</tt>
| Player has specified item in their inventory.
+
| Current player has specified item in their inventory.
 
|-
 
|-
 
| 106
 
| 106
 
| <tt>j {{t|number}}</tt>
 
| <tt>j {{t|number}}</tt>
| Player has played ''more'' than that many days.
+
| Current player has played ''more'' than {{t|number}} days.
 
|-
 
|-
 
| 107
 
| 107
 
| <tt>k {{t|event ID}}</tt>
 
| <tt>k {{t|event ID}}</tt>
| Player has ''not'' seen that event (may contain multiple event IDs).
+
| Current player has ''not'' seen that event (may contain multiple event IDs).
 
|-
 
|-
 
| 108
 
| 108
 
| <tt>l {{t|letter ID}}</tt>
 
| <tt>l {{t|letter ID}}</tt>
| Player has received that mail letter. This is often overloaded as a general flag, by specifying an invalid mail letter and marking it read when an arbitrary condition is met.
+
| Current player has received that mail letter. This is often overloaded as a general flag, by specifying an invalid mail letter and marking it read when an arbitrary condition is met.
 
|-
 
|-
 
| 109
 
| 109
 
| <tt>m {{t|number}}</tt>
 
| <tt>m {{t|number}}</tt>
| Player has earned at least this much money.
+
| Current player has earned at least this much money (regardless of how much they currently have).
 
|-
 
|-
 
| 110
 
| 110
Line 97: Line 142:  
| 111
 
| 111
 
| <tt>o {{t|name}}</tt>
 
| <tt>o {{t|name}}</tt>
| Player is ''not'' married to that NPC.
+
| Current player is ''not'' married to that NPC.
 
|-
 
|-
 
| 112
 
| 112
 
| <tt>p {{t|name}}</tt>
 
| <tt>p {{t|name}}</tt>
| Specified character is in the current game location.
+
| Specified NPC is in the current player's location.
 
|-
 
|-
 
| 113
 
| 113
 
| <tt>q {{t|dialogue ID}}</tt>
 
| <tt>q {{t|dialogue ID}}</tt>
| Player has answered the specified dialogue question (may contain multiple dialogue IDs). Unclear whether this is the question ID or answer ID.
+
| Current player has chosen the given answer in a dialogue. May contain multiple dialogue IDs, in which case they must all have been selected.
 
|-
 
|-
 
| 114
 
| 114
 
| <tt>r {{t|number}}</tt>
 
| <tt>r {{t|number}}</tt>
| % chance (value between 0 and 1).
+
| A random probability check, where {{t|number}} is the probability between 0 and 1 (e.g. 0.2 for 20% chance).
 
|-
 
|-
 
| 115
 
| 115
 
| <tt>s {{t|item ID}} {{t|number}}</tt>
 
| <tt>s {{t|item ID}} {{t|number}}</tt>
| Player has shipped at least this many of the specified item (may specify multiple item/number pairs).
+
| Current player has shipped at least {{t|number}} of the specified item. Can specify multiple item and number pairs, in which case all of them must be met.
 
|-
 
|-
 
| 116
 
| 116
Line 125: Line 170:  
| 118
 
| 118
 
| <tt>v {{t|name}}</tt>
 
| <tt>v {{t|name}}</tt>
| The specified NPC is visible.
+
| The specified NPC is not invisible (regardless of whether they're on-screen).
 
|-
 
|-
 
| 119
 
| 119
 
| <tt>w {{t|weather}}</tt>
 
| <tt>w {{t|weather}}</tt>
| Current weather matches specified value ("rainy" or "sunny").
+
| Current weather matches {{t|weather}}. Valid values: rainy, sunny.
 
|-
 
|-
 
| 120
 
| 120
 
| <tt>x {{t|event ID}} {{t|letter ID}}</tt>
 
| <tt>x {{t|event ID}} {{t|letter ID}}</tt>
| Marks the specified ID as seen, adds the specified letter to tomorrow's mail, then returns false.
+
| For the current player: mark the specified ID as seen, add the specified letter to tomorrow's mail, then return false (so the event doesn't trigger).
 
|-
 
|-
 
| 121
 
| 121
translators
8,403

edits

Navigation menu