wildcards - GregHib/void GitHub Wiki
Wildcards let you target multiple IDs at once when writing scripts.
One string can match one or many IDs depending on the pattern, multiple patterns can be combined at once.
Matches exactly one thing
"cow""bank""doric"
Matches any sequence of characters
-
"cow_*"// cow_1, cow_big, cow_brown -
"banker*"// banker_1, banker_draynor, banker_varrock "attack_style_*"
"*" Matches any value of any kind.
Matches one digit.
-
"cow_#"// cow_1, cow_2, cow_7 -
"goblin_#"// cow_0, ... cow_9
Useful when matching a few unrelated IDs:
cow,bull,sheepbronze_arrows,iron_darts,steel_knives
Wildcards are used anywhere an ID is accepted in event handlers.
npcSpawn("cow_*") { }
objectOperate("Open", "*_chest") { }
itemOnNPCOperate("bucket,bucket_of_milk", "dairy_cow") { }
interfaceOption("*", "worn_equipment:*_slot") { }Note
For a more technical understand of how wildcards work see Wildcard System.