HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

For every 1 second casting time,a 1 second effect. how to?

04-27-2007, 05:04 AM#1
Skurai
Really need 2 know this one.
The basic triggers[not jass pls].

example, for every 1 second u cast a spell,it entangles target by 1 second. Max 5 seconds of casting. Canceling it

Also is it possible to make it such that if player presses X while controlling a certain hero, that hero does something[say a spell,etc] but the spell is NOT found as an ability on the hero, means its purely triggered.

And finally if u know how, how to make a spell that when u are channeling a spell, u cast that spell and it does not interrupt your channeling?

Thanks in advance if u solve my problem :)
04-27-2007, 05:12 AM#2
Pyrogasm
Quote:
Also is it possible to make it such that if player presses X while controlling a certain hero, that hero does something[say a spell,etc] but the spell is NOT found as an ability on the hero, means its purely triggered.
Put the spell inside a disabled spell book.
04-27-2007, 01:45 PM#3
TheSecretArts
Create a spell based off chanel with a 5 second cast time, and create a unit with no model named dummy, and have a spell with entagle that's buff lasts 1 second, and make sure the dummy has the spell with 1-sec entangle, and have a unit global named TangleCaster and have a trigger, and have a global unit named TangleTarget
Trigger:
Collapse Events:
A Unit starts casting an ability
Collapse Conditions:
(Casted Ability) is equal to <spell based of channel>
Collapse Actions:
Set TangleCaster = (Triggering Unit)
Set TangleTarger = (Target of Ability Cast)
Collapse For each (Integer A) between 1 and 5 do (Actions)
Collapse If (conditions) are equal to true Then (actions) Else (actions)
Collapse Conditions:
TangleCaster is casting an ability
Collapse Actions (Then):
Unit - Create one dummy unit at (Position of Unit(TangleCaster) facing default building angle
Unit - Order last created unit to cast (Keeper of the Grove - Entangle) at (TangleCaser)
Unit - Kill (last created unit)
Actions (Else):

If you cant find Target of Ability cast try finding something like target of spell or such! Hope i could help!