Class engine.Autolevel
Handles autoleveling schemes
Used mainly for NPCS, although it could also be used for player allies
or players themselves for lazy players/modules
Methods
engine.Autolevel:registerScheme (t)
Register Scheme for use with actors
engine.Autolevel:autoLevel (actor)
Triggers the autolevel function defined with registerScheme for the specified actor
Methods
- engine.Autolevel:registerScheme (t)
-
Register Scheme for use with actors
Parameters:
- t table your scheme definition
Usage:
registerScheme({ name = "warrior", levelup = function(self) self:learnStats{ self.STAT_STR, self.STAT_STR, self.STAT_DEX } end})
- engine.Autolevel:autoLevel (actor)
-
Triggers the autolevel function defined with registerScheme for the specified actor
Parameters:
- actor Actor