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.9 by elmex, Tue Aug 29 17:29:28 2006 UTC vs.
Revision 1.11 by elmex, Wed Aug 30 11:58:44 2006 UTC

137=head3 say (object player message) 137=head3 say (object player message)
138 138
139Invoked whenever the I<object> can hear a B<message> being said by 139Invoked whenever the I<object> can hear a B<message> being said by
140B<player> in its vicinity. 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 -- )
168 174
169Invoked whenever a trap-like B<object> has been activated, usually by 175Invoked whenever a trap-like B<object> has been activated, usually by
170moving onto it. This includes not just traps, but also buttons, holes, 176moving onto it. This includes not just traps, but also buttons, holes,
171signs and similar stuff. 177signs and similar stuff.
172 178
173=head3 close (container -- ) 179=head3 close (container who -- )
174 180
175Invoked whenever a container gets closed (this event is not yet reliable!). 181Invoked whenever a container gets closed (this event is not yet reliable!).
176 182
177 183
178=head2 GLOBAL EVENTS 184=head2 GLOBAL EVENTS

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines