GetLockLevel - ObjectReference: Difference between revisions

Jump to navigation Jump to search
m
Standardize Formatting
imported>PlausibleSarge
m (Missed a line in example, meaning it wouldn't compile)
m (Standardize Formatting)
Line 3: Line 3:
'''Member of:''' [[ObjectReference Script]]
'''Member of:''' [[ObjectReference Script]]


==Description==
Returns the level of the lock attached to this object. This number can be anything from 0-255, with different values representing lock difficulties (Novice–Expert). If there is no lock, it will return 0 - very easy.
Returns the level of the lock attached to this object. This number can be anything from 0-255, with different values representing lock difficulties (Novice-Expert). If there is no lock, it will return 0 - very easy.
Lock level values are:
** 0-1 = Novice
** 2-25 = Apprentice
** 26-50 = Adept
** 51-75 = Expert
** 76-254 = Master
** 255 = Requires Key


== Syntax ==
== Syntax ==
Line 23: Line 15:
== Return Value ==
== Return Value ==
The level of the lock attached to this object.
The level of the lock attached to this object.
If there is no lock, it will return 0 - very easy. Otherwise, lock level values are:
* 0–1 = Novice
* 2–25 = Apprentice
* 26–50 = Adept
* 51–75 = Expert
* 76–254 = Master
* 255 = Requires Key


== Examples ==
== Examples ==
171

edits

Navigation menu