Skip to content

Custom Rule Example

rockingdice edited this page Sep 26, 2017 · 8 revisions

You can request more examples to wonderplay@outlook.com

Example 1 - Match multiple conditions

Items matched by:

  1. Set is Necropotency
  2. Item level is cp 160
  3. Item trait is Divines or Infused

Rule:

set("Necropotency") and cp() == 160 and traitstring("divine", "infused")

Example 2 - Use FCO Item Saver's api

Items matched by:

  1. Marked as Gear1 in FCO Item Saver

Rule:

ismarked("gear_1")

Example 3 - Exclude Conditions (Using 'not')

Items matched by:

  1. Item is armor type
  2. Item is for research
  3. Item trait is not Divines or Infused

type("armor") and keepresearch() and not traittype("armor_infused", "armor_divines")