Category: Effects
Since engine version: 4.9.5.0 CE
iQueryVal | Value |
---|---|
0 | Effect number |
1 | Name |
2 | Priority |
3 | Timer interval |
4 | Command target |
5 | Command target id |
6 | Duration of the effect |
var obj, i, iEffect; // Alle Objekte durchsuchen while (obj=FindObject(0, 0,0,0,0, 0, 0,0, 0, obj)) { // Von Effektzahl abwärts zählen, da Effekte entfernt werden i = GetEffectCount(0, obj); while (i--) if (iEffect = GetEffect("*Spell", obj, i)) RemoveEffect(0, obj, iEffect); } // Globale Effekte entfernen i = GetEffectCount(); while (i--) if (iEffect = GetEffect("*Spell", 0, i)) RemoveEffect(0, 0, iEffect);