HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

cannot get this thing work, need help thanx

09-12-2006, 01:37 AM#1
seraphthrone
I want to make a skill that can lunch one shockwave from every nearby destructible.

so I made the following code. But it seems doesn't work.

When I test the skill, although every destructible will have a dummy unit nearby, but only 1 dummy will cast the spell but others won't.

I want to make every dummy to cast the spell instead of just 1 of them cast the spell.

thanks

Trigger:
skill 1
Collapse Events
Unit - A unit Begins casting an ability
Collapse Conditions
(Ability being cast) Equal to Shock Wave
Collapse Actions
Set X = (Casting unit)
Collapse Destructible - Pick every destructible within 500.00 of (Position of X) and do (Actions)
Collapse Loop - Actions
Unit - Create 1 dummy for Player 1 (Red) at (Position of (Picked destructible)) facing Default building facing (270.0) degrees
Unit - Add Shock Wave to (Last created unit)
Unit - Order (Last created unit) to shockwave (Target point of ability being cast)
Unit - Kill (Last created unit)

P.S:
dummy is a custom unit class created in object manager
ShockWave is a custom ability created in object manager, and its order string is shockwave

------------------------------------------------------------------------
09-12-2006, 03:45 AM#2
Naakaloh
It's possible that they are being killed before they have an opportunity to cast the spell.
09-12-2006, 04:38 AM#3
aquilla
Yep, try adding a 1 sec generic expiration timer to it instead
09-12-2006, 06:45 AM#4
The)TideHunter(
Yep, they said it, add a 2 (i reccomend) second expiration to the dummy's so they dont die instantly, shockwave is instant cast but it still takes roughly 0.5 seconds when its used.