Search found 2 matches
- Mon Aug 27, 2012 6:01 am
- Forum: Addons
- Topic: how to add a script to a class that executes on each lvl up
- Replies: 3
- Views: 2100
Re: how to add a script to a class that executes on each lvl
Take a look at the levelup defined in engine/interface/ActorLevel.lua. It says something about checking self._levelup_info. Or, you can just do your standard superloading, and superload levelup() in mod/Actor.lua. Make sure to call the original, and then just add a check for your class or something...
- Sun Aug 26, 2012 11:02 pm
- Forum: Addons
- Topic: how to add a script to a class that executes on each lvl up
- Replies: 3
- Views: 2100
how to add a script to a class that executes on each lvl up
Question is in the title. I'm trying to create a new class and I'd like to run a function on each level up (on certain levels, the class would gain extra talents). How do I make this hook? Module is standart ToME4. Also, on a more general question, is there some place where I can look for this kind ...