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