Quote:
Originally Posted by sospam
[Spoiler]
My Problem is that once you have a condition of class 2 or above there is no way of telling if you also have a class 1 condition since the class 1 modifier is 0.
Is there any way to work around this and is it possible to differ between the individual condion(s) in a class?
|
Code:
If BitAND($cbVar[0], 0x01) Then "target is bleeding"
If BitAND($cbVar[0], 0x02) Then "target has a condition"
If BitAND($cbVar[0], 0x08) Then "target is crippled"
If BitAND($cbVar[0], 0x10) Then "target is dead"
If BitAND($cbVar[0], 0x20) Then "target has a Deep Wound"
If BitAND($cbVar[0], 0x40) Then "target is poisoned/diseased (green health)"
If BitAND($cbVar[0], 0x80) Then "target is enchanted"
A bit pseudo-code-ish. But that's how you do it :D And yes, bleeding actually looks like 0x03, but that's cause "has a condition" just means to show that condition-arrow at the health bar.