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.15 by root, Tue Oct 13 00:24:14 2009 UTC vs.
Revision 1.16 by root, Mon Oct 26 02:48:02 2009 UTC

199associated with a specific player and can be seen by all NPCs. with 199associated with a specific player and can be seen by all NPCs. with
200respect to a particular player, which makes them suitable to store quest 200respect to a particular player, which makes them suitable to store quest
201markers and other information (e.g. reputation/alignment). Flags are 201markers and other information (e.g. reputation/alignment). Flags are
202persistent over the lifetime of a player, so be careful :) 202persistent over the lifetime of a player, so be careful :)
203 203
204Perversely enough, using C<@setfflag> without a C<value> clears the flag
205as if it was never set, so always provide a flag value (e.g. C<1>) when
206you want to set the flag.
207
204See C<@ifflag> for an example. 208See C<@ifflag> for an example.
205 209
206=item @ifflag flag value 210=item @ifflag flag value
207 211
208Requires that the named C<flag> has the given C<value>, otherwise this 212Requires that the named C<flag> has the given C<value>, otherwise this
209topic is skipped. For more complex comparisons, see C<@cond> with 213topic is skipped. For more complex comparisons, see C<@cond> with
210C<$flag>. Example: 214C<$flag>.
215
216If no C<value> is given, then the ifflag succeeds when the flag is true.
217
218Example:
211 219
212 @match I want to do the quest! 220 @match I want to do the quest!
213 @setflag kings_quest 1 221 @setflag kings_quest 1
214 Then seek out Bumblebee in Navar, he will tell you... 222 Then seek out Bumblebee in Navar, he will tell you...
215 @match I did the quest 223 @match I did the quest

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines