From fe3dc5dbf1b7a03d130297cc62f88ad113734c90 Mon Sep 17 00:00:00 2001 From: Graham Nelson Date: Wed, 9 Aug 2023 18:43:11 +0100 Subject: [PATCH] Added BANISH debugging command --- .../Internal/Inter/WorldModelKit/Sections/Tests.i6t | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/inform7/Internal/Inter/WorldModelKit/Sections/Tests.i6t b/inform7/Internal/Inter/WorldModelKit/Sections/Tests.i6t index 6f983c94a..b7cb88c78 100644 --- a/inform7/Internal/Inter/WorldModelKit/Sections/Tests.i6t +++ b/inform7/Internal/Inter/WorldModelKit/Sections/Tests.i6t @@ -45,6 +45,16 @@ ACTIONS turns tracing of actions on. [ ActionsOnSub; trace_actions = 1; say__p = 1; "Actions listing on."; ]; [ ActionsOffSub; trace_actions = 0; say__p = 1; "Actions listing off."; ]; +@h Banish Command. +Like ABSTRACT, except that it removes something from play. + += +[ XBanishSub; + if (XTestMove(noun, nothing)) return; + remove noun; + say__p = 1; "[Banished.]"; +]; + @h Gonear Command. GONEAR teleports the player to the vicinity of some named item. @@ -540,6 +550,8 @@ not picked up) and able to accept multiple objects. Verb meta 'abstract' * scope=testcommandnoun 'to' scope=testcommandnoun -> XAbstract; +Verb meta 'banish' + * scope=testcommandnoun -> XBanish; Verb meta 'actions' * -> ActionsOn * 'on' -> ActionsOn