1 |
root |
1.1 |
// define event types by enumerating them here |
2 |
|
|
|
3 |
root |
1.2 |
// global events |
4 |
root |
1.3 |
def (GLOBAL, CLOCK) // NYI |
5 |
root |
1.2 |
|
6 |
|
|
// per-player |
7 |
root |
1.6 |
def (PLAYER, BIRTH) // ($pl -- ) called as very first thing after creating a player |
8 |
|
|
def (PLAYER, QUIT) // ($pl -- ) called after logout |
9 |
root |
1.3 |
def (PLAYER, LOAD) |
10 |
|
|
def (PLAYER, SAVE) |
11 |
|
|
def (PLAYER, LOGIN) |
12 |
|
|
def (PLAYER, LOGOUT) |
13 |
|
|
def (PLAYER, DEATH) |
14 |
root |
1.6 |
def (PLAYER, ENTER) // ($pl, $map -- ) |
15 |
|
|
def (PLAYER, LEAVE) // ($pl, $map -- ) |
16 |
root |
1.3 |
def (PLAYER, USE_SKILL) |
17 |
root |
1.6 |
def (PLAYER, EXTCMD) // ($pl $string -- ) |
18 |
root |
1.3 |
def (PLAYER, PRAY_ALTAR) |
19 |
root |
1.4 |
def (PLAYER, TELL) //NYI |
20 |
|
|
def (PLAYER, SAY) //NYI |
21 |
|
|
def (PLAYER, SHOUT) //NYI |
22 |
root |
1.2 |
|
23 |
|
|
// per-object events |
24 |
root |
1.5 |
def (OBJECT, TICK) |
25 |
root |
1.3 |
def (OBJECT, KILL) |
26 |
|
|
def (OBJECT, APPLY) |
27 |
|
|
def (OBJECT, USE_SKILL) |
28 |
|
|
def (OBJECT, CAST_SPELL) |
29 |
root |
1.4 |
def (OBJECT, DROP_ON) // NYI |
30 |
|
|
def (OBJECT, LISTEN) //NYI |
31 |
root |
1.6 |
def (OBJECT, MOVE) // ($object, $enemy -- ) called when a monster tries to move |
32 |
|
|
def (OBJECT, ATTACK) // ($object, $hitter -- $damage) object gets attacked |
33 |
|
|
def (OBJECT, ATTACKS) // ($weapon, $hitter, $victim -- ) object gets used as weapon |
34 |
root |
1.5 |
|
35 |
|
|
// plug-in attachment |
36 |
root |
1.6 |
def (OBJECT, INSTANTIATE) // ($object -- ) an archetype was instantiated into an object |
37 |
|
|
def (OBJECT, REATTACH) // ($object -- ) an object was loaded _and_ had extensions |
38 |
|
|
def (OBJECT, CLONE) // ($object $destination -- ) an object with _attached extension_ is cloned |
39 |
root |
1.2 |
|
40 |
|
|
// per-map |
41 |
root |
1.6 |
def (MAP, LOAD) // ($map -- ) Original map has been loaded |
42 |
|
|
def (MAP, SWAPIN) // ($map -- ) Temporary map has been swapped in |
43 |
|
|
def (MAP, SWAPOUT) // ($map -- ) Map has been swapped out |
44 |
|
|
def (MAP, RESET) // ($map -- ) A map is resetting |
45 |
|
|
def (MAP, CLEAN) // ($map -- ) Temporary map will be deleted |
46 |
|
|
def (MAP, ENTER) // ($map, $pl -- ) |
47 |
|
|
def (MAP, LEAVE) // ($map, $pl -- ) |
48 |
root |
1.2 |
|