23 player = Crossfire.WhoIsActivator()
24 params = Crossfire.ScriptParameters()
25 Crossfire.SetReturnValue(1)
29 targetrank =
int(args[0])
34 prefix =
"His Royal Highness "
35 elif targetrank >= 80:
37 prefix =
"His Highness "
38 elif targetrank >= 70:
41 elif targetrank >= 60:
43 prefix =
"His Excellency "
44 elif targetrank >= 50:
46 prefix =
"The Most Honourable "
47 elif targetrank >= 40:
49 prefix =
"The Right Honourable "
50 elif targetrank >= 30:
52 prefix =
"The Much Honoured "
53 elif targetrank >= 20:
57 elif targetrank >= 10:
61 player.Message(
"Herein are recorded those who have obtained the rank of " + rankname +
" in the Kingdom of Scorn:")
63 names = nobledata.get_keys()
64 names.sort(key = str.lower)
66 record = nobledata.get_record(noble)
67 if int(record[
'rank']) == targetrank:
68 player.Message(prefix+noble+
" "+record[
'title']+suffix)
71 player.Message(
"... The list is empty.")