blob: 978c6c070764e75f3f3cb34f393b750d3cf66dc9 [file] [log] [blame]
Zesstra953f9972017-02-18 15:37:36 +01001
2QueryAttribute()
3****************
4
5
6FUNKTION
7========
8
9 int QueryAttribute(string attr)
10
11
12DEFINIERT IN
13============
14
15 /std/living/attributes.c
16
17
18ARGUMENTE
19=========
20
21 attr - interessierendes Gesamtattribut
22
23
24BESCHREIBUNG
25============
26
27 Das Attribut samt seiner Offsets (Modifier) wird zurueckgegeben.
28
29
30RUeCKGABEWERT
31=============
32
33 Wert des Attributes, bei Spielern nicht groesser als 30.
34
35
36BEISPIELE
37=========
38
39 if (this_player()->QueryAttribute(A_CON) > 20)
40 write("Du schaffst es den Berg hoch. Aber nur muehsam.\n");
41
42
43BENERKUNGEN
44===========
45
46 Wenn es um Attributabfragen geht, bitte diese Methode verwenden!
47
48
49SIEHE AUCH
50==========
51
52 QueryAttribute(), QueryRealAttribute(), QueryAttributeOffset(),
53 SetAttribute(), SetRealAttribute(), UpdateAttributes(),
54 SetTimedAttrModifier(), QueryTimedAttrModifier(),
55 DeleteTimedAttrModifier(),
56 P_ATTRIBUTES, P_ATTRIBUTES_OFFSETS, P_TIMED_ATTR_MOD,
57 P_X_ATTR_MOD, P_M_ATTR_MOD, /std/living/attributes.c
58
59Last modified: Tue Jul 27 20:00:20 2004 by Muadib