| 01-05-2004, 04:44 PM | #1 |
In hope there is somebody that can help me with this triggers: I am using Shadow Strike (copy/paste, create a new one) and enhance it with triggers. I am creating some kind of Claws Attack for Wolverine. The hero goes berserk, i use some effects on him and the target.. then he jumps over the target (i couldn't really make him elevate, so the jump look more naturall, i couldn't find any trigger to do that)... then checks the target HP. If lower than 500, do 490 damage.. if higher than 500, do 500 damage. That's not the problem. My real problem is, i use Move Unit instantly and Pause Target Unit. Every time i use that, the spell cooldown is geting back to zero... like it was never used. I tried all kinds of tricks, but none of them worked. I think i need to use another spell that's object target based, and still retain the cooldown after i use those triggers. Please help me... i am kinda hopeless in here. Thank you in advance. Unit - A unit Is issued an order targeting an object (Issued order) Equal to (Order(shadowstrike)) Set ClawTarget = (Target unit of issued order) Unit - A unit Begins channeling an ability (Ability being cast) Equal to Claws Attack Set ClawCaster = (Casting unit) Unit - Pause ClawTarget Unit - Move ClawCaster instantly to (Position of ClawTarget), facing (Position of ClawTarget) Special Effect - Create a special effect attached to the overhead of ClawCaster using Abilities\Spells\Other\Cleave\CleaveDamageTarget.mdl Sound - Play HowlOfTerror <gen> at 100.00% volume, located at (Position of ClawCaster) with Z offset 0.00 If (All Conditions are True) then do (Then Actions) else do (Else Actions) If - Conditions (Life of ClawTarget) Less than or equal to 500.00 Then - Actions Unit - Set life of ClawTarget to 30.00 Else - Actions Unit - Set life of ClawTarget to ((Life of ClawTarget) - 500.00) Unit - Order ClawCaster to Attack ClawTarget .... added some effects in here Unit - Unpause ClawTarget ..... then destroy special effects. If i'll remove all those Move instantly and Order to attack.. or pause/unpause.. the spell cooldown is working. When those are added.. my spell is ready to use again in about 0.5 seconds. Why ? |
| 01-05-2004, 04:46 PM | #2 | |
Quote:
Change that to Unit - A unit starts the effect of an ability Problem solved! Very simple. |
| 01-05-2004, 04:53 PM | #3 | |
Quote:
WOW... seems like i have to get some sleep. I don't see simple sollutions anymore. Thanks. Big thanks for your help. Hehehe... that worked. |
