- Joined
- Feb 15, 2008
- Messages
- 13
Hello everyone, I'm new to the Workshop, but I have a quick problem with a trigger that I'd like help with. It's probably really simple, but I've never really done anything with the trigger system so I'm lost. Anyway, I basically wanted to create an ultimate spell for a unit that essentially works the same way that the arbiter's stasis field does for starcraft where the targeted unit is placed in crystal but is invulnerable to damage and cannot move.
I used the art target for the frost wyrm's freezing breath to crystallize the target and I pause it to stop it and I can make it invulnerable, but somehow I can't seem to get the trigger to turn off. I want the duration for a hero to be 15 seconds and for any other unit 25 seconds. Since this is my first real custom spell, I'd prefer it to be kept as simple as possible, but I'll take any help I can get.
Thanks!
Oh, I've posted what I have for the trigger so far.
Stasis Crystal
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Stasis Crystal
Actions
Special Effect - Create a special effect attached to the overhead of (Target unit of ability being cast) using abilities\Spells\Undead\FreezingBreath\FreezingBreathTargetArt.mdl
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) is A Hero) Equal to True
Then - Actions
Unit - Make (Target unit of ability being cast) Invulnerable
Wait 15.00 seconds
Unit - Make (Target unit of ability being cast) Vulnerable
Else - Actions
Do nothing
Unit - Make (Target unit of ability being cast) Invulnerable
Unit - Pause (Target unit of ability being cast)
Wait 25.00 seconds
Unit - Unpause (Triggering unit)
Unit - Make (Target unit of ability being cast) Vulnerable
Oh, I forgot to mention that I was trying to get a buff for the ability to describe what's happening, but if it's not feasible I'll just abandon that part.
I used the art target for the frost wyrm's freezing breath to crystallize the target and I pause it to stop it and I can make it invulnerable, but somehow I can't seem to get the trigger to turn off. I want the duration for a hero to be 15 seconds and for any other unit 25 seconds. Since this is my first real custom spell, I'd prefer it to be kept as simple as possible, but I'll take any help I can get.
Thanks!
Oh, I've posted what I have for the trigger so far.
Stasis Crystal
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Stasis Crystal
Actions
Special Effect - Create a special effect attached to the overhead of (Target unit of ability being cast) using abilities\Spells\Undead\FreezingBreath\FreezingBreathTargetArt.mdl
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Target unit of ability being cast) is A Hero) Equal to True
Then - Actions
Unit - Make (Target unit of ability being cast) Invulnerable
Wait 15.00 seconds
Unit - Make (Target unit of ability being cast) Vulnerable
Else - Actions
Do nothing
Unit - Make (Target unit of ability being cast) Invulnerable
Unit - Pause (Target unit of ability being cast)
Wait 25.00 seconds
Unit - Unpause (Triggering unit)
Unit - Make (Target unit of ability being cast) Vulnerable
Oh, I forgot to mention that I was trying to get a buff for the ability to describe what's happening, but if it's not feasible I'll just abandon that part.