This shows you the differences between two versions of the page.
building:scripts:events [2020/02/16 14:35] |
building:scripts:events [2020/02/16 14:36] |
||
---|---|---|---|
Line 17: | Line 17: | ||
|EVENT_RECVITEM|An item is about to be added to an object inventory|The object that will acquire the item|0: The Item \\ 1: The current item possessor|Boolean: Wether or not the item should be added to the caller's inventory|[[https://nwn.sinfar.net/res_nss_edit.php?name=mail_putinbox|mail_putinbox]]| | |EVENT_RECVITEM|An item is about to be added to an object inventory|The object that will acquire the item|0: The Item \\ 1: The current item possessor|Boolean: Wether or not the item should be added to the caller's inventory|[[https://nwn.sinfar.net/res_nss_edit.php?name=mail_putinbox|mail_putinbox]]| | ||
|EVENT_CLEARALLACTIONS|Called when an object actions list is about to be cleared. \\ It is one way to know when an action has been interrupted (for any reason)|The object|None|None|TODO| | |EVENT_CLEARALLACTIONS|Called when an object actions list is about to be cleared. \\ It is one way to know when an action has been interrupted (for any reason)|The object|None|None|TODO| | ||
- | |EVENT_PCENTERED|Called when a PC has entered an area.|Area|None|None|This is actually called from the PC action queue, so PC should be fully spawned in the new area. | + | |EVENT_PCENTERED|Called when a PC has entered an area.|Area|None|None|This is actually called from the PC action queue, so PC should be fully spawned in the new area.| |
|EVENT_PCENTERAREA|Called when a PC has entered an area.|PC|None|None| | |EVENT_PCENTERAREA|Called when a PC has entered an area.|PC|None|None| | ||
|EVENT_AREALOADED|Called when a PC has entered an area.|Area|None|None|This is called before the PC is actually moved to the new area, so GetArea() will not work. If the area is needed use EVENT_PCENTERED.| | |EVENT_AREALOADED|Called when a PC has entered an area.|Area|None|None|This is called before the PC is actually moved to the new area, so GetArea() will not work. If the area is needed use EVENT_PCENTERED.| |