… | |
… | |
100 | |
100 | |
101 | =head3 apply (object who -- applytype) |
101 | =head3 apply (object who -- applytype) |
102 | |
102 | |
103 | Invoked whenever the object is being applied in some way. The applytype is one of: |
103 | Invoked whenever the object is being applied in some way. The applytype is one of: |
104 | |
104 | |
105 | =head3 auto_apply (object) |
|
|
106 | |
|
|
107 | Invoked whenever the object is automatically applied (as for example shop tiles |
|
|
108 | are on map instantiation). See also the 'auto_apply' flag to enforce auto apply on |
|
|
109 | any object. |
|
|
110 | |
|
|
111 | =over 4 |
105 | =over 4 |
112 | |
106 | |
113 | =item B<0> player or monster can't apply objects of that type |
107 | =item B<0> player or monster can't apply objects of that type |
114 | |
108 | |
115 | =item B<1> has been applied, or there was an error applying the object |
109 | =item B<1> has been applied, or there was an error applying the object |
116 | |
110 | |
117 | =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 |
118 | |
112 | |
119 | =back |
113 | =back |
|
|
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. |
120 | |
119 | |
121 | =head3 throw (object thrower) |
120 | =head3 throw (object thrower) |
122 | |
121 | |
123 | Invoked when an B<object> is thrown by B<thrower>. |
122 | Invoked when an B<object> is thrown by B<thrower>. |
124 | |
123 | |
… | |
… | |
378 | =head3 leave (map player -- ) |
377 | =head3 leave (map player -- ) |
379 | |
378 | |
380 | Invoked whenever a player tries to leave the B<map>. Overriding means the |
379 | Invoked whenever a player tries to leave the B<map>. Overriding means the |
381 | player won't be able to leave. |
380 | player won't be able to leave. |
382 | |
381 | |
383 | =head3 trigger (map connection state -- ) |
382 | =head3 trigger (map connection state who? -- ) |
384 | |
383 | |
385 | Invoked whenever something activates a B<connection> on the B<map>. If B<state> |
384 | Invoked whenever something activates a B<connection> on the B<map>. If B<state> |
386 | is true the connection was 'state' and if false it is 'released'. |
385 | is true the connection was 'state' and if false it is 'released'. |
387 | |
386 | |
388 | |
387 | |