HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Blind Ability

09-23-2006, 07:14 PM#1
Pyrogasm
I was hoping I could get some help on how to make an ability that would, when cast on a unit, shake the camera of the owning player and fade in and out with random colors for 2, 3, 4, 5 seconds. Something similar to the Drunken Panda/Archer fight in Uther Party. Thanks!
09-23-2006, 08:35 PM#2
Omega-Prime
Trigger:
Events - A unit starts the effect of an ability.
Conditions - Ability being cast equal to Blind
Actions - Add (Target Unit of Ability Being Cast) to BlindGroup

Trigger:
Events - Every 5 seconds of game time
Conditions - (None)
Collapse Actions - Pick Every Unit in (BlindGroup) and do (Multiple Actions)
Loop - Actions
Camera - Shake the Camera for (Owner of (Picked Unit)) with magnitude (Random real number between 1.00 and 10.00)
Wait (Random real number between 2.00 and 5.00) seconds
Camera - Stop the Camera for (Owner of (Picked Unit))

Trigger:
Events - Every 0.30 seconds of game time
Conditions - (None)
Collapse Actions - Pick Every Unit in (BlindGroup) and do (Actions)
Loop - Actions
If (Picked Unit) has buff (Blind) equal to False then (Unit Group - Remove (Picked Unit) from (BlindGroup) else (Do Nothing)

I think this should work. I couldn't figure out how to apply Filters individually for the owners of specific units, so I couldn't discover how to make the screen flash different colors randomly :( Nonetheless, I hope this helps :)
09-24-2006, 11:48 PM#3
Pyrogasm
Thank you very much.