MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | SYNOPSIS |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame^] | 2 | int id(string str) |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 3 | |
| 4 | DESCRIPTION |
| 5 | Let the object identify itself. If str matches an id of the |
Zesstra | 7ea4a03 | 2019-11-26 20:11:40 +0100 | [diff] [blame^] | 6 | current object then return a non-zero value. |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 7 | |
| 8 | This lfun is applied for the efun present(). |
| 9 | |
| 10 | EXAMPLE |
| 11 | int id(string str) { |
| 12 | return "sword" == str || "sword of fire" == str; |
| 13 | } |
| 14 | |
| 15 | SEE ALSO |
| 16 | present(E) |