• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Want to create an ability but I don't Know How

Status
Not open for further replies.
Level 2
Joined
Nov 13, 2010
Messages
7
I want to create an ability were the player summons a tree or sumthing and then an area is created around the tree which enemy cant leave until the summoned object disapears how could i do this?
 
Level 5
Joined
Sep 1, 2010
Messages
168
Assuming you only need one of those regions for 1 unit casting this

If you use a rectangular region, you could simply create a region somewhere in nowhere's land of your desired size.
Then, use a dummy ability to move that region centered over target point of ability being cast
wait xxx seconds, move that same region to nowhereland again

use another trigger - unit leaves region <your region>
unit - move triggering unit instantly 100 towards center of <your region>

if you need a testmap (and this is the ability you are looking for) I could do one tomorrow, but now I'm off to sleep, so please excuse the sloppy decription above.

ps: another trigger to add could be a unit dies *equal to your created tree* move region <your region> to nowhereland
 
@mogar - its more like Furion's sprout spell... the pitlord's just cause a temp entangle to units entering the pit of malice...

@ThaAtael - using waits would make it not MUI...

@xdpredatorz - TheAtael's suggestion would give you a basic idea on how to do it...

but if the unit it such that the units can still use blink or teleport spells to go out, you can just spawn trees around the target point...
 
Level 16
Joined
Aug 20, 2009
Messages
1,554
........
well...
spawn some destructible,
spawn some dummy,
assign each dummy to variable,
add expiration timer to the dummies.
when dummy dies, kill the assigned destructible.

it should be easily done in GUI, you can see a lot of examples,
the first trigger involving destructible assigning for me was fissure,
try look it up with search engine, you might get an idea.

i am too busy to make sprout, +__+. sry.

but you might get the main idea.
it don't even need JASS.

@ Athael

i don't think using region is a good idea.
 
it is indeed bad but:

Adiktuz said:
If you look at his idea, he used region to ensure that no unit can leave the area even when using tele skills... something you cannot do with just destructables

not to say that he moves the region so there's no restriction on where you can cast it... only on how large the area could be...

of course you can save a max,min x,y into a variable and index it to make it MUI and mimic the region thing, so you don't have to use regions, but that's pretty much work on GUI...
 
Level 5
Joined
Sep 1, 2010
Messages
168
Ok, problem I encountered.. Seems I can't get the region to move; somehow my world edit is either corrupted (crashes on trying to modify event - load region handle and rect handle seems not to do the job) or it's in all german world editor versions that this hashtable part isn't working, so I have to excuse terribly that I cannot present a test map :cred:
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
Ok, problem I encountered.. Seems I can't get the region to move; somehow my world edit is either corrupted (crashes on trying to modify event - load region handle and rect handle seems not to do the job) or it's in all german world editor versions that this hashtable part isn't working, so I have to excuse terribly that I cannot present a test map
+rep for your hard work :)
 
Level 2
Joined
Apr 19, 2011
Messages
19
I want to create an ability were the player summons a tree or sumthing and then an area is created around the tree which enemy cant leave until the summoned object disapears how could i do this?
So basically, you want to create a ward with a Paralysis/Stun effect.

Try this: get a Hero Summon ability to copy stats from. Now get the Witch Doctor's Healing Wards ability. Edit the ward to be your tree, and change the buff into Stun. Make sure the Stun duration matches the ward duration. Now copy the Summon stats into the ability.

It should be that your unit summons the ward, and that ward gives off the Stun buff instead of the healing buff. That way your target can't move while the ward is in effect.

Oh, and thanks; I was figuring out how to make an AOE Stun effect; explaining things helps you figure things out as well. Go figure.
 
Level 5
Joined
Sep 1, 2010
Messages
168
Test Map

Not MUI, but if you only need this ability for only 1 unit, it should work fine (except for some not removed leaks).

Hope this does it for you (tried finding my mistake in removing the special effects the last 2 days.. else I'd answered quicker).
 

Attachments

  • Imprison Unit.w3x
    16.9 KB · Views: 73
Status
Not open for further replies.
Top