Hasreagent
Description
Matches if the player has a certain amount of a reagent.
The amount attribute accepts a ranged value, so it supports comparisons like >100, <50, 25to75.
Placeholders and math are also supported, and are resolved before the comparison is made. For example, amount=>100*(<caster.stat.MANA_COST>/100).
Attributes
| Attribute | Aliases | Description | Default |
|---|---|---|---|
| reagent | resource, r | The reagent to check | MANA |
| amount | a | The amount, as a ranged value. Falls back to the unkeyed argument | required |
Examples
Conditions:
- hasreagent{reagent=MANA;amount=>100}
Conditions:
- hasreagent{reagent=MANA;amount=>100*(<caster.stat.MANA_COST>/100)}
Aliases
- hasresource