to_effect(skill) and "does not match anything in the status effect database"

xKiv

Active member
to_effect(skill) and "does not match anything in the status effect database"

So I decided to automate a task I sometimes do (namely: check if I can get some effect I don't yet have by casting a skill I have - in other words, I want to see what buffs I am out of after running out of MP or attention, without using moods (because I want fine control over what I actually do, and would forget to change the mood after acquiring a new skill anyway)) and ran into a snag.
It works, and to_effect($skill[skill name here]) returns $effect[none] for a skill that doesn't buff me ... but it prints "[skill name here] does not match anything in the status effect database" in the CLI, in red letters.
Obviously, I don't want to see this among the list of suggestions for casts.

Any idea how to get around that? Without hardcoding all effect-giving skills, or parsing the effects database myself?
 
to_effect(skill) doesn't do quite what you want, anyway: it can return things that are related in some way other than "skill grants effect". For example, the Hot Breath skill is granted by having the Hot Breath effect active, exactly the opposite of what you're looking for.

Effects have a .default attribute that is a CLI command that will give the effect; you could parse that to see if it is a cast of a skill you know.
 
Back
Top