 |   |  |  |
| World Editor Help Zone Need help with Blizzard's World Editor? Ask general questions about its features and use in this forum. README! |
 |
02-15-2008, 09:50 AM
|
#1 (permalink)
|
User
Join Date: Feb 2008
Posts: 13
|
Simple Problem with Stasis ability
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.
|
|
|
02-15-2008, 10:12 AM
|
#2 (permalink)
|
valiant little mapper
Join Date: Nov 2006
Posts: 763
|
just use the freezing breath ability, change allowed targets to ground(or which target you like) and set duration for heros to 15 sec and normal to 25, you only need a trigger for making the unit invulnerable then:
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
If - Conditions
((Target unit of ability being cast) is A Hero) Equal to false
Then - Actions
Unit - Make (Target unit of ability being cast) Invulnerable
Wait 25.00 seconds
Unit - Make (Target unit of ability being cast) Vulnerable
Else - Actions
Do nothing
__________________
When I come back from the mighty quest
I have no need for sleep or rest
I head to a tavern for a drink
And get so drunk I cannot think
A wench by my side and a jug of mead
These are the things that I most need
So I sit back and sing this song
And drink and party all night long
|
|
|
02-15-2008, 10:35 AM
|
#3 (permalink)
|
meow
Join Date: Aug 2007
Posts: 2,528
|
Welcome to The Hiveworkshop ^^
You'll need a variable for this
To Create A variable open Variable Editor ( X shaped)
Create an Unit variable named TempUnit
Create a Special Effect variable named TempEffect
 Stasis Crystal  Events   Unit - A unit Starts the effect of an ability  Conditions   (Ability being cast) Equal to Stasis Crystal  Actions
I think this ability should pause and make invulnurable a hero for 15 and a normal unit for 25 seconds
This one will work if this is what are you trying to do
|
|
|
02-15-2008, 11:09 AM
|
#4 (permalink)
|
User
Join Date: Feb 2008
Posts: 13
|
Well, the spell paused them for the given duration and trapped them in the crystal, but the invulnerability doesn't work. Its better than what happened the first time when the trigger was indefinite, though. For some reason the temp unit format doesn't work for the invulnerability.
|
|
|
02-15-2008, 11:10 AM
|
#5 (permalink)
|
meow
Join Date: Aug 2007
Posts: 2,528
|
Try adding it Invulnurability ability and removing it instead of make unit invulnurable
All custom scripts all required to work btw :P
|
|
|
02-16-2008, 04:04 AM
|
#6 (permalink)
|
User
Join Date: Feb 2008
Posts: 13
|
Hey everyone, it's me again. I tried both recommendations and I still don't know why it won't work. It freezes and pauses the unit and the duration is right, but the unit just won't become invulnerable. I have a feeling that I'm doing something wrong and that it's probably really simple.
Here is what I have:  Stasis Crystal
Last edited by Rui; 02-16-2008 at 12:43 PM..
Reason: Added TRIGGER tags. Use them next time you post a trigger.
|
|
|
02-16-2008, 10:52 AM
|
#7 (permalink)
|
valiant little mapper
Join Date: Nov 2006
Posts: 763
|
Hey dude, i might have a solution to your problem although its not excactly what you wanted, use sleep as your ability, change the target animation to freezing breath and the stun time 15 sec, the duration for heros to 15 and for normal units to 25, the only problem to this is that normal units get vulnerable after 15 sec, because you can only select one stun time, but they are still asleep for 10 more sec and also the effect lasts. maybe someone else has an idea how to select another stun time for normal units.
i have attached a map where you can copy it or look at it, i gave the dreadlords the ability
__________________
When I come back from the mighty quest
I have no need for sleep or rest
I head to a tavern for a drink
And get so drunk I cannot think
A wench by my side and a jug of mead
These are the things that I most need
So I sit back and sing this song
And drink and party all night long
|
|
|
02-16-2008, 12:09 PM
|
#8 (permalink)
|
meow
Join Date: Aug 2007
Posts: 2,528
|
|
|
|
02-16-2008, 12:31 PM
|
#9 (permalink)
|
valiant little mapper
Join Date: Nov 2006
Posts: 763
|
whats so weird in this, well actually i don't know if i translated everything correctly, cause my WE is german, but if you look at the map, i made a new ability based on sleep and called it stasis crystal, it should become clear.
and don't look at the triggers in the map, you don't need any for this ability, but i left my tries in
__________________
When I come back from the mighty quest
I have no need for sleep or rest
I head to a tavern for a drink
And get so drunk I cannot think
A wench by my side and a jug of mead
These are the things that I most need
So I sit back and sing this song
And drink and party all night long
|
|
|
02-16-2008, 01:03 PM
|
#10 (permalink)
|
User
Join Date: Feb 2008
Posts: 13
|
Hey, thanks UreDe4D! That's exactly what I was looking for, actually. Anyway, about the stun times, I'm not exactly sure what to do about that. Maybe some kind of if then trigger to extend the duration for heroes?
|
|
|
02-18-2008, 12:35 PM
|
#11 (permalink)
|
meow
Join Date: Aug 2007
Posts: 2,528
|
...
Duration - Unit
Duration - Hero
|
|
|
02-18-2008, 03:18 PM
|
#12 (permalink)
|
valiant little mapper
Join Date: Nov 2006
Posts: 763
|
there is no choose option for stun, only one time for all unittypes
__________________
When I come back from the mighty quest
I have no need for sleep or rest
I head to a tavern for a drink
And get so drunk I cannot think
A wench by my side and a jug of mead
These are the things that I most need
So I sit back and sing this song
And drink and party all night long
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|  |  |  |  |   |  |
|