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