ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/NPC_Dialogue.pm
(Generate patch)

Comparing deliantra/server/ext/NPC_Dialogue.pm (file contents):
Revision 1.5 by root, Sat Jun 16 23:22:59 2007 UTC vs.
Revision 1.6 by elmex, Wed Aug 8 07:55:57 2007 UTC

106 106
107=back 107=back
108 108
109The environment is that standard "map scripting environment", which is 109The environment is that standard "map scripting environment", which is
110limited in the type of constructs allowed (no loops, for example). 110limited in the type of constructs allowed (no loops, for example).
111
112Here is a example:
113
114=over 4
115
116=item B<matching for an item name>
117
118 @match hi
119 @cond grep $_->name =~ /royalty/, $who->inv
120 You got royalties there! Wanna have!
121
122You may want to change the C<name> method there to something like C<title>,
123C<slaying> or any other method that is allowed to be called on a
124C<cf::object> here.
125
126=back
111 127
112=item @eval perl 128=item @eval perl
113 129
114Like C<@cond>, but proceed regardless of the outcome. 130Like C<@cond>, but proceed regardless of the outcome.
115 131

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines