Building: Rank Constants
We have a few handy constants stored in the 'rank' table, which allows lua code to find the privs associated with a certain rank. You should never use the privs number itself, as if a rank changes in the future then your lua will behave unexpectedly.
The stored ranks only correspond to the lowest rank in each section. If you really, really need to find the privs associated with some random rank name, then beg the coders to add it for you. But don't bet on it happening.
Lua name | Rank equivalent |
rank.Cadet | Junior Cadet |
rank.Crewman | Crewman |
rank.POfficer | Petty Officer, 3rd class |
rank.WOfficer | Warrant Officer, 3rd class |
rank.Officer | Midshipman |
rank.Commander | Commander |
rank.Retired | Captain (retired) |
rank.Captain | Captain |
rank.Commodore | Commodore |
rank.Admiral | Admiral |
rank.Chief | Fleet Admiral |
rank.Internal | Special rank for syslog only |
You should know that rank.Internal corresponds to a privs level of 10000, and hence is higher than anybody on the mud. Use of this will be reduced in the future, and we don't recommend you use it unless absolutely necessary.