MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | QueryAttribute() |
| 2 | FUNKTION: |
| 3 | int QueryAttribute(string attr) |
| 4 | |
| 5 | DEFINIERT IN: |
| 6 | /std/living/attributes.c |
| 7 | |
| 8 | ARGUMENTE: |
| 9 | attr - interessierendes Gesamtattribut |
| 10 | |
| 11 | BESCHREIBUNG: |
| 12 | Das Attribut samt seiner Offsets (Modifier) wird zurueckgegeben. |
| 13 | |
| 14 | RUeCKGABEWERT: |
| 15 | Wert des Attributes, bei Spielern nicht groesser als 30. |
| 16 | |
| 17 | BEISPIELE: |
| 18 | if (this_player()->QueryAttribute(A_CON) > 20) |
| 19 | write("Du schaffst es den Berg hoch. Aber nur muehsam.\n"); |
| 20 | |
| 21 | BENERKUNGEN: |
| 22 | Wenn es um Attributabfragen geht, bitte diese Methode verwenden! |
| 23 | |
| 24 | SIEHE AUCH:
|
| 25 | QueryAttribute(), QueryRealAttribute(), QueryAttributeOffset(),
|
| 26 | SetAttribute(), SetRealAttribute(), UpdateAttributes(),
|
| 27 | SetTimedAttrModifier(), QueryTimedAttrModifier(),
|
| 28 | DeleteTimedAttrModifier(),
|
| 29 | P_ATTRIBUTES, P_ATTRIBUTES_OFFSETS, P_TIMED_ATTR_MOD,
|
| 30 | P_X_ATTR_MOD, P_M_ATTR_MOD, /std/living/attributes.c
|
| 31 | ----------------------------------------------------------------------------
|
| 32 | Last modified: Tue Jul 27 20:00:20 2004 by Muadib
|