serial_numbers
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | serial_numbers [2006/08/29 16:08] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Using Hooks with Serial Numbers====== | ||
+ | |||
+ | One of the neat things about [[ON]] hooks is that multiple hooks of the same | ||
+ | type may be given different priorities. | ||
+ | positive or negative; zero is the default and should not be used directly. | ||
+ | The numbers themselves don't really matter, rather their relation to other | ||
+ | serial numbers is what's important. | ||
+ | |||
+ | | ||
+ | on #-hook -5 " | ||
+ | on # | ||
+ | |||
+ | Then, when any [[HOOK]] command is issued, the following three lines will be | ||
+ | displayed, in this order: | ||
+ | |||
+ | booya | ||
+ | | ||
+ | yadda yadda yadda | ||
+ | |||
+ | In general, it is always advisable to use serial numbers, if for no other | ||
+ | reason than to prevent hooks from conflicting with each other. This is | ||
+ | particularly true of the [[TIMER]] hook, which should always use serial | ||
+ | numbers. | ||
serial_numbers.txt · Last modified: 2006/08/29 16:08 by 127.0.0.1