- Joined
- Feb 25, 2005
- Messages
- 230
Well hi there,
I have made a spell, enabling a hero to swing his sword manually, dealing damage to enemies in range of his sword (the hero is a blademaster).
The spell is based on a 'Howl of Terror', but that is just to have a 'triggerer-spell' with no target (the spell actually has no effects of itself, except playing the Hero's attack animation).
This is what happens when using the spell:
Removed some floating texts and sounds in the trigger to make it cleaner... tell me if you want the whole trigger.
Here's the problem: After using this spell, dealing damage to enemies, you can simply attack them again (using the 'normal' attack). This enables a sort of 'double strike', or even 'triple strike' if the player goes like this: attack - slice - attack. I would like the spell to count on the units attack-cooldown, not allowing him to attack directly afterwards.
Can this be done in the Object Editor or in GUI?
Any help appreciated.
I have made a spell, enabling a hero to swing his sword manually, dealing damage to enemies in range of his sword (the hero is a blademaster).
The spell is based on a 'Howl of Terror', but that is just to have a 'triggerer-spell' with no target (the spell actually has no effects of itself, except playing the Hero's attack animation).
This is what happens when using the spell:
Removed some floating texts and sounds in the trigger to make it cleaner... tell me if you want the whole trigger.
-
Slice
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Slice
-
Actions
- Set tempPoint[2] = ((Position of (Triggering unit)) offset by 100.00 towards (Facing of (Triggering unit)) degrees)
- Wait 0.11 seconds
- Set tempUnitGroup[1] = (Units within 100.00 of tempPoint[2] matching ((((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit))) Equal to True) and (((Matching unit) is A structure) Equal to False)))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Triggering unit) is alive) Equal to True
-
Then - Actions
-
Unit Group - Pick every unit in tempUnitGroup[1] and do (Actions)
-
Loop - Actions
- Unit - Cause (Triggering unit) to damage (Picked unit), dealing (X) damage of attack type Hero and damage type Normal
-
Loop - Actions
-
Unit Group - Pick every unit in tempUnitGroup[1] and do (Actions)
-
If - Conditions
-
Events
Here's the problem: After using this spell, dealing damage to enemies, you can simply attack them again (using the 'normal' attack). This enables a sort of 'double strike', or even 'triple strike' if the player goes like this: attack - slice - attack. I would like the spell to count on the units attack-cooldown, not allowing him to attack directly afterwards.
Can this be done in the Object Editor or in GUI?
Any help appreciated.