MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | SYNOPSIS |
Zesstra | d59c389 | 2019-11-28 20:53:39 +0100 | [diff] [blame] | 2 | int find_input_to(object player, string fun) |
| 3 | int find_input_to(object player, closure fun) |
Zesstra | 5481d49 | 2021-04-08 20:07:06 +0200 | [diff] [blame] | 4 | int find_input_to(object player, object|lwobject fun) |
| 5 | int find_input_to(object player, object|lwobject ob, string fun) |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 6 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 7 | DESCRIPTION |
| 8 | Find the input_to most recently added to the interactive <player> |
| 9 | object matching the <fun> argument: |
| 10 | - <fun> is a string: the input_to functionname has to match |
| 11 | - <fun> is an object: the object the input_to function is bound to |
| 12 | has to match |
| 13 | - <fun> is a closure: the input_to closure has to match. |
| 14 | - <ob> and <fun> are given: both the object and the functionname have |
| 15 | to match |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 16 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 17 | Return -1 if not found, or the position in the input_to stack (0 |
| 18 | being _least_ recently added input_to). |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 19 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 20 | HISTORY |
| 21 | Introduced in LDMud 3.2.9. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 22 | |
Zesstra | 715ec20 | 2025-07-09 22:18:31 +0200 | [diff] [blame] | 23 | SEE ALSO |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 24 | input_to(E), input_to_info(E), remove_input_to(E), |
| 25 | query_input_pending(E) |