This trigger type can be used catch when a mobile gains a level. The following variables are set:
@n - The mobile that gained a level.
@oldLevel - The level of the mobile before it gained a level.
@newLevel - The current level of the mobile.
While it is trivial to retrieve the level information from the mobile itself the level variables are offered for convenience.
Example:
protect { if( @newLevel < @self->level ) { talk @n Congratulations... but yer still a putz! } endif } endprotect |