--- deliantra/server/ext/NPC_Dialogue.pm 2009/10/26 02:55:07 1.17 +++ deliantra/server/ext/NPC_Dialogue.pm 2009/11/04 19:20:49 1.18 @@ -98,7 +98,7 @@ can be seen by all NPCs (so better name your flags uniquely). This is useful for storing e.g. quest information. See C<@setflag> and C<@ifflag>. -=item @find - see @find, below. +=item $find - see @find, below. =back @@ -158,14 +158,15 @@ =item @find match expression Like C<@check> in that it executes a match expression, but instead of -failing, it gathers all objects matched into the C<@find> array variable. +failing, it gathers all objects into an array and provides a reference to +the array in the C<$find> variable. When you want to skip the match when no objects have been found, combine C<@find> with C<@cond>: @match see my spellbook @find type=SPELLBOOK in inv - @cond @find + @cond @$find It looks dirty. @match see my spellbook I can't see any, where do you have it? @@ -293,6 +294,7 @@ flag => $flag, msg => $msg, match => \@match, + find => \@find, ); local $self->{ob}{record_replies} = \@replies;