Get your own free workspace
View
 

ActorChest

Page history last edited by Gamemaster 3 years, 9 months ago

 

 

ActorChest

Usage:

                ActorChest(Actor)

Description:

The ActorChest command returns the handle to the item in the specified actor's inventory chest slot. If there is no item in the slot, zero is returned. The handle can then be used with other item commands, such as ItemName to see which item is being worn.

Example:

                Function Main()
                        Result = ActorChest(Actor())
                        If (Result == 0)
                                Output(Actor(), "No item in slot!")
                        Else
                                Output(Actor(), "Item: " $+ ItemName(Result))
                        EndIf
                        Return()
                End Function

Comments (0)

You don't have permission to comment on this page.