1
0
Fork 0
mirror of https://github.com/ganelson/inform.git synced 2024-07-02 23:14:57 +03:00

Added BANISH debugging command

This commit is contained in:
Graham Nelson 2023-08-09 18:43:11 +01:00
parent 153766ec77
commit fe3dc5dbf1

View file

@ -45,6 +45,16 @@ ACTIONS turns tracing of actions on.
[ ActionsOnSub; trace_actions = 1; say__p = 1; "Actions listing on."; ]; [ ActionsOnSub; trace_actions = 1; say__p = 1; "Actions listing on."; ];
[ ActionsOffSub; trace_actions = 0; say__p = 1; "Actions listing off."; ]; [ 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. @h Gonear Command.
GONEAR teleports the player to the vicinity of some named item. 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' Verb meta 'abstract'
* scope=testcommandnoun 'to' scope=testcommandnoun -> XAbstract; * scope=testcommandnoun 'to' scope=testcommandnoun -> XAbstract;
Verb meta 'banish'
* scope=testcommandnoun -> XBanish;
Verb meta 'actions' Verb meta 'actions'
* -> ActionsOn * -> ActionsOn
* 'on' -> ActionsOn * 'on' -> ActionsOn