|
Crossfire Server
1.75.0
|
Local events are linked to particular objects, for example, a special apply event for a particular artifact sword. More...
Macros | |
| #define | EVENT_APPLY 1 |
| Object applied-unapplied. More... | |
| #define | EVENT_ATTACKED 2 |
| Object attacked, with weapon or spell. More... | |
| #define | EVENT_ATTACKS 33 |
| Weapon or arrow hitting something. More... | |
| #define | EVENT_BOUGHT 34 |
| Object is being bought by player. More... | |
| #define | EVENT_CLOSE 11 |
| Container closed. More... | |
| #define | EVENT_DEATH 3 |
| Player or monster dead. More... | |
| #define | EVENT_DESTROY 13 |
| Object destroyed (includes map reset/swapout) More... | |
| #define | EVENT_DROP 4 |
| Object dropped on the floor. More... | |
| #define | EVENT_NONE 0 |
| No event. More... | |
| #define | EVENT_PICKUP 5 |
| Object picked up. More... | |
| #define | EVENT_SAY 6 |
| Someone speaks. More... | |
| #define | EVENT_SELLING 32 |
| Object is being sold by another one. More... | |
| #define | EVENT_STOP 7 |
| Thrown object stopped. More... | |
| #define | EVENT_THROW 9 |
| Object is thrown. More... | |
| #define | EVENT_TIME 8 |
| Triggered each time the object can react/move. More... | |
| #define | EVENT_TIMER 12 |
| Timer connected triggered it. More... | |
| #define | EVENT_TRIGGER 10 |
| Button pushed, lever pulled, etc. More... | |
| #define | EVENT_USER 31 |
| User-defined event. More... | |
Local events are linked to particular objects, for example, a special apply event for a particular artifact sword.
These objects need to contain a event handler object specifying the plugin/module to run in order for these types of events to be dispatched.
| #define EVENT_APPLY 1 |
Object applied-unapplied.
Definition at line 28 of file events.h.
Referenced by eventListener(), ob_apply(), and pray_at_altar().
| #define EVENT_ATTACKED 2 |
Object attacked, with weapon or spell.
Definition at line 29 of file events.h.
Referenced by eventListener(), and hit_player().
| #define EVENT_ATTACKS 33 |
Weapon or arrow hitting something.
Definition at line 30 of file events.h.
Referenced by attack_ob_simple(), and hit_with_arrow().
| #define EVENT_BOUGHT 34 |
Object is being bought by player.
Definition at line 31 of file events.h.
Referenced by shop_pay_unpaid_callback().
| #define EVENT_CLOSE 11 |
| #define EVENT_DEATH 3 |
Player or monster dead.
Definition at line 33 of file events.h.
Referenced by kill_object(), and kill_player().
| #define EVENT_DESTROY 13 |
Object destroyed (includes map reset/swapout)
Definition at line 34 of file events.h.
Referenced by object_free().
| #define EVENT_DROP 4 |
| #define EVENT_NONE 0 |
| #define EVENT_PICKUP 5 |
| #define EVENT_SAY 6 |
| #define EVENT_SELLING 32 |
Object is being sold by another one.
Definition at line 38 of file events.h.
Referenced by sell_item().
| #define EVENT_STOP 7 |
| #define EVENT_THROW 9 |
| #define EVENT_TIME 8 |
Triggered each time the object can react/move.
Definition at line 40 of file events.h.
Referenced by eventListener(), and process_object().
| #define EVENT_TIMER 12 |
Timer connected triggered it.
Definition at line 43 of file events.h.
Referenced by cftimer_create(), and cftimer_process_event().
| #define EVENT_TRIGGER 10 |
Button pushed, lever pulled, etc.
Definition at line 42 of file events.h.
Referenced by common_pre_ob_move_on(), move_teleporter(), pick_lock(), player_changer_type_process(), trigger_connected(), write_note(), and write_scroll().
| #define EVENT_USER 31 |
User-defined event.
Definition at line 44 of file events.h.
Referenced by events_execute_object_user().