Looking for snakes, I did this:
foreach mm in $monsters[] if (contains_text(mm.attributes,"SNAKE")) print(mm);
And it gave me this:
Batsnake
Burning Snake of Fire
The Frattlesnake
Frozen Solid Snake
The Snake With Like Ten Heads
Snakeleton
The Frattlesnake
The Snake With Like Ten Heads
Trouser Snake
aggressive grass snake
bacon snake
black adder
coal snake
diamondback rattler
frontwinder
king snake
licorice snake
mutant rattlesnake
prince snake
rock snake
sewer snake with a sewer snake in it
snake
snakefire in the grass
tomb asp
whitesnake
Returned: void
Why do those 2 snakes (emphasis mine) appear twice?
foreach mm in $monsters[] if (contains_text(mm.attributes,"SNAKE")) print(mm);
And it gave me this:
Batsnake
Burning Snake of Fire
The Frattlesnake
Frozen Solid Snake
The Snake With Like Ten Heads
Snakeleton
The Frattlesnake
The Snake With Like Ten Heads
Trouser Snake
aggressive grass snake
bacon snake
black adder
coal snake
diamondback rattler
frontwinder
king snake
licorice snake
mutant rattlesnake
prince snake
rock snake
sewer snake with a sewer snake in it
snake
snakefire in the grass
tomb asp
whitesnake
Returned: void
Why do those 2 snakes (emphasis mine) appear twice?