Get your own free workspace
View
 

ActorRing

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

 

 

ActorRing

Usage:

                ActorRing(Actor, Number)

Description:

The ActorRing command returns the handle to the item in the specified actor's inventory ring 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.

The Number parameter is the ring number to retrieve, and should be between one and four.

Example:

                Function Main()
                        Result = ActorRing(Actor(), 2)
                        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.