… | |
… | |
137 | =head3 say (object player message) |
137 | =head3 say (object player message) |
138 | |
138 | |
139 | Invoked whenever the I<object> can hear a B<message> being said by |
139 | Invoked whenever the I<object> can hear a B<message> being said by |
140 | B<player> in its vicinity. |
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 -- ) |