Get your own free workspace
View
 

ActorXPMultiplier

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

 

ActorXPMultiplier

Usage:

                ActorXPMultiplier(ActorID)

Description:

The ActorXPMultiplier command retrieves the XP multiplier value for an actor template, as set in the "Actors" tab of the GE. This may be useful for implementing custom XP calculations. The ActorID parameter is the ID number of an actor template, which can be found using the ActorID and ActorIDFromInstance commands.

Example:

                Function Main()
                        // Display XP multiplier for the context actor
                        ID = ActorIDFromInstance(ContextActor())
                        XPM = ActorXPMultiplier(ID)
                        Output(Actor(), "Multiplier: " $+ XPM)

                        Return()
                End Function

Comments (0)

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