Script:stealnpc: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
(Created page with "{{ScriptCommandPage |description=enable stealing by the player |context=any |intro=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 {{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 op...")
 
mNo edit summary
Line 3: Line 3:
|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.
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 {{Command|closestealbag}} or {{Command|inventory close}}.
}}
}}

Revision as of 11:53, 19 June 2022

The stealnpc script command is used to enable stealing by the player 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