… | |
… | |
2 | |
2 | |
3 | // global events |
3 | // global events |
4 | def (GLOBAL, CLOCK) // NYI |
4 | def (GLOBAL, CLOCK) // NYI |
5 | |
5 | |
6 | // per-player |
6 | // per-player |
7 | def (PLAYER, REATTACH) // (pl -- ) |
7 | def (PLAYER, REATTACH) // (pl) |
8 | def (PLAYER, BIRTH) // (pl -- ) called as very first thing after creating a player |
8 | def (PLAYER, BIRTH) // (pl) called as very first thing after creating a player |
9 | def (PLAYER, QUIT) // (pl -- ) called after logout |
9 | def (PLAYER, QUIT) // (pl) called after logout |
10 | def (PLAYER, LOAD) |
10 | def (PLAYER, LOAD) |
11 | def (PLAYER, SAVE) |
11 | def (PLAYER, SAVE) |
12 | def (PLAYER, LOGIN) |
12 | def (PLAYER, LOGIN) |
13 | def (PLAYER, LOGOUT) |
13 | def (PLAYER, LOGOUT) |
14 | def (PLAYER, DEATH) |
14 | def (PLAYER, DEATH) |
15 | def (PLAYER, ENTER) // (pl, map -- ) |
15 | def (PLAYER, MAP_CHANGE) // (pl oldmap newmap) |
16 | def (PLAYER, LEAVE) // (pl, map -- ) |
|
|
17 | def (PLAYER, USE_SKILL) |
16 | def (PLAYER, USE_SKILL) |
18 | def (PLAYER, EXTCMD) // (pl, string -- ) |
17 | def (PLAYER, EXTCMD) // (pl string) |
19 | def (PLAYER, PRAY_ALTAR) |
18 | def (PLAYER, PRAY_ALTAR) |
20 | def (PLAYER, TELL) //NYI |
19 | def (PLAYER, TELL) //NYI |
21 | def (PLAYER, SAY) //NYI |
20 | def (PLAYER, SAY) //NYI |
22 | def (PLAYER, SHOUT) //NYI |
21 | def (PLAYER, SHOUT) //NYI |
23 | |
22 | |
24 | // plug-in attachment |
23 | // plug-in attachment |
25 | def (OBJECT, INSTANTIATE) // (object -- ) an archetype was instantiated into an object |
24 | def (OBJECT, INSTANTIATE) // (object) an archetype was instantiated into an object |
26 | def (OBJECT, REATTACH) // (object -- ) an object was loaded _and_ had extensions |
25 | def (OBJECT, REATTACH) // (object) an object was loaded _and_ had extensions |
27 | def (OBJECT, CLONE) // (object destination -- ) an object with _attached extension_ is cloned |
26 | def (OBJECT, CLONE) // (object destination) an object with _attached extension_ is cloned |
28 | |
27 | |
29 | // per-object events |
28 | // per-object events |
30 | def (OBJECT, TICK) |
29 | def (OBJECT, TICK) |
31 | def (OBJECT, KILL) |
30 | def (OBJECT, KILL) |
32 | def (OBJECT, APPLY) |
31 | def (OBJECT, APPLY) // (object who -- applytype) |
|
|
32 | // 0: player or monster can't apply objects of that type |
|
|
33 | // 1: has been applied, or there was an error applying the object |
|
|
34 | // 2: objects of that type can't be applied if not in inventory |
33 | def (OBJECT, USE_SKILL) |
35 | def (OBJECT, USE_SKILL) |
34 | def (OBJECT, CAST_SPELL) |
36 | def (OBJECT, CAST_SPELL) |
35 | def (OBJECT, DROP_ON) // NYI |
37 | def (OBJECT, DROP) // (object who -- ) an item gets dropped |
|
|
38 | def (OBJECT, DROP_ON) // (floor object who -- ) something was dropped on the floor |
36 | def (OBJECT, LISTEN) //NYI |
39 | def (OBJECT, LISTEN) //NYI |
37 | def (OBJECT, MOVE) // (object, enemy -- ) called when a monster tries to move |
40 | def (OBJECT, MOVE) // (object enemy -- ) called when a monster tries to move |
38 | def (OBJECT, ATTACK) // (object, hitter -- damage) object gets attacked |
41 | def (OBJECT, ATTACK) // (object hitter -- damage) object gets attacked |
39 | def (OBJECT, ATTACKS) // (weapon, hitter, victim -- ) object gets used as weapon |
42 | def (OBJECT, ATTACKS) // (weapon hitter, victim) object gets used as weapon |
|
|
43 | def (OBJECT, INSCRIBE_NOTE) // (book pl message skill -- ) inscribe a note into a book |
|
|
44 | def (OBJECT, TRIGGER) // (object activator -- ) an object was triggered |
|
|
45 | def (OBJECT, MOVE_TRIGGER) // (object victim originator -- ) a trap-like object was triggered |
|
|
46 | def (OBJECT, CLOSE) // (container -- ) close a container |
40 | |
47 | |
41 | // per-map |
48 | // per-map |
42 | def (MAP, REATTACH) // (map -- ) |
49 | def (MAP, REATTACH) // (map) |
43 | def (MAP, LOAD) // (map -- ) Original map has been loaded |
50 | def (MAP, LOAD) // (map) Original map has been loaded |
44 | def (MAP, SWAPIN) // (map -- ) Temporary map has been swapped in |
51 | def (MAP, SWAPIN) // (map) Temporary map has been swapped in |
45 | def (MAP, SWAPOUT) // (map -- ) Map has been swapped out |
52 | def (MAP, SWAPOUT) // (map) Map has been swapped out |
46 | def (MAP, RESET) // (map -- ) A map is resetting |
53 | def (MAP, RESET) // (map) A map is resetting |
47 | def (MAP, CLEAN) // (map -- ) Temporary map will be deleted |
54 | def (MAP, CLEAN) // (map) Temporary map will be deleted |
48 | def (MAP, ENTER) // (map, pl -- ) |
55 | def (MAP, ENTER) // (map pl) |
49 | def (MAP, LEAVE) // (map, pl -- ) |
56 | def (MAP, LEAVE) // (map pl) |
50 | |
57 | |