Script:on inventory2 open: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 4: Line 4:
|trigger=when opening non-player inventories
|trigger=when opening non-player inventories
}}
}}
Ending this event with {{Command|refuse}} prevents the inventory from being opened.


When the inventory is being opened by [[Gameplay scripting#Pickpocketing|pickpocketing]] then this event is preceded by a {{Event|steal}} event with no parameters.
When the inventory is being opened by [[Gameplay scripting#Pickpocketing|pickpocketing]] then this event is preceded by a {{Event|steal}} event with no parameters.
The {{Command|inventory open}} command sends this event to the caller.

Latest revision as of 12:04, 26 June 2022

The inventory2_open script event is sent by Am Shaegar (player) to the owning entity when opening non-player inventories. This event never has any parameters.

Ending this event with refuse prevents the inventory from being opened.

When the inventory is being opened by pickpocketing then this event is preceded by a steal event with no parameters.

The inventory open command sends this event to the caller.