| 02-26-2006, 12:28 AM | #1 |
Hello, I use the caster system in my map, I created some spells with, but there is an issue : If a unit is killed by a spell, no gold are winning by the player owner. And I use a trigger to see which unit have the kill reward, and i saw the dummy caster. So i want to make my spell giving gold to the player when a unit is killed by those spell. Thx for future answer PS : sorry for my very bad english , i hope i've been anderstood. |
| 02-26-2006, 12:30 AM | #2 |
You are using the caster system in a wrong way. Whatever function you are using to do damage, you have to specify the player that you want to bonus. |
| 02-26-2006, 12:56 AM | #4 |
And a second spell : Trigger: I can see that i didnt set the owner,but how can I do ? |
| 02-26-2006, 02:52 AM | #5 |
In the first trigger there is a huge problem, 35 seconds is kind of a very long second and UnitVar could get overwritten. Assign Unit Var after the wait. There is no need to set the owner for the second one because it is a function that takes a unit, anyways that spell is supposed to do damage for the attacked unit or the attacking unit? Cause in the version you posted it will credit Triggering unit which in this event is the Attacked Unit |
| 02-26-2006, 08:54 AM | #6 |
Ok, thx : the second now works with Attacker()^^ but the first...I removed the wait, I used a shorter wait, I removed the UnitVar to use GetOwningPlayer(TriggerUnit()) or GetOwningPlayer(SpellAblilityUnit()), I set UnitVar with Triggering unit and casting unit, but in all case, there are no bonus gold. What can I do ?? |
| 02-26-2006, 02:22 PM | #7 |
hmnn I note that it is casting entangling roots? So the damage it does is timed . I think you have to set Recycle delay to the duration of the entangling roots spell Check the readme for that |
