It might be useful to also have at least the #RECORD / #UNRECORD commands to save a lot of the player's actions.
I don't know about #COMMAND since it's It's already possible to pipe a text file into Confusion. Though at least when I tried it it would complain about an unexpected EOF at the end.
RECORD / #UNRECORD would be pretty simple to implement, I think. Here I've piggy-backed on SCRIPT / UNSCRIPT (so error checking isn't as strict as it should be) because I think things get hairy if both of those can be active at the same time.
Whether or not it's useful is, of course, still open to debate.
Split out from issue #49.
Torbjörn Andersson wrote:
<SADD-ACTION "GO-IN" TIME> ;"funny verb for room actions when entering"
+;"Debug commands" + +<SADD-ACTION "#RECO" DO-SCRIPT> +<SADD-ACTION "#UNRE" DO-UNSCRIPT> + ;"ZORK game commands"
<SADD-ACTION "BRIEF" BRIEF> diff --git a/mdlzork_810722/patched_confusion/rooms.mud b/mdlzork_810722/patched_confusion/rooms.mud index 2df516b..03f1176 100644 --- a/mdlzork_810722/patched_confusion/rooms.mud +++ b/mdlzork_810722/patched_confusion/rooms.mud @@ -402,38 +402,48 @@ <FINISH <>>> <FINISH <>>>>
-<DEFINE DO-SCRIPT ("AUX" (CH <>) (UNM ,XUNM) (MUDDLE ,MUDDLE))
DECL ((CH) (UNM) STRING (MUDDLE) FIX)
+<DEFINE DO-SCRIPT ("AUX" (CH <>) (UNM ,XUNM) (MUDDLE ,MUDDLE) (ACT "script")
DECL ((CH) (UNM ACT CACT EXT) STRING (MUDDLE) FIX)
-<DEFINE DO-UNSCRIPT ("OPTIONAL" (VERBOSE T))
DECL ((VERBOSE))
+<DEFINE DO-UNSCRIPT ("OPTIONAL" (VERBOSE T) "AUX" (CACT "Script"))
DECL ((VERBOSE) (CACT) STRING)
(<AND .VERBOSE <TELL .CACT ,POST-CRLF "ing wasn't on.">>)>>
<GDECL (THEN) FIX>