HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Units within range during blink

04-30-2010, 04:14 AM#1
BuRnInSpartan
So i'm trying to make this trigger called shade shift and basically it's blink but whenever you use blink i want it so all units that are in the path of blink become damaged. i've been messing around with this but have been pretty unsuccessful. Any tips? i don't wanna use JASS either.
04-30-2010, 01:05 PM#2
0zyx0
Quote:
Originally Posted by BuRnInSpartan
i don't wanna use JASS either.
This would be next to impossible to do in GUI, yet so easy in JASS. Why do you not want to use it?
04-30-2010, 02:34 PM#3
BuRnInSpartan
i just have no idea how to use it lol
04-30-2010, 04:00 PM#4
ploks
When you learn Jass, which is required, use LineSegments
05-02-2010, 01:17 AM#5
[VDM]Amn
Trigger:
Collapse events
unit starts the effect of ability
Collapse conditions
ability being cast your_spell
Collapse actions
create dummy_unit at triggering unit spot
add ability a_carrion_swarm_based_ability to last created unit
orden last created unit to carrion_swarm target point of ability being cast)
add 2 seconds expiration to last created unit
05-02-2010, 01:57 AM#6
BuRnInSpartan
wow excellent idea. and change the animation of the spell to none i suppose.
05-02-2010, 02:53 AM#7
Fledermaus
There are a couple of problems with that solution though. Since the blink spell can be cast on any point between the caster and the max range (let's say 1000), you have to make the carrion swarm have a max distance of 1000. But then if you blink to a point only 300 away from you, the carrion swarm will go the full 1000 distance.
05-02-2010, 01:05 PM#8
DioD
line select + dodamage
05-02-2010, 01:10 PM#9
BuRnInSpartan
good point about the range. and isn't line select JASS only?
05-03-2010, 08:08 AM#10
TheKid
JASS is not required for this.

You need to move a dummy unit from point A to point B and enumerate units that are within a certain area of the dummy unit. Add the units that are enumerated to a group and filter out units that are in that group from being enumerated.

Once the dummy has completed it's "line", you'll deal damage to all units that were enumerated in the second group.

It's a little hard to explain, though I really don't like making code in GUI.
05-03-2010, 12:19 PM#11
Tot
Quote:
Originally Posted by TheKid
JASS is not required for this.

You need to move a dummy unit from point A to point B and enumerate units that are within a certain area of the dummy unit. Add the units that are enumerated to a group and filter out units that are in that group from being enumerated.

Once the dummy has completed it's "line", you'll deal damage to all units that were enumerated in the second group.

It's a little hard to explain, though I really don't like making code in GUI.

you don't need to move an unit, a simple location (called point in gui) is enough.

but i'll do it in jass, jass waaayy easier to code "complicated" tasks in than gui
05-04-2010, 12:08 PM#12
TheKid
Yea, there isn't even a need for the dummy unit you can just use coordinates/location like you said. I don't know what I was thinking when I posted.
05-05-2010, 06:48 PM#13
BuRnInSpartan
ill yo. i'll give it a try +rep for your help so far. thanks guys.
05-07-2010, 03:52 PM#14
BuRnInSpartan
ok. so i got this trigger and the range works like i get the carrion swarm to go exactly to the position of cast however the angle of the cast isn't working out. i've been thinking for a while now about what it is and its got to be how i set up the positions and stuff but i just can't think it out logically. can someone give me a hand.

Trigger:
Shade Shift
Collapse Events
Unit - A unit Starts the effect of an ability
Collapse Conditions
(Ability being cast) Equal to Shade Shift
Collapse Actions
Set ShadeShiftPoint = (Target point of ability being cast)
Point - Move ShadeShiftPoint to offset(((X of (Target point of ability being cast)) - 1000.00), ((Y of (Target point of ability being cast)) - 1000.00))
Unit - Create 1 Ranged Dummy for (Owner of (Casting unit)) at ShadeShiftPoint facing (Target point of ability being cast)
Set ShadeShiftDummy = (Last created unit)
Unit - Hide ShadeShiftDummy
Unit - Add Carrion Swarm to ShadeShiftDummy
Unit - Order ShadeShiftDummy to Undead Dreadlord - Carrion Swarm (Target point of ability being cast)
Unit - Add a 2.00 second Generic expiration timer to ShadeShiftDummy
05-07-2010, 10:23 PM#15
Fledermaus
Trigger:
Unit - Create 1 Ranged Dummy for (Owner of (Casting unit)) at ShadeShiftPoint facing (Angle from (Position of (Casting unit)) to (Target point of ability being cast)) degrees


Math - Angle Between Points


Also that still looks like it'll be really shit, since it's just the point offset by 1000 backwards (actually, it doesn't even look like it's being offset in correct direction but I can't find that GUI function so I can't tell you how to make it work properly, I think you wanna use Polar Projection though). But yeah, if you blink at a point only 300 away from you, the Carrion Swarm would just spawn 700 units behind where you where then move to where you are.. Still kinda crappy.