Zesstra | 1862697 | 2017-01-31 10:38:27 +0100 | [diff] [blame] | 1 | QueryGuest() |
| 2 | ============ |
| 3 | |
| 4 | FUNKTION |
| 5 | -------- |
| 6 | :: |
| 7 | |
| 8 | int QueryGuest(); |
| 9 | |
| 10 | DEFINIERT IN |
| 11 | ------------ |
| 12 | :: |
| 13 | |
| 14 | /std/player/base |
| 15 | |
| 16 | BESCHREIBUNG |
| 17 | ------------ |
| 18 | :: |
| 19 | |
| 20 | Auf der uid basierende Hilfsfunktion, um Gaeste zu identifizieren. |
| 21 | |
| 22 | RUeCKGABEWERT |
| 23 | ------------- |
| 24 | :: |
| 25 | |
| 26 | 1, wenn Spielerobjekt ein Gast ist; 0 sonst |
| 27 | |
| 28 | BEISPIELE |
| 29 | --------- |
| 30 | :: |
| 31 | |
| 32 | if(this_interactive()->QueryGuest()) |
| 33 | { |
| 34 | (this_interactive()->ReceiveMsg( |
| 35 | "Wir bedienen hier nur ordentliche Charaktere.", |
| 36 | MT_LISTEN, MA_SAY, |
| 37 | "Der Wirt sagt: ") != MSG_SENSE_BLOCK) || |
| 38 | (this_interactive()->ReceiveMsg( |
| 39 | "Der Wirt gestikuliert dich hinaus.", |
| 40 | MT_LOOK, MA_LOOK) != MSG_SENSE_BLOCK) || |
| 41 | (this_interactive()->ReceiveMsg( |
| 42 | "Irgendwer stupst dich an. Du sollst wohl gehen.", |
| 43 | MT_FEEL, MA_FEEL)); |
| 44 | return 1; |
| 45 | } |
| 46 | |
| 47 | SIEHE AUCH |
| 48 | ---------- |
| 49 | :: |
| 50 | |
| 51 | getuid() |
| 52 | |
| 53 | 14. Mai 2015 Gloinson |
| 54 | |