31 from CFDataFile
import CFData
33 player = Crossfire.WhoIsActivator()
34 me = Crossfire.WhoAmI()
35 event = Crossfire.WhatIsEvent()
36 name =
'hall_of_fame_' + Crossfire.ScriptParameters()
41 if me.Type == Crossfire.Type.SIGN:
42 message = me.Message +
"\n"
43 keys = file.get_keys()
45 message = message + name +
" " + file.get_record(name)[
'title'] +
"\n"
47 message = message +
"No one is recorded, will you attempt to be the first?"
49 Crossfire.SetReturnValue(1)
51 record = file.get_record(player.Name)
53 file.put_record({
'#' : player.Name,
'title' : player.Title })
54 if event.Message !=
None:
55 player.Write(event.Message)