… | |
… | |
132 | |
132 | |
133 | =head3 drop_on (floor object who -- ) |
133 | =head3 drop_on (floor object who -- ) |
134 | |
134 | |
135 | Invoked whenever some B<object> is being dropped on the B<floor> object. |
135 | Invoked whenever some B<object> is being dropped on the B<floor> object. |
136 | |
136 | |
137 | =head3 listen |
137 | =head3 say (object player message) |
138 | |
138 | |
139 | Invoked whenever the object can hear something beign said in its |
139 | Invoked whenever the I<object> can hear a B<message> being said by |
140 | vicinity. Not yet implemented. |
140 | B<player> in its vicinity. |
141 | |
141 | |
142 | =head3 move (monster enemy -- ) |
142 | =head3 monster_move (monster enemy -- ) |
143 | |
143 | |
144 | Invoked whenever the B<monster> tries to move, just after B<enemy> and |
144 | Invoked whenever the B<monster> tries to move, just after B<enemy> and |
145 | other parameters have been determined, but before movement is actually |
145 | other parameters have been determined, but before movement is actually |
146 | executed. |
146 | executed. |
147 | |
147 | |
148 | =head3 attack (object hitter -- damage) |
148 | =head3 attack (object hitter -- damage) |
149 | |
149 | |
150 | Object gets attacked by somebody - when overriden, should return the |
150 | Object gets attacked by somebody - when overriden, should return the |
151 | damage that has been dealt. |
151 | damage that has been dealt. |
152 | |
152 | |
|
|
153 | =head3 skill_attack (attacker victim message skill -- success) |
|
|
154 | |
|
|
155 | Invoked whenever an B<attacker> attacks B<victim> using a B<skill> (skill |
|
|
156 | cna be C<undef>). B<message> is the message that describes the attack when |
|
|
157 | damage is done. |
|
|
158 | |
153 | =head3 attacks (weapon hitter victim) |
159 | =head3 weapon_attack (weapon hitter victim) |
154 | |
160 | |
155 | Invoked whenever an object is used as a B<weapon> by B<hitter> to attack |
161 | Invoked whenever an object is used as a B<weapon> by B<hitter> to attack |
156 | B<victim>. |
162 | B<victim>. |
157 | |
163 | |
158 | =head3 inscribe_note (book pl message skill -- ) |
164 | =head3 inscribe_note (book pl message skill -- ) |
… | |
… | |
233 | =head3 extcmd (player string) |
239 | =head3 extcmd (player string) |
234 | |
240 | |
235 | Invoked whenever a client issues the C<extcmd> protocol command. It's |
241 | Invoked whenever a client issues the C<extcmd> protocol command. It's |
236 | argument is passed without any changes. |
242 | argument is passed without any changes. |
237 | |
243 | |
|
|
244 | =head3 move (player direction -- ) |
|
|
245 | |
238 | =head3 pray_altar (player altar skill -- ) |
246 | =head3 pray_altar (player altar skill -- ) |
239 | |
247 | |
240 | Invoked whenever the B<player> prays over an B<altar>, using the given B<skill>. |
248 | Invoked whenever the B<player> prays over an B<altar>, using the given B<skill>. |
241 | |
249 | |
242 | =head3 tell (player -- ) |
250 | =head3 tell (player name message -- ) |
243 | |
251 | |
244 | Invoked whenever the player uses the B<tell> command, before it gets processed. |
252 | Invoked whenever the player uses the B<tell> or B<reply> command, before |
|
|
253 | it gets processed. |
245 | |
254 | |
246 | =head3 say (player --) |
255 | =head3 say (player message --) |
247 | |
256 | |
248 | Invoked whenever the player uses the B<say> command, before it gets processed. |
257 | =head3 chat (player message --) |
249 | |
258 | |
250 | =head3 shout (player --) |
259 | =head3 shout (player message --) |
251 | |
260 | |
252 | Invoked whenever the player uses the B<shout> command, before it gets processed. |
261 | Invoked whenever the player uses the B<say>, B<chat> or B<shout> command, |
|
|
262 | before it gets processed. |
253 | |
263 | |
254 | |
264 | |
255 | =head2 MAP EVENTS |
265 | =head2 MAP EVENTS |
256 | |
266 | |
257 | These events are generally dependent on a map and thus all have a map |
267 | These events are generally dependent on a map and thus all have a map |
… | |
… | |
301 | |
311 | |
302 | =head3 upgrade (map) |
312 | =head3 upgrade (map) |
303 | |
313 | |
304 | (TEMPORARY EVENT) gets invoked whenever a old-style map has been upgraded. |
314 | (TEMPORARY EVENT) gets invoked whenever a old-style map has been upgraded. |
305 | |
315 | |
|
|
316 | =head3 trigger (map connection state) |
|
|
317 | |
|
|
318 | Invoked whenever something activates a B<connection> on the B<map>. If B<state> |
|
|
319 | is true the connection was 'state' and if false it is 'released'. |