(Keeps Hive Alive)
Go Back   The Hive Workshop - A Warcraft III Modding Site > Warcraft III Modding > World Editor Help Zone

World Editor Help Zone Need help with Blizzard's World Editor? Ask general questions about its features and use in this forum. README!

Closed Thread
 
LinkBack Thread Tools Display Modes
Old 02-15-2008, 09:50 AM   #1 (permalink)

User
 
Join Date: Feb 2008
Posts: 13

Filsdunuit is an unknown quantity at this point (0)


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.
Filsdunuit is offline  
Old 02-15-2008, 10:12 AM   #2 (permalink)
 
UreDe4D's Avatar

valiant little mapper
 
Join Date: Nov 2006
Posts: 763

UreDe4D is on a distinguished road (76)UreDe4D is on a distinguished road (76)


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
UreDe4D is offline  
Old 02-15-2008, 10:35 AM   #3 (permalink)
 
Need_O2's Avatar

meow
 
Join Date: Aug 2007
Posts: 2,528

Need_O2 is a jewel in the rough (183)Need_O2 is a jewel in the rough (183)


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
Custom script: local unit udg_TempUnit
Custom script: local effect udg_TempEffect
Set TempUnit = (Target unit of ability being cast)
Special Effect - Create a special effect attached to the overhead of (Target unit of ability being cast) using abilities\Spells\Undead\FreezingBreath\FreezingBreathTargetArt.mdl
Set TempEffect = (Last Created Special Effect)
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 TempUnit Invulnerable
Unit - Pause TempUnit
Wait 15.00 seconds
Unit - Unpause TempUnit
Unit - Make TempUnit Vulnerable
Else - Actions
Unit - Make TempUnit Invulnerable
Unit - Pause TempUnit
Wait 25.00 seconds
Unit - Unpause TempUnit
Unit - Make TempUnit Vulnerable
Special Effect - Destroy TempEffect
Set TempUnit = No Unit

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
Need_O2 is offline  
Old 02-15-2008, 11:09 AM   #4 (permalink)

User
 
Join Date: Feb 2008
Posts: 13

Filsdunuit is an unknown quantity at this point (0)


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.
Filsdunuit is offline  
Old 02-15-2008, 11:10 AM   #5 (permalink)
 
Need_O2's Avatar

meow
 
Join Date: Aug 2007
Posts: 2,528

Need_O2 is a jewel in the rough (183)Need_O2 is a jewel in the rough (183)


Try adding it Invulnurability ability and removing it instead of make unit invulnurable
All custom scripts all required to work btw :P
Need_O2 is offline  
Old 02-16-2008, 04:04 AM   #6 (permalink)

User
 
Join Date: Feb 2008
Posts: 13

Filsdunuit is an unknown quantity at this point (0)


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
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Stasis Crystal
Actions
Custom script: local unit udg_TempUnit
Custom script: local effect udg_TempEffect
Set TempUnit = (Target unit of ability being cast)
Special Effect - Create a special effect attached to the overhead of TempUnit using Abilities\Spells\Undead\FreezingBreath\FreezingBreathTargetArt.mdl
Set TempEffect = (Last created special effect)
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 - Add Invulnerable (Neutral) to TempUnit
Unit - Pause TempUnit
Wait 15.00 seconds
Unit - Remove Invulnerable (Neutral) from TempUnit
Unit - Unpause TempUnit
Else - Actions
Unit - Add Invulnerable (Neutral) to TempUnit
Unit - Pause TempUnit
Wait 25.00 seconds
Unit - Unpause TempUnit
Unit - Remove Invulnerable (Neutral) from TempUnit
Special Effect - Destroy TempEffect
Set TempUnit = No unit

Last edited by Rui; 02-16-2008 at 12:43 PM.. Reason: Added TRIGGER tags. Use them next time you post a trigger.
Filsdunuit is offline  
Old 02-16-2008, 10:52 AM   #7 (permalink)
 
UreDe4D's Avatar

valiant little mapper
 
Join Date: Nov 2006
Posts: 763

UreDe4D is on a distinguished road (76)UreDe4D is on a distinguished road (76)


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
Attached Files
File Type: w3x freeze.w3x (17.9 KB, 4 views)
__________________
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
UreDe4D is offline  
Old 02-16-2008, 12:09 PM   #8 (permalink)
 
Need_O2's Avatar

meow
 
Join Date: Aug 2007
Posts: 2,528

Need_O2 is a jewel in the rough (183)Need_O2 is a jewel in the rough (183)


this is VERY weird....
Need_O2 is offline  
Old 02-16-2008, 12:31 PM   #9 (permalink)
 
UreDe4D's Avatar

valiant little mapper
 
Join Date: Nov 2006
Posts: 763

UreDe4D is on a distinguished road (76)UreDe4D is on a distinguished road (76)


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
UreDe4D is offline  
Old 02-16-2008, 01:03 PM   #10 (permalink)

User
 
Join Date: Feb 2008
Posts: 13

Filsdunuit is an unknown quantity at this point (0)


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?
Filsdunuit is offline  
Old 02-18-2008, 12:35 PM   #11 (permalink)
 
Need_O2's Avatar

meow
 
Join Date: Aug 2007
Posts: 2,528

Need_O2 is a jewel in the rough (183)Need_O2 is a jewel in the rough (183)


...
Duration - Unit
Duration - Hero
Need_O2 is offline  
Old 02-18-2008, 03:18 PM   #12 (permalink)
 
UreDe4D's Avatar

valiant little mapper
 
Join Date: Nov 2006
Posts: 763

UreDe4D is on a distinguished road (76)UreDe4D is on a distinguished road (76)


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
UreDe4D is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
a simple but complicated ability :) +rep credits shadoye Requests 2 04-14-2008 09:51 PM
Simple ability needed corley Triggers & Scripts 1 03-13-2008 02:34 PM
Stasis Trap Gilles Triggers & Scripts 9 09-01-2007 08:56 PM
Simple Dummy ability -_- aYs-Halo Map Development 2 06-22-2006 08:18 PM
Simple Trigger-Enhanced Ability Question pat715 Triggers & Scripts 2 04-22-2005 06:23 PM

All times are GMT. The time now is 11:58 PM.






Your link here 
Mortgages | Free Advertising | Problem Mortgage | Guitar Books | 0% Balance Transfers
Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Copyright©Ralle