… | |
… | |
110 | |
110 | |
111 | =item B<2> objects of that type can't be applied if not in inventory |
111 | =item B<2> objects of that type can't be applied if not in inventory |
112 | |
112 | |
113 | =back |
113 | =back |
114 | |
114 | |
|
|
115 | =head3 reset (object) |
|
|
116 | |
|
|
117 | Invoked whenever the object is initialised on a map after it was |
|
|
118 | loaded. This can be used to emulate shop-floor behaviour for example. |
|
|
119 | |
115 | =head3 throw (object thrower) |
120 | =head3 throw (object thrower) |
116 | |
121 | |
117 | Invoked when an B<object> is thrown by B<thrower>. |
122 | Invoked when an B<object> is thrown by B<thrower>. |
118 | |
123 | |
119 | =head3 stop (object -- ) |
124 | =head3 stop (object -- ) |
… | |
… | |
157 | |
162 | |
158 | =head3 drop (object who -- ) |
163 | =head3 drop (object who -- ) |
159 | |
164 | |
160 | Invoked whenever an item gets dropped by somebody, e.g. as a result of a |
165 | Invoked whenever an item gets dropped by somebody, e.g. as a result of a |
161 | drop command. |
166 | drop command. |
|
|
167 | B<NOTE:> If you put the object somewhere else or destroyed the object |
|
|
168 | you have to override! If you do nothing with the object and override it is |
|
|
169 | given back to the dropper. |
162 | |
170 | |
163 | =head3 drop_on (floor object who -- ) |
171 | =head3 drop_on (floor object who -- ) |
164 | |
172 | |
165 | Invoked whenever some B<object> is being dropped on the B<floor> object. |
173 | Invoked whenever some B<object> is being dropped on the B<floor> object. |
|
|
174 | B<NOTE:> If you put the object somewhere else or destroyed the object |
|
|
175 | you have to override! If you do nothing with the object and override it is |
|
|
176 | given back to the dropper. |
166 | |
177 | |
167 | =head3 say (object player message) |
178 | =head3 say (object player message) |
168 | |
179 | |
169 | Invoked whenever the I<object> can hear a B<message> being said by |
180 | Invoked whenever the I<object> can hear a B<message> being said by |
170 | B<player> in its vicinity. |
181 | B<player> in its vicinity. |