This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
features:housing:custom_scripts:module_events [2019/02/28 01:50] Mavrixio |
features:housing:custom_scripts:module_events [2019/04/03 13:44] Mavrixio ↷ Page moved from features:housing:scripts:module_events to features:housing:custom_scripts:module_events |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Using the Module Events ====== | ====== Using the Module Events ====== | ||
+ | |||
+ | ===== How to Register a Module Event ===== | ||
Similar to the module events, you can register "Global" events with variables on the area containing the MAIN_DOOR. | Similar to the module events, you can register "Global" events with variables on the area containing the MAIN_DOOR. | ||
Line 5: | Line 7: | ||
{{https://sinfar.net/images/forum/players_scripts/ph_mod_events.png?nolink&|Image}} | {{https://sinfar.net/images/forum/players_scripts/ph_mod_events.png?nolink&|Image}} | ||
- | Here's the list of events in the following format:\\ | + | ===== Events List ===== |
- | |^Variable Name^Called From^Example| | + | |
+ | ^Variable Name^Called From^Example| | ||
|P_MODEVENT_ACQITEM|[[https://nwn.sinfar.net/res_nss_edit.php?name=pf_ev_acqitem|pf_ev_acqitem]]|[[https://nwn.sinfar.net/res_nss_edit.php?name=p_25_acqitem|p_25_acqitem]]| | |P_MODEVENT_ACQITEM|[[https://nwn.sinfar.net/res_nss_edit.php?name=pf_ev_acqitem|pf_ev_acqitem]]|[[https://nwn.sinfar.net/res_nss_edit.php?name=p_25_acqitem|p_25_acqitem]]| | ||
- | |P_MODEVENT_UNACQITEM|[[https://nwn.sinfar.net/res_nss_edit.php?name=pf_ev_unacqitem|pf_ev_unacqitem]]| | | + | |P_MODEVENT_UNACQITEM|[[https://nwn.sinfar.net/res_nss_edit.php?name=pf_ev_unacqitem|pf_ev_unacqitem]]|[[https://nwn.sinfar.net/res_nss_edit.php?name=p_25_unacqitem|p_25_unacqitem]]| |
- | | | | | | + | |P_MODEVENT_ACTIVATEITEM|[[https://nwn.sinfar.net/res_nss_edit.php?name=pf_ev_activitem|pf_ev_activitem]]|[[https://nwn.sinfar.net/res_nss_edit.php?name=p_25_activatitem|p_25_activatitem]]| |
- | | | | | | + | |P_MODEVENT_CHAT|[[https://nwn.sinfar.net/res_nss_edit.php?name=pf_ev_chat|pf_ev_chat]]|[[https://nwn.sinfar.net/res_nss_edit.php?name=p_25_chat|p_25_chat]]| |
- | | | | | | + | |P_MODEVENT_PCDEATH|[[https://nwn.sinfar.net/res_nss_edit.php?name=pf_ev_pcdeath|pf_ev_pcdeath]]|[[https://nwn.sinfar.net/res_nss_edit.php?name=p_25_pcdeath|p_25_pcdeath]]| |
- | | | | | | + | |P_MODEVENT_PCDYING|[[https://nwn.sinfar.net/res_nss_edit.php?name=pf_ev_pcdying|pf_ev_pcdying]]|[[https://nwn.sinfar.net/res_nss_edit.php?name=p_25_pcdying|p_25_pcdying]]| |
- | | | | | | + | |P_MODEVENT_PCENTER|[[https://nwn.sinfar.net/res_nss_edit.php?name=pf_ev_enterhouse|pf_ev_enterhouse]]|[[https://nwn.sinfar.net/res_nss_edit.php?name=p_25_pcenter|p_25_pcenter]]| |
- | | | | | | + | |P_MODEVENT_PCLEAVE|[[https://nwn.sinfar.net/res_nss_edit.php?name=pf_ev_leavehouse|pf_ev_leavehouse]]|[[https://nwn.sinfar.net/res_nss_edit.php?name=p_25_pcenter|p_25_pcenter]]| |
- | | | | | | + | |P_MODEVENT_RESPAWN|[[https://nwn.sinfar.net/res_nss_edit.php?name=pf_ev_pcrespawn|pf_ev_pcrespawn]]|[[https://nwn.sinfar.net/res_nss_edit.php?name=p_25_respawn|p_25_respawn]]| |
+ | |P_MODEVENT_REST|[[https://nwn.sinfar.net/res_nss_edit.php?name=pf_ev_rest|pf_ev_rest]]|[[https://nwn.sinfar.net/res_nss_edit.php?name=p_25_rest|p_25_rest]]| | ||
+ | |P_MODEVENT_EQUIP|[[https://nwn.sinfar.net/res_nss_edit.php?name=pf_ev_equip|pf_ev_equip]]|[[https://nwn.sinfar.net/res_nss_edit.php?name=p_25_equip|p_25_equip]]| | ||
+ | |P_MODEVENT_UNEQUIP|[[https://nwn.sinfar.net/res_nss_edit.php?name=pf_ev_unequip|pf_ev_unequip]]|[[https://nwn.sinfar.net/res_nss_edit.php?name=p_25_unequip|p_25_unequip]]| | ||
\\ | \\ | ||