blob: 2a86d5a304f71b431b7a7d5715ab572f403773d5 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS
Zesstrad59c3892019-11-28 20:53:39 +01002 int remove_action(int|string verb)
Zesstra715ec202025-07-09 22:18:31 +02003 int remove_action(int|string verb, object ob)
MG Mud User88f12472016-06-24 23:31:02 +02004
Zesstra715ec202025-07-09 22:18:31 +02005DESCRIPTION
6 If <verb> is a string: remove the first action defined by the current
7 object with the given <verb> from <ob> (default is this_player()).
8 Return 1 if the action was found and removed, and 0 else.
MG Mud User88f12472016-06-24 23:31:02 +02009
Zesstra715ec202025-07-09 22:18:31 +020010 If <verb> is a number: if non-0, remove all actions defined by
11 the current object from <ob> (default is this_player()).
12 Return the number of actions removed.
Zesstrad59c3892019-11-28 20:53:39 +010013
Zesstra715ec202025-07-09 22:18:31 +020014HISTORY
15 Introduced in 3.2.1.
16 LDMud 3.2.10 added the ability to remove all actions.
MG Mud User88f12472016-06-24 23:31:02 +020017
Zesstra715ec202025-07-09 22:18:31 +020018SEE ALSO
Zesstrad59c3892019-11-28 20:53:39 +010019 add_action(E), move_object(E)