FindSouls
Souls whose name or archetype holds every word of a pattern.
"Horse" alone lists the breeds; "Dog" the dogs; a word of a name narrows it.
Syntax
Section titled “Syntax”FindSouls(pattern [, max])| Parameter | Type | |
|---|---|---|
pattern |
string | words to look for, case-insensitive |
max |
number | at most this many (10) (optional) |
Returns
Section titled “Returns”table - a list of {id=, name=, guid=, archetype=}
Example
Section titled “Example”for _, s in ipairs(FindSouls("horse black", 5)) do Log(s.id, s.name) endSee also
Section titled “See also”GetSoulInfo · GetHorseSoul · CreateActor · the Catalogues group of the index
