sentrywiz
S
sentrywiz
Hi guys
I'm trying (been trying) to make a damage over time spell with hashtables.
And I'm stuck.
1st - I cannot configure like I said, a dot spell that will damage a unit 5 times. I have the whole trigger made like:
a) When casting the ability, configures the damage and saves it in a hashtable. It also calculates the time needed, in my case its an real variable set to 5. After that the target of ability being cast is added to DamageOverTime unit group
b) A periodic trigger that runs every 1 second is supposed to damage every unit in the unit group above mentioned. This is where I have problems
problem1) The casting unit cannot damage the target. Because its in a periodic trigger, I cannot use casting unit cuz which casting unit? I tried to save the casting unit in a unit variable under casting unit, but that didn't work when I tried to "Damage Target - ? Unit damages Picked Unit dealing X damage,"
problem2) I don't know how to use key handles. I tried to save in hashtable anything with 0 and key(casting unit) since it said in wyrmlord's tutorial that each unit has an ID handle. However it doesn't work for me. Or better yet, I don't work with it
..
Need help!
Thanks
I'm trying (been trying) to make a damage over time spell with hashtables.
And I'm stuck.
1st - I cannot configure like I said, a dot spell that will damage a unit 5 times. I have the whole trigger made like:
a) When casting the ability, configures the damage and saves it in a hashtable. It also calculates the time needed, in my case its an real variable set to 5. After that the target of ability being cast is added to DamageOverTime unit group
b) A periodic trigger that runs every 1 second is supposed to damage every unit in the unit group above mentioned. This is where I have problems
problem1) The casting unit cannot damage the target. Because its in a periodic trigger, I cannot use casting unit cuz which casting unit? I tried to save the casting unit in a unit variable under casting unit, but that didn't work when I tried to "Damage Target - ? Unit damages Picked Unit dealing X damage,"
problem2) I don't know how to use key handles. I tried to save in hashtable anything with 0 and key(casting unit) since it said in wyrmlord's tutorial that each unit has an ID handle. However it doesn't work for me. Or better yet, I don't work with it
Need help!
Thanks