Rule_Examples - arkayenro/arkinventory GitHub Wiki
Ensure you have read Rule Functions before starting.
tooltip( "%+%d+ %a+ resist" )
-
%+
= match a plus (+
) character -
%d+
= match 1 or more digits (numbers) -
<space>
= match actual text - a space -
%a+
= match 1 or more letters (ie a single word, in this case the type of resistance) -
<space>
= match actual text - a space -
resist
= match actual text - resist
tooltip( "%sset:" )
-
%s
= matches a space (we use this because leading spaces are removed from arguments and we want to make sure we don't get a word that ends in set) -
set:
= match actual text - set:
note that this will match any item that is in a set, which is a bit pointless by itself, so you'll need to be more specific, eg;
tooltip( "%sset:" ) and tooltip( "garona's battlegear" )
if your set name is unique then you can just search on that by itself.
all gems
type( "gem" )
all cut gems
type( "gem" ) and tooltip( "socket" )
all uncut gems
type( "gem" ) and not tooltip( "socket" )
all red or blue gems (both cut and uncut)
type( "gem" ) and subtype( "blue", "red" )
anything that can be worn by a character (ignoring restrictions)
equip( )
soulbound equipment
equip( ) and soulbound( )
bind on equip
equip( ) and not soulbound( )
cloth armor
type( "armor" ) and subtype( "cloth" )
equipment in an outfit
outfit( "fishing" )
outfit( "healing" )
equipment that isn't in an outfit
equip( ) and not outfit( )