Changes

Jump to navigation Jump to search
add more info about special rules
Line 1,523: Line 1,523:  
|-
 
|-
 
| <samp>SpecialRule</samp>
 
| <samp>SpecialRule</samp>
| A comma-delimited list of [[Modding:Modder Guide/Game Fundamentals#Unique string IDs|unique string IDs]] representing 'rules' that apply while this special order is active. These can be predefined rules (see list below), or arbitrary rule IDs you can check using [[Modding:Game state queries|game state queries]] (via <samp><samp>PLAYER_SPECIAL_ORDER_RULE_ACTIVE</samp></samp>) or in C# (via <code>Game1.player.team.SpecialOrderRuleActive</code>).
+
| A comma-delimited list of [[#Special rules|special rules]] that apply while this special order is active.
 
  −
The vanilla orders use these rule IDs (TODO document what these do):
  −
* <samp>QI_BEANS</samp>
  −
* <samp>DROP_QI_BEANS</samp>
  −
* <samp>SC_NO_FOOD</samp>
  −
* <samp>QI_COOKING</samp>
  −
* <samp>LEGENDARY_FAMILY</samp>
  −
* <samp>MINE_HARD</samp>
  −
* <samp>SC_HARD</samp>
  −
* <samp>QI_DOUBLE</samp>
   
|-
 
|-
 
| <samp>Text</samp>
 
| <samp>Text</samp>
Line 1,690: Line 1,680:     
For example, <code>!forage_item, category_vegetable/category_fruit, quality_gold</code> would match non-forage gold-quality items which are either fruits or vegetables.
 
For example, <code>!forage_item, category_vegetable/category_fruit, quality_gold</code> would match non-forage gold-quality items which are either fruits or vegetables.
 +
 +
==Special rules==
 +
Special rules are [[Modding:Modder Guide/Game Fundamentals#Unique string IDs|unique string IDs]] that can be used to apply logic while the special order is active.
 +
 +
The game has some predefined rules:
 +
{| class="wikitable"
 +
|-
 +
! rule ID
 +
! effect
 +
|-
 +
| <samp>DROP_QI_BEANS</samp>
 +
| The player can find [[Qi Beans]] for the ''Qi's Crop'' order.
 +
|-
 +
| <samp>LEGENDARY_FAMILY</samp>
 +
| The player can catch the new legendary fish for the ''Extended Family'' order.
 +
|-
 +
| <samp>MINE_HARD</samp><br /><samp>SC_HARD</samp>
 +
| Raises the difficulty level of the mines or [[Skull Cavern]].
 +
|-
 +
| <samp>SC_NO_FOOD</samp>
 +
| The player can't eat food in the [[Skull Cavern]].
 +
|-
 +
| <samp>QI_BEANS</samp><br /><samp>QI_COOKING</samp><br /><samp>QI_DOUBLE</samp>
 +
| TODO: document what these do.
 +
|}
 +
 +
Special orders can also have arbitrary rule IDs, which can be checked using [[Modding:Game state queries|game state queries]] (via <samp>PLAYER_SPECIAL_ORDER_RULE_ACTIVE</samp>) or in C# (via <code>Game1.player.team.SpecialOrderRuleActive</code>).
    
==See also==
 
==See also==
translators
8,437

edits

Navigation menu