Script:stealnpc: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{ScriptCommandPage
{{ScriptCommandPage
|description=enable stealing by the player
|description=set the inventory that the [[player]] can steal from
|context=any
|context=any
|intro=The calling entity's secondary inventory is made available via the pickpocketing icon in the [[Gameplay#HUD|HUD]]. Only one entity can be stolen from at any time and the previous entity that called {{Command|stealnpc}} is notified via the {{Event|steal|off}} event unless it is no longer in pickpocketing range. The  {{Event|steal}} event is also sent to the calling entity when the player opens its inventory via the pickpocketing icon or closes it again.
|intro=The calling entity's secondary inventory is made available via the pickpocketing icon in the [[Gameplay#HUD|HUD]]. Only one entity can be stolen from at any time and the previous entity that called {{Command|stealnpc}} is notified via the {{Event|steal|off}} event unless it is no longer in pickpocketing range. The  {{Event|steal}} event is also sent to the calling entity when the player opens its inventory via the pickpocketing icon or closes it again.

Revision as of 17:17, 21 June 2022

The stealnpc script command is used to set the inventory that the player can steal from for an entity. The calling entity's secondary inventory is made available via the pickpocketing icon in the HUD. Only one entity can be stolen from at any time and the previous entity that called stealnpc is notified via the steal off event unless it is no longer in pickpocketing range. The steal event is also sent to the calling entity when the player opens its inventory via the pickpocketing icon or closes it again.

The steal entity is reset if the player gets too far away or if the player started stealing and the inventory is closed either by the player or using closestealbag or inventory close.

Usage

stealnpc

Context: Any Entity