Use variables in AI Goals
Summary
I'd like to be able to use variables when setting AI goals. At the moment something like 'runaigoalselector{goal=goto <caster.var.xDest>,<caster.var.yDest>,<caster.var.zDest>}'
returns a parse error. At the moment the runaigoalselector mechanic seems to handle this naively, directly setting the AI goals as 'goto <caster.. etc.>
Usage
Being able to parse variables when setting goals opens a lot of options that are impossible with the current implementation. For example, we could allow skills change the goals of a mob programmatically, allowing for more complex and interesting behaviour.
Value
Probably a lot, but specifically I want to use it to make things like wandering parties of mobs that are persistent in the world, or allow skills to trigger to direct mobs to certain areas or on certain patrol paths.
Priority
High, because I personally want it and think it'd be cool.
Implementation
Changing the AI goals system to allow for variables might be difficult, but letting the runaigoalselector
mechanic parse the variables into their values before actually setting the AI goal might work more easily.
Thanks.