[1352] in Coldmud discussion meeting
[COLD] Generalizing $note's description
daemon@ATHENA.MIT.EDU (Fri Aug 29 02:07:02 1997
)
From: "Luther, Clay" <clay@selsius.com>
To: "ColdStuff Mailing List (E-mail)" <coldstuff@cold.org>
Date: Fri, 29 Aug 1997 00:57:14 -0500
The $note.description is hard-coded with the word "note" (as in, There
is writing on the note). Unfortunately, a $note is not always a "note"
(it could be, for example, a scroll, a leaflet, whatever...
Ideally, I would add a message to $note and evaluate it, but I haven't
got a clue here. So I repaired it with a little choice use of english:
| @program $note.description() +access=pub
| arg flags;
|
| if (dict_contains(flags, 'nonote))
| return (> pass(flags) <);
| return (> pass(flags) <) + [$ctext_frob.new_with(["You see some
writing on it which you may be |able to ",
$cml_lib.format_invoke_tag(tostr(this()), "read", "read"), "..."])];
|
| .
I would gladly rewrite and post this using the message interface if
someone could give me a quick tutorial.
---
Clay Luther
clay@selsius.com