1
OXCE Support / [Answered] Wildcards or pattern matching
« on: August 13, 2021, 01:17:30 pm »
Hi!
Is there a way to use wildcards or patterns when writing rules and referencing types or names?
For example we have several Gauss items in items rul. Their types are STR_GAUSS_PISTOL, STR_GAUSS_RIFLE, STR_GAUSS_HEAVY, etc. If I would like to modify, let's say weight attribute on them I would have to set it like this:
items:
- type: STR_GAUSS_PISTOL
weight: 42
- type: STR_GAUSS_RIFLE
weight: 42
- type: STR_GAUSS_HEAVY
weight: 42
My question is if it is possible to use something like this to modify ALL items that *matches* the pattern written in "type":
items:
- type: STR_GAUSS_*
weight: 42
Thank you!
Is there a way to use wildcards or patterns when writing rules and referencing types or names?
For example we have several Gauss items in items rul. Their types are STR_GAUSS_PISTOL, STR_GAUSS_RIFLE, STR_GAUSS_HEAVY, etc. If I would like to modify, let's say weight attribute on them I would have to set it like this:
items:
- type: STR_GAUSS_PISTOL
weight: 42
- type: STR_GAUSS_RIFLE
weight: 42
- type: STR_GAUSS_HEAVY
weight: 42
My question is if it is possible to use something like this to modify ALL items that *matches* the pattern written in "type":
items:
- type: STR_GAUSS_*
weight: 42
Thank you!