MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | SetAttribute() |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 2 | ************** |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 3 | |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 4 | |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 5 | FUNKTION |
| 6 | ======== |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 7 | |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 8 | int SetAttribute(string attr, int val) |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 9 | |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 10 | |
Zesstra | 953f997 | 2017-02-18 15:37:36 +0100 | [diff] [blame] | 11 | DEFINIERT IN |
| 12 | ============ |
| 13 | |
| 14 | /std/living/attributes.c |
| 15 | |
| 16 | |
| 17 | ARGUMENTE |
| 18 | ========= |
| 19 | |
| 20 | attr - zu setzendes Attribut |
| 21 | val - Wert |
| 22 | |
| 23 | |
| 24 | BESCHREIBUNG |
| 25 | ============ |
| 26 | |
| 27 | Nimm val als Gesamtwert des Attributes, d.h. zieht etwaige Offsets vor |
| 28 | Setzen ab. (QueryAttribute gibt dann also val zurueck) |
| 29 | |
| 30 | |
| 31 | RUeCKGABEWERT |
| 32 | ============= |
| 33 | |
| 34 | Den durch SetAttr gefilterten gesetzten Wert. |
| 35 | Bitte nicht auf Spieler anwenden! |
| 36 | |
| 37 | |
| 38 | SIEHE AUCH |
| 39 | ========== |
| 40 | |
| 41 | QueryAttribute(), QueryRealAttribute(), QueryAttributeOffset(), |
| 42 | SetAttribute(), SetRealAttribute(), UpdateAttributes(), |
| 43 | SetTimedAttrModifier(), QueryTimedAttrModifier(), |
| 44 | DeleteTimedAttrModifier(), |
| 45 | P_ATTRIBUTES, P_ATTRIBUTES_OFFSETS, P_TIMED_ATTR_MOD, |
| 46 | P_X_ATTR_MOD, P_M_ATTR_MOD, /std/living/attributes.c |
| 47 | |
| 48 | Last modified: Tue Jul 27 20:00:20 2004 by Muadib |