ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/doc/events.pod
(Generate patch)

Comparing deliantra/server/doc/events.pod (file contents):
Revision 1.6 by root, Tue Aug 29 05:03:54 2006 UTC vs.
Revision 1.10 by root, Wed Aug 30 06:06:27 2006 UTC

132 132
133=head3 drop_on (floor object who -- ) 133=head3 drop_on (floor object who -- )
134 134
135Invoked whenever some B<object> is being dropped on the B<floor> object. 135Invoked 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
139Invoked whenever the object can hear something beign said in its 139Invoked whenever the I<object> can hear a B<message> being said by
140vicinity. Not yet implemented. 140B<player> in its vicinity.
141 141
142=head3 move (monster enemy -- ) 142=head3 monster_move (monster enemy -- )
143 143
144Invoked whenever the B<monster> tries to move, just after B<enemy> and 144Invoked whenever the B<monster> tries to move, just after B<enemy> and
145other parameters have been determined, but before movement is actually 145other parameters have been determined, but before movement is actually
146executed. 146executed.
147 147
148=head3 attack (object hitter -- damage) 148=head3 attack (object hitter -- damage)
149 149
150Object gets attacked by somebody - when overriden, should return the 150Object gets attacked by somebody - when overriden, should return the
151damage that has been dealt. 151damage that has been dealt.
152 152
153=head3 skill_attack (attacker victim message skill -- success)
154
155Invoked whenever an B<attacker> attacks B<victim> using a B<skill> (skill
156cna be C<undef>). B<message> is the message that describes the attack when
157damage is done.
158
153=head3 attacks (weapon hitter victim) 159=head3 weapon_attack (weapon hitter victim)
154 160
155Invoked whenever an object is used as a B<weapon> by B<hitter> to attack 161Invoked whenever an object is used as a B<weapon> by B<hitter> to attack
156B<victim>. 162B<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
235Invoked whenever a client issues the C<extcmd> protocol command. It's 241Invoked whenever a client issues the C<extcmd> protocol command. It's
236argument is passed without any changes. 242argument 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
240Invoked whenever the B<player> prays over an B<altar>, using the given B<skill>. 248Invoked 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
244Invoked whenever the player uses the B<tell> command, before it gets processed. 252Invoked whenever the player uses the B<tell> or B<reply> command, before
253it gets processed.
245 254
246=head3 say (player --) 255=head3 say (player message --)
247 256
248Invoked 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
252Invoked whenever the player uses the B<shout> command, before it gets processed. 261Invoked whenever the player uses the B<say>, B<chat> or B<shout> command,
262before it gets processed.
253 263
254 264
255=head2 MAP EVENTS 265=head2 MAP EVENTS
256 266
257These events are generally dependent on a map and thus all have a map 267These 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
318Invoked whenever something activates a B<connection> on the B<map>. If B<state>
319is true the connection was 'state' and if false it is 'released'.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines