So I have just started messing with the data editor and made some simple abilities. The next one I wanted to create was a whirlpool ability where a whirlpool appears at the caster and moves towards the targeted point. Any enemies within a radius are sucked towards the center, and are stuck till the end of the spell.
The spell fires, but no units are sucked in. I was hoping someone could take a look at it, and explain what needs to be fixed.
I advise you study how the Vortex ability of the mothership works first. You need to apply the Warpable flag to targets via a buff and then use Apply Force effect to drag them towards the whatever.
Ya I tried looking at it, and trying to make it somewhat the same. Alright I'll change that and see if it works thank you :). If not I'll post up my effects and such.
Effect Name : Whirlpool Search : Search Area
-----------------------------------------------------------------------------
Field Whirlpool Search
Search: Areas + (360):(-1):(2):(0):(Whirlpool Pull Set)
Field Whirlpool Search
Search: Search Filters Excluded: Player, Ally
Field Whirlpool Search
Target: Impact Location + Whirlpool Launch:Source Unit
-----------------------------------------------------------------------------
Effect Name : Whirlpool Pull Set : Set
-----------------------------------------------------------------------------
Field Whirlpool Pull Set
Effect: Effects + (Whirlpool Behavior|Whirlpool Pull|Whirlpool Damage)
Field Whirlpool Pull Set
Target: Target Location Type Point
-----------------------------------------------------------------------------
Effect Name : Whirlpool Pull : Apply Force
-----------------------------------------------------------------------------
Field Whirlpool Pull
Effect: Amount -0.1
Field Whirlpool Pull
Target: Location + Whirlpool Launch:Source Unit
Field Whirlpool Pull
Unit: Unit + Whirlpool Search:Source
-----------------------------------------------------------------------------
Effect Name : Whirlpool Persistant : Create Persistent
-----------------------------------------------------------------------------
Field Whirlpool Persistant
Effect: Flags + Persist Until Destroyed
Field Whirlpool Persistant
Effect: Period Durations + (0.0600)
Field Whirlpool Persistant
Effect: Period Effects + (Whirlpool Search)
Field Whirlpool Persistant
Target: Location + (None):Source Unit
-----------------------------------------------------------------------------
Effect Name : Whirlpool Launch : Launch Missile
-----------------------------------------------------------------------------
Field Whirlpool Launch
Effect: Impact Effect Whirlpool End Persistant
Field Whirlpool Launch
Effect: Launch Effect Whirlpool Persistant
Field Whirlpool Launch
Movement: Movers + (Missile Default):(0)
Field Whirlpool Launch
Target: Impact Location + (None):Target Point
Field Whirlpool Launch
Unit: Ammo Unit Whirlpool Missle
-----------------------------------------------------------------------------
Effect Name : Whirlpool End Persistant : Create Persistent
-----------------------------------------------------------------------------
Field Whirlpool End Persistant
Effect: Initial Delay 5.0000
Field Whirlpool End Persistant
Effect: Period Count 1
Field Whirlpool End Persistant
Effect: Period Effects + (Whirlpool Destroy Persistant)
-----------------------------------------------------------------------------
Effect Name : Whirlpool Destroy Persistant : Destroy Persistent
-----------------------------------------------------------------------------
Field Whirlpool Destroy Persistant
Effect: Effect Whirlpool Persistant
Field Whirlpool Destroy Persistant
Target: Location + (None):Caster Unit
-----------------------------------------------------------------------------
Effect Name : Whirlpool Damage : Damage
-----------------------------------------------------------------------------
Effect Name Source Race Effect Type
Whirlpool Damage Whirlpool Test.SC2Map (None) Damage
Field Whirlpool Damage
Target: Impact Location + (None):Source Unit
-----------------------------------------------------------------------------
Effect Name : Whirlpool Behavior Whirlpool : Apply Behavior
-----------------------------------------------------------------------------
Field Whirlpool Behavior
Behavior: Behavior Whirlpool Buff
Field Whirlpool Behavior
Unit: Unit + Whirlpool Search:Source
-----------------------------------------------------------------------------
You need to :
a) Create a Create Persistent effect (which we'll call FooBar for further reference), that will run over a couple seconds with a period of 0.0625.
b) The Create Persistent effect needs to call (every 0.0625) a Search Area effect around Target Point.
c) Have Search Area catch the units desired within a radius around Target Point.
d) That Search Area needs to call a "Set" effect which will contain two things : Apply Behavior, and Apply Force.
e) The Apply Behavior must apply a behavior on all target units that give them a minimum movement speed, or a maximum movement speed, or both, or whatever looks right for the kind of effect you want.
f) The Apply Force area must apply the force on every unit found by the search. So "Unit+" is set to Target. Now, the "Target: Location" must be the target point of the ability, hence you must specify the point that was the target of the effect we called FooBar in step 'a'. End result should be visible as (Foobar):Target Point, not (None):whatever.
You can trigger that whole sequence as the impact of a launch missile if you want, of course.
Your using target point. I just want to make sure you understand the spell correctly because when I see target point I think of where the spell targeted. The spell is creating a whirlpool and the whirlpool moves to the target point. As it moves it sucks units into it. When it gets to the end it stays there for 5 seconds.
I just wanted to clarify that just in case.
It was more of an example of how to set up a simple typical whirlpool.
In your case, the whirlpool could be a projectile unit with a behavior triggering the whole sequence above. The main differences would be the Search Effect searching around "source" rather than target, and Apply Force pushing units towards (none):Source instead of (Foobar):target.
Your using target point. I just want to make sure you understand the spell correctly because when I see target point I think of where the spell targeted. The spell is creating a whirlpool and the whirlpool moves to the target point. As it moves it sucks units into it. When it gets to the end it stays there for 5 seconds.
I just wanted to clarify that just in case.
you need 2 persistent effects for this
the first one creates the movement of the whirlpool from the caster position to the targeted point of the spell
the second persisent does the search periodically to apply the behaviors that pull the units in
To be honest Im not really sure if a moving whirl pool is really gonna end up working for you all that well using data ......
I know I can do it using lost tacos physics engine as a base .... heres some gravity mechanics Ive done using it...
SPACEWAR Tribute - Planet
SPACEWAR Tribute - Sun
SPACEWAR Tribute - Asteroids
Rollback Post to RevisionRollBack
Skype
KageNinpo = SN
My Libraries
DialogLeaderboard & TeamSort
My Projects
SPACEWAR Tribute
Infinite TD
To post a comment, please login or register a new account.
So I have just started messing with the data editor and made some simple abilities. The next one I wanted to create was a whirlpool ability where a whirlpool appears at the caster and moves towards the targeted point. Any enemies within a radius are sucked towards the center, and are stuck till the end of the spell.
The spell fires, but no units are sucked in. I was hoping someone could take a look at it, and explain what needs to be fixed.
Some people (including me) are a bit lazy to open maps, you may want to "Copy as text" all the relevant effects and paste here.
I advise you study how the Vortex ability of the mothership works first. You need to apply the Warpable flag to targets via a buff and then use Apply Force effect to drag them towards the whatever.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg
Okay, the whole setup is kind of incorrect.
You need to :
a) Create a Create Persistent effect (which we'll call FooBar for further reference), that will run over a couple seconds with a period of 0.0625.
b) The Create Persistent effect needs to call (every 0.0625) a Search Area effect around Target Point.
c) Have Search Area catch the units desired within a radius around Target Point.
d) That Search Area needs to call a "Set" effect which will contain two things : Apply Behavior, and Apply Force.
e) The Apply Behavior must apply a behavior on all target units that give them a minimum movement speed, or a maximum movement speed, or both, or whatever looks right for the kind of effect you want.
f) The Apply Force area must apply the force on every unit found by the search. So "Unit+" is set to Target. Now, the "Target: Location" must be the target point of the ability, hence you must specify the point that was the target of the effect we called FooBar in step 'a'. End result should be visible as (Foobar):Target Point, not (None):whatever.
You can trigger that whole sequence as the impact of a launch missile if you want, of course.
It was more of an example of how to set up a simple typical whirlpool.
In your case, the whirlpool could be a projectile unit with a behavior triggering the whole sequence above. The main differences would be the Search Effect searching around "source" rather than target, and Apply Force pushing units towards (none):Source instead of (Foobar):target.
you need 2 persistent effects for this
the first one creates the movement of the whirlpool from the caster position to the targeted point of the spell
the second persisent does the search periodically to apply the behaviors that pull the units in
To be honest Im not really sure if a moving whirl pool is really gonna end up working for you all that well using data ......
I know I can do it using lost tacos physics engine as a base .... heres some gravity mechanics Ive done using it...
SPACEWAR Tribute - Planet
SPACEWAR Tribute - Sun
SPACEWAR Tribute - Asteroids