Script:closestealbag: Difference between revisions

From Arx Libertatis Wiki
Jump to navigation Jump to search
(Created page with "{{ScriptCommandPage |description=close the secondary inventory if the player is stealing |intro=Technically this always closes the secondary inventory if the player ''can'' steal from an NPC, even if another (e.g. chest) inventory is open. }} {{Notice|In versions before {{Changelog|1.3}} this command can only be called from NPCs.}}")
 
mNo edit summary
 
Line 1: Line 1:
{{ScriptCommandPage
{{ScriptCommandPage
|description=close the secondary inventory if the player is stealing
|description=close any non-player inventory in the [[Gameplay#HUD|HUD]] if the player is stealing
|intro=Technically this always closes the secondary inventory if the player ''can'' steal from an NPC, even if another (e.g. chest) inventory is open.
|intro=This means that the inventory had to be made available for stealing using {{Command|stealnpc}} and the player opened it via the steal icon in the [[Gameplay#HUD|HUD]].
 
The player can also close the inventory from the [[Gameplay#HUD|HUD]] and the inventory will automatically close once the player is 350 units away from the inventory owner unless the player is has the {{Spell|telekinesis}} spell active in which case the maximum distance is 900 units.
 
Closing the non-player inventory also resets the [[Script:stealnpc|steal entity]].
 
Use {{Command|inventory close}} to close any non-player inventory even if the player is not stealing.
}}
}}


{{Notice|In versions before {{Changelog|1.3}} this command can only be called from [[:Category:NPCs|NPCs]].}}
{{Notice|In versions before {{Changelog|1.3}} this command can only be called from [[:Category:NPCs|NPCs]].}}

Latest revision as of 11:51, 19 June 2022

The closestealbag script command is used to close any non-player inventory in the HUD if the player is stealing. This means that the inventory had to be made available for stealing using stealnpc and the player opened it via the steal icon in the HUD.

The player can also close the inventory from the HUD and the inventory will automatically close once the player is 350 units away from the inventory owner unless the player is has the Telekinesis (Spacium Rune (field)Comunicatum Rune (control)) spell active in which case the maximum distance is 900 units.

Closing the non-player inventory also resets the steal entity.

Use inventory close to close any non-player inventory even if the player is not stealing.

Usage

closestealbag

Context: Ignored

ℹ️  In versions before Arx Libertatis 1.3 this command can only be called from NPCs.