by MartinHowe » Wed Jul 27, 2005 10:19 am
For friendly monsters and monsters controlled via scripting, it would be useful to filter the kinds of monsters that they attack. For example, I might want a monster that attacks demons and imps, but leaves everything else alone.
In DECORATE, this could be something as simple as a keyword followed by a list or boolean expression on classnames, but how difficult technically is it?
Also, what are the alternatives, other than a lot of messing around with custom action functions and having to give all monsters a TID?
Example DECORATE code:
Code: Select all
// This monster will attack imps and
// demons and leave everything else alone.
hates all DoomImp, Demon
Code: Select all
// This monster will attack everything except
// imps and demons and leave them alone.
hates except DoomImp, Demon
Graf, Grubber, any comments in general and specifically as regards the UO build?
Randy, could this be done for .97 perhaps or do you have something better in the pipeline?
For friendly monsters and monsters controlled via scripting, it would be useful to filter the kinds of monsters that they attack. For example, I might want a monster that attacks demons and imps, but leaves everything else alone.
In DECORATE, this could be something as simple as a keyword followed by a list or boolean expression on classnames, but how difficult technically is it?
Also, what are the alternatives, other than a lot of messing around with custom action functions and having to give all monsters a TID?
Example DECORATE code:
[code]// This monster will attack imps and
// demons and leave everything else alone.
hates all DoomImp, Demon
[/code]
[code]// This monster will attack everything except
// imps and demons and leave them alone.
hates except DoomImp, Demon
[/code]
Graf, Grubber, any comments in general and specifically as regards the UO build?
Randy, could this be done for .97 perhaps or do you have something better in the pipeline?