blob: 90810b2525e79a726bf45ab38a5f74437bdbba2b [file] [log] [blame]
Zesstra18626972017-01-31 10:38:27 +01001QueryGuest()
2============
3
4FUNKTION
5--------
6::
7
8 int QueryGuest();
9
10DEFINIERT IN
11------------
12::
13
14 /std/player/base
15
16BESCHREIBUNG
17------------
18::
19
20 Auf der uid basierende Hilfsfunktion, um Gaeste zu identifizieren.
21
22RUeCKGABEWERT
23-------------
24::
25
26 1, wenn Spielerobjekt ein Gast ist; 0 sonst
27
28BEISPIELE
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
47SIEHE AUCH
48----------
49::
50
51 getuid()
52
5314. Mai 2015 Gloinson
54