Changes

Jump to navigation Jump to search
Line 1,525: Line 1,525:  
===Rewards===
 
===Rewards===
 
Each order can have any number of rewards of the given types.
 
Each order can have any number of rewards of the given types.
 +
 +
Each reward entry takes the following form:
 +
<syntaxhighlight lang="javascript">
 +
{
 +
    "Type": "<Type from list below>",
 +
    "Data": {
 +
        "<Name of key>": "<Some entry, format depends on key>"
 +
    },
 +
}
 +
</syntaxhighlight>
    
{| class="wikitable"
 
{| class="wikitable"
Line 1,532: Line 1,542:  
|-
 
|-
 
| <samp>Friendship</samp>
 
| <samp>Friendship</samp>
| Increases the amount of [[Friendship|friendship]], by default by 250 points (1 heart) with the requesting NPC. If specified, the units are in terms of number of friendship points, not hearts. The "Data" entry can have two subfields: "Amount" to specify the amount, and "TargetName" to specify the NPC to increase friendship with.
+
| Increases the amount of [[Friendship|friendship]], by default by 250 points (1 heart) with the requesting NPC. If specified, the units are in terms of number of friendship points, not hearts. For this reward type, the keys can be "Amount" to specify the amount, and "TargetName" to specify the NPC to increase friendship with.
 
|-
 
|-
 
| <samp>Gems</samp>
 
| <samp>Gems</samp>
| Rewards the farmer a set amount of [[Qi_Gem|Qi Gems]].
+
| Rewards the farmer a set amount of [[Qi_Gem|Qi Gems]]. For this reward type, the only valid key is "Amount", used to specify the amount of gems.
 
|-
 
|-
 
|<samp>Mail</samp>
 
|<samp>Mail</samp>
| Sets a mail flag, which can be used to trigger custom events, dialogue, or other changes.
+
| Sets a mail flag, which can be used to trigger custom events, dialogue, or other changes.  
 
|-
 
|-
 
|<samp>Money</samp>
 
|<samp>Money</samp>
|Rewards the farmer a set amount of money or a value that depends on the donated item.
+
|Rewards the farmer a set amount of money or a value that depends on the donated item. For this reward type, the valid keys are "Amount", used to specify the amount of money, and "Multiplier", used to specify a multiplier on the amount. The total money rewarded is <code>Amount * Multiplier</code>.  
 
|-
 
|-
 
|<samp>ResetEvent</samp>
 
|<samp>ResetEvent</samp>
|Removes the event IDs (must be integers separated by spaces) specified in the "ResetEvents" entry under the "Data" entry.
+
|Removes the event IDs. For this reward type, the only valid key is "ResetEvents", and the value is a list of event IDs as integers, separated by spaces.
 
|}
 
|}
  
249

edits

Navigation menu