… | |
… | |
226 | |
226 | |
227 | =head3 inscribe_note (book pl message skill -- ) |
227 | =head3 inscribe_note (book pl message skill -- ) |
228 | |
228 | |
229 | Used whenever a book gets inscribed with a message. |
229 | Used whenever a book gets inscribed with a message. |
230 | |
230 | |
|
|
231 | =head3 infect (victim disease_type disease -- ) |
|
|
232 | |
|
|
233 | Invoked whenever an object is diseased. The disease object is already |
|
|
234 | inserted in object (the template disease object is C<disease_type>), |
|
|
235 | but no messages have been generated. If overriden, no messages will be |
|
|
236 | generated. |
|
|
237 | |
231 | =head3 trigger (object who -- ) |
238 | =head3 trigger (object who -- ) |
232 | |
239 | |
233 | Invoked whenever a lever-like B<object> has been activated/triggered in some |
240 | Invoked whenever a lever-like B<object> has been activated/triggered in some |
234 | (manual) way. |
241 | (manual) way. |
235 | |
242 | |
… | |
… | |
384 | =head3 shout (player message --) |
391 | =head3 shout (player message --) |
385 | |
392 | |
386 | Invoked whenever the player uses the B<say>, B<chat> or B<shout> command, |
393 | Invoked whenever the player uses the B<say>, B<chat> or B<shout> command, |
387 | before it gets processed. |
394 | before it gets processed. |
388 | |
395 | |
389 | =head3 build (player builder map x y --) |
396 | =head3 build (player builder map x y checkok --) |
390 | |
397 | |
391 | Players tries to build using C<builder> at (map+x+y). Is invoked after the |
398 | Players tries to build using C<builder> at (map+x+y). Is invoked after |
392 | usual sanity checks, so the coordinates are valid. |
399 | the usual map sanity checks, so the coordinates are valid. The boolean |
|
|
400 | C<checkok> is true only if the build code thinks it is "ok" to build at |
|
|
401 | that space, and normally you should only build when it is true. |
393 | |
402 | |
394 | |
403 | |
395 | =head2 MAP EVENTS |
404 | =head2 MAP EVENTS |
396 | |
405 | |
397 | These events are generally dependent on a map and thus all have a map |
406 | These events are generally dependent on a map and thus all have a map |