GetLockLevel
Revision as of 11:08, 21 November 2011 by imported>SJML Bot (Bot creating condition functions pages.)
GetLockLevel returns an integer representing the lock level of a locked door, container, or hinge trap. Possible values are:
- 0 = Novice
- 25 = Apprentice
- 50 = Adept
- 75 = Expert
- 100 = Master
- 255 = Requires Key
All doors and containers have a lock level, set on their reference.
- By default, an object's lock level is 0 (Novice).
- The lock level of an object persists even if the object is currently unlocked.
- For example, in cities, most shops are locked at night, and unlocked during the day. GetLockLevel will return the same value (the nighttime lock level) regardless of the time of day.
- This command will not tell you whether a door is currently locked or not. For that, use GetLocked.
Syntax
DoorRef.GetLockLevel