RuleFunction_TSM - arkayenro/arkinventory GitHub Wiki
Rule Functions > TSM
tsm( arg1, ..., argN )
Checks if the item in a TSM Group whose name matches any of the supplied arguments
Arguments
- arg1...N (string) = TSM Group name
Remarks
requires ArkInventory 30806 or higher for TradeSkillMaster 4 or higher
requires ArkInventory 30720 or higher for TradeSkillMaster 3 or higher
Regex string patterns can be used so any "magic" regex character ( ) . % + - * ? [ ^ $
within the group name must be escaped with the %
character. Also the TSM group separator ->
must be escaped and replaced with %->
or it will not match properly.
The TSM Group names returned are forced to lower case, your arguments are not (as some regex codes are uppercase) your search pattern needs to take that into account.
After adding/renaming/moving/deleting a group, or adding/removing an item to/from a group you will need to refresh the ArkInventory window to pick up those changes.
Examples
tsm( ) = in any group
tsm( "test" ) = is in a group named test
tsm( "test1", "test2" ) = is in a group named either test1 or test2
tsm( "test%->sub1" ) = is in a group named test->sub1
tsm( "test1%->%a-%->test2" ) = is in any sub group of test1 where the third level sub group is named test2