Changes

Jump to navigation Jump to search
→‎Built-in actions: update for recent 1.6 alpha builds, fill in a TODO, fix order
Line 64: Line 64:  
|-
 
|-
 
| <samp>all</samp>
 
| <samp>all</samp>
| (''remove only'') Remove it everywhere (mailbox, tomorrow's mailbox, and received mail).
+
| Add or remove it everywhere (mailbox, tomorrow's mailbox, and received mail).
 
|}
 
|}
   Line 77: Line 77:  
| <samp>AddSpecialOrder {{t|order ID}}</samp><br /><samp>RemoveSpecialOrder {{t|order ID}}</samp>
 
| <samp>AddSpecialOrder {{t|order ID}}</samp><br /><samp>RemoveSpecialOrder {{t|order ID}}</samp>
 
| Add or remove a [[Modding:Special orders|special order]].
 
| Add or remove a [[Modding:Special orders|special order]].
 +
|-
 +
| <samp>MarkActionApplied {{t|player}} {{t|answer ID}} {{o|applied}}</samp>
 +
| Mark a <samp>Data/TriggerActions</samp> entry as applied or non-applied for the [[#Target player|specified player(s)]], depending on {{o|applied}} (default <samp>true</samp>). This can be used to skip or re-run an entry, since <samp>Data/TriggerActions</samp> entries are only applied once by default.
 +
 +
Note that an entry can't mark ''itself'' unapplied (but you can add a second entry which marks the first one unapplied).
 
|-
 
|-
 
| <samp>MarkEventSeen {{t|player}} {{t|event ID}} {{o|seen}}</samp>
 
| <samp>MarkEventSeen {{t|player}} {{t|event ID}} {{o|seen}}</samp>
| Mark [[Modding:Event data|an event]] as seen (if {{o|seen}} is <samp>true</samp>) or not seen (if <samp>false</samp>) for the [[#Target player|specified player(s)]].
+
| Mark [[Modding:Event data|an event]] as seen or unseen for the [[#Target player|specified player(s)]], depending on {{o|seen}} (default <samp>true</samp>).
 
|-
 
|-
 
| <samp>MarkQuestionAnswered {{t|player}} {{t|answer ID}} {{o|answered}}</samp>
 
| <samp>MarkQuestionAnswered {{t|player}} {{t|answer ID}} {{o|answered}}</samp>
| Mark [[Modding:Dialogue#Response IDs|a dialogue answer]] as selected (if {{o|answered}} is <samp>true</samp>) or not selected (if <samp>false</samp>) for the [[#Target player|specified player(s)]].
+
| Mark [[Modding:Dialogue#Response IDs|a dialogue answer]] as selected or non-selected for the [[#Target player|specified player(s)]], depending on {{o|answered}} (default <samp>true</samp>).
 
|-
 
|-
| <samp>MarkActionApplied {{t|player}} {{t|answer ID}} {{o|applied}}</samp>
+
| <samp>Null</samp>
| Mark another trigger action as applied (if {{o|applied}} is <samp>true</samp>) or not applied (if <samp>false</samp>) for the [[#Target player|specified player(s)]]. This can be used to skip or re-run an action, since actions are only applied once by default. TODO: check to see if actions can mark THEMSELVES as unapplied?
+
| ''(Specialized)'' Does nothing. This is used internally; there's generally no benefit to using it yourself.
 
|-
 
|-
 
| <samp>SetNpcInvisible {{t|NPC name}} {{t|day duration}}</samp>
 
| <samp>SetNpcInvisible {{t|NPC name}} {{t|day duration}}</samp>
| Hide an NPC so they disappear and can't be interacted with for the given number of days. This is used when NPCs go away for a while (e.g. [[Elliott#Fourteen Hearts|Elliott's 14-heart event]]). TODO: can you call this from the farmhand? Atra doesn't think so.
+
| Hide an NPC so they disappear and can't be interacted with for the given number of days. This is used when NPCs go away for a while (e.g. [[Elliott#Fourteen Hearts|Elliott's 14-heart event]]).
 +
 
 +
'''TODO: can you call this from the farmhand? Atra doesn't think so.'''
 
|-
 
|-
 
| <samp>SetNpcVisible {{t|NPC name}}</samp>
 
| <samp>SetNpcVisible {{t|NPC name}}</samp>
| End the NPC's invisibility, if applicable. TODO: check to see if can be called from farmhand. Will probably make the NPC visible again, but the daysUntilNotInvisible is NOT synced.
+
| End the NPC's invisibility, if applicable.
 +
 
 +
'''TODO: check to see if can be called from farmhand. Will probably make the NPC visible again, but the daysUntilNotInvisible is NOT synced.'''
 
|}
 
|}
  
translators
8,447

edits

Navigation menu