This is kinda hard to explain..
Alright so what I have right now is..
variable1[player number of (owner of (casting unit))] = variable1[player number of (owner of (casting unit))] + 1
Now would this mean that each player will have a seperate number?
Lets say that player 1 casts the spell 4 times, so variable 1 would be 4 for him. Then lets say player 2 casts the spell 3 times. Would the variable stay at 4 for player 1 and 3 for player 2?
If thats true..
What I would want is that if a player is holding an item it will give that player variable1[player number of (owner of (casting unit))] = 4. But I reliezed that the array wouldn't work because the unit isnt casting anything. So if i change it to is carring an item. But if the player casts then it wouldnt work with "is carring the item".
Im trying to make as much sense as I can. For Example this is what its suppose to do.
Items give +spell damage.
When the caster casts I want the +spell damage to add to the damage that it has done.
I already know how to do all of that except for calculating the spell damage for each player INDIVIDUALY.
I hope this makes sense.
Alright so what I have right now is..
variable1[player number of (owner of (casting unit))] = variable1[player number of (owner of (casting unit))] + 1
Now would this mean that each player will have a seperate number?
Lets say that player 1 casts the spell 4 times, so variable 1 would be 4 for him. Then lets say player 2 casts the spell 3 times. Would the variable stay at 4 for player 1 and 3 for player 2?
If thats true..
What I would want is that if a player is holding an item it will give that player variable1[player number of (owner of (casting unit))] = 4. But I reliezed that the array wouldn't work because the unit isnt casting anything. So if i change it to is carring an item. But if the player casts then it wouldnt work with "is carring the item".
Im trying to make as much sense as I can. For Example this is what its suppose to do.
Items give +spell damage.
When the caster casts I want the +spell damage to add to the damage that it has done.
I already know how to do all of that except for calculating the spell damage for each player INDIVIDUALY.
I hope this makes sense.