- Joined
- Apr 8, 2009
- Messages
- 21
Hello Hive! I've been trying to get this trigger to work for about an hour now, as I've got a floating damage number system working now, so I'm happy with that. The background is, the spell (based on Firebolt) deals 0 damage, and the damage is calculated through this trigger (so it has scaling damage rather then static damage). I used those temp variables to make it easier for me to add new spells later on (I can just edit each of those faster then opening up the Unit - Cause action).
I've tried switching it to Unit - A unit Finishes casting an ability however this doesn't work; no damage is dealt and no floating text. Any ideas?
Just as a random thought; rather then having a seperate trigger for each spell, would it be possible to assign custom values to a spell, that could be checked later (so I could assign Str (0)/ Agi (1)/ Int (2) and the modifier)? Then I could have one trigger that would handle all of my spells... Might make things faster.
Also, I'm wondering if there was a program/tool that checks leaks for me? Leak Check 3.1 is outdated and I'm trying to keep things as leakfree as possible.
Anyway, thanks in advance for your help!
-
SpellFirebolt
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to (==) Firebolt
-
Actions
- -------- Create a temporary variables --------
- Set tempAttribute = (Intelligence of (Casting unit) (Include bonuses))
- Set tempAttributeModifier = 2
- Set tempInteger = (tempAttribute x tempAttributeModifier)
- -------- Apply damage --------
- Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (Real(tempInteger)) damage of attack type Spells and damage type Normal
- -------- Reset values --------
- Set tempAttribute = 0
- Set tempAttributeModifier = 0
- Set tempInteger = 0
-
Events
I've tried switching it to Unit - A unit Finishes casting an ability however this doesn't work; no damage is dealt and no floating text. Any ideas?
Just as a random thought; rather then having a seperate trigger for each spell, would it be possible to assign custom values to a spell, that could be checked later (so I could assign Str (0)/ Agi (1)/ Int (2) and the modifier)? Then I could have one trigger that would handle all of my spells... Might make things faster.
Also, I'm wondering if there was a program/tool that checks leaks for me? Leak Check 3.1 is outdated and I'm trying to keep things as leakfree as possible.
Anyway, thanks in advance for your help!