_postrank
Site Infrastructure / _postrank

[
has_profile = (_args.1.profile_id > 0);
pcount = _args.0;
theme = getva("ranktheme", get_extended(_args.1.id));
if(theme == "") theme = "linguist";

if(has_profile == 0) {[
	if(pcount >= 1000)
		return "Vigilante";
	if(pcount >= 100)
		return "Outlaw";
	if(pcount >= 10)
		return "Vagrant";

	return "lurker";
]} else if(pcount < 1) {[
	return "Nobody";
]} else {[
	pow = int(log2(pcount));
	pow = pow - 4;
	if(pow < 0) pow = 0;
	if(pow > 9) pow = 9;
	
	ranks = list();
	// ranks level up at: 0 32 64 128 256 512 1024 2048 4096 8192
	if(theme == "linguist") ranks = list("Foreigner", "Novice Speaker", "Initiate Speaker", "Conversational Speaker", "Conversant Speaker", "Fluent Speaker", "Native", "Scribe", "Poet", "Wordweaver");
	if(theme == "roman") ranks = list("Juvenis", "Eques", "Tribunus", "Quaestor", "Aedile", "Praetor", "Consul", "Censor", "Dictator", "Imperator");
	if(theme == "aristocrat") ranks = list("Serf", "Peasant", "Baron", "Count", "Marquis", "Duke", "Grand duke", "Prince", "King", "Emperor");
	if(theme == "aristocrat feminine") ranks = list("Serf", "Peasant", "Baroness", "Countess", "Marquise", "Duchess", "Grand Duchess", "Princess", "Queen", "Empress");
	if(theme == "scholar") ranks = list("Disinterest", "Freshman", "Sophomore", "Undergraduate", "Graduand", "Graduate Student", "Associate Professor", "Professor", "Professor Emeritus", "Grand Academican");
	if(theme == "addict") ranks = list("Non-User", "Square", "Hipster", "Cool Cat", "Groovy Cat", "Heavy User", "Addict", "Chronic Addict", "Tiger Blood", "Adonis DNA");
	if(theme == "thessian") ranks = list("Masakía", "Survatetía", "Atetía", "Alípteza", "Íteta", "Illúbequía", "Kelatetía", "Súquía", "Sarthía", "Zellúbequía");
	if(theme == "chemistry") ranks = list("Lepton", "Boson", "Hydrogen", "Alkali Metal", "Transition Metal", "Crystallogen", "Pnictogen", "Chalcogen", "Halogen", "Noble Gas");
	if(theme == "biology") ranks = list("Intron", "Gene", "Operon", "Plasmid", "Pathway", "Bacterium", "Archaean", "Eukaryote", "Metazoan", "Vertebrate");
	if(theme == "beepboop") ranks = list("Pixel", "Vector", "Function", "Spline", "Surface", "Volume", "Hypervolume", "Fractal", "Renderer", "Raytracer");

	if(theme == "ecclesiastical") ranks = list("Layperson", "Reader", "Deacon", "Priest", "Monsignor", "Bishop", "Archbishop", "Cardinal", "Patriarch", "Pope");
	if(theme == "chinese aristocrat") ranks = list("番", "農", "長", "男", "子", "侯", "伯", "公", "王", "天子"); 
	
	return ranks[pow];
]};

]