- Joined
- Jan 30, 2013
- Messages
- 12,337
So, I need a multidimensional array data for two variables. To be clear, here is my goal:
I have a caster that casts a spell on a target unit and inflict a debuff. The debuff increases damage taken by percentage from this unit and their group. Unit Indexer is used.
In short, the scenario goes like this:
Unit A is hit by Unit B (Group B) --> Unit A takes more damage from group B
Unit A is hit by Unit C after Unit B (buff from B not expired yet) --> Unit A now also takes more damage from group C BUT at different values than group B
(say, group B deals 50% more, while group C deals 30% more)
In short, it's like the unit is inflicted with two different stacks that affect the damage taken from two different groups. I am at a lost to create a pair-like structure where
A <> B = 50%; 5 seconds
A <> C = 30%; 10 seconds
EDIT:
I realized Hashtables might lead me somewhere, but I try to not expend that 255 hashtables for this.
EDIT:
I realized I should make the pairing clearer. Refer to below:
A <> B : 50%
A <> C : 30%
D <> B : 45%
D <> C : 20%
B <> D : 15%
I have a caster that casts a spell on a target unit and inflict a debuff. The debuff increases damage taken by percentage from this unit and their group. Unit Indexer is used.
In short, the scenario goes like this:
Unit A is hit by Unit B (Group B) --> Unit A takes more damage from group B
Unit A is hit by Unit C after Unit B (buff from B not expired yet) --> Unit A now also takes more damage from group C BUT at different values than group B
(say, group B deals 50% more, while group C deals 30% more)
In short, it's like the unit is inflicted with two different stacks that affect the damage taken from two different groups. I am at a lost to create a pair-like structure where
A <> B = 50%; 5 seconds
A <> C = 30%; 10 seconds
EDIT:
I realized Hashtables might lead me somewhere, but I try to not expend that 255 hashtables for this.
EDIT:
I realized I should make the pairing clearer. Refer to below:
A <> B : 50%
A <> C : 30%
D <> B : 45%
D <> C : 20%
B <> D : 15%
Last edited: