Difference between revisions of "SetLevel"
Standardized
imported>Fella |
imported>Haama (Standardized) |
||
|
'''Syntax:'''
SetLevel iNewLevel, LevelToPCFlag, MinLevel (optional), MaxLevel (optional)
'''Example:'''▼
SetLevel 10 ; sets the actor's level to 10▼
SetLevel 2, 1 ; sets the actor's level to PC+2▼
SetLevel 0, 1, 6, 0 ; sets the actor's level to PC+0, min 6, no maximum▼
For NPCs and Creatures, this function allows you to completely change their level as well as whether they are leveled to the player or not.
Calling SetLevel will also immediately recalc an actor's stats and equipment (as if the player just leveled up).
▲'''Example:'''
NOTE: This function can be called on the player and will change the player's level, but not any of his stats (and the world will not "level up" with the player until he goes through a loading door, or changes cells), so this is not recommended. Use [[AdvancePCLevel]] instead.▼
▲ SetLevel 10 ; sets the actor's level to 10
▲ SetLevel 2, 1 ; sets the actor's level to PC+2
▲ SetLevel 0, 1, 6, 0 ; sets the actor's level to PC+0, min 6, no maximum
==Notes==
NOTE: Although called on a reference, this function actually changes the value on the base actor (thus the base value on all references of that base actor).▼
▲
▲
==See Also==
| |||