Switch to edit mode.
Name(s): @message1: if (this.answering_machine == {})
2: player:tell("There are no messages on your answering machine.")
3: endif
4: if (this.answering_machine)
5: for msg in (this.answering_machine)
6: if (length(msg) == 2)
7: player:tell("Message from ", msg[1].name, ":")
8: player:tell(msg[2])
9: else
10: player:tell("Message from ", msg[1].name, " at ", ctime(msg[2]), ":")
11: player:tell(msg[3])
12: endif
13: endfor
14: this:tell("Done. Use @clearmsg to clear messages.")
15: endif
16: "Last modified by Avator (#2168) on Mon Oct 11 14:45:04 1999 MDT."