Complex spell help, + rep for help

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
ok... so i need help with a sort of complex ability
if you played wow its like the shatter one from gruuls layer

on cast, it searches for enemies in a 10 range radius
creates a persistent for each one that applies a slowing debuff for 5% 4x/sec for 5 seconds (till 100%), then it stuns them for 1.5 seconds, and deals 10% of nearby enemies total health as damage to them
basically it requires that they spread out to not take a ton of damage

this is what i currently have:
Trigger:
  • Shatter (Abil)
    • Actors
      • Shatter (Explosion Actor)
        • -damage artwork
      • Shatter (Range)
        • -displays a 3 range radius around units with the shatter debuff so that they know what allies they will damage
      • Shatter (Slow Actor)
        • -psi disruptor model displaying the slowing effect
    • Behaviors
      • Shatter (Debuff)
        • -Slows the unit by 5% stacking 20 times over 4 seconds
      • Shatter (Stun)
        • -Disables attack, movement, production, and casting for 1.5 seconds
    • Buttons
      • Shatter
        • -Shatter button with tooltip and everything.
    • Effects
      • Shatter (Apply Debuff)
        • -Apply behavior Shatter (Debuff)
      • Shatter (Apply Stun)
        • -Apply behavior Shatter (Stun)
      • Shatter (Damage Search)
        • -Searches around the stunned units
      • Shatter (Damage)
        • -Deals damage to nearby stunned units
      • Shatter (Persistent)
        • -Periodic effect of Shatter (Apply Debuff)
      • Shatter (Remove Debuff)
        • -Final Effect of Shatter (Persistent) removes all 20 stacks of Shatter (Debuff)
      • Shatter (Search)
        • -Searches units in range of the caster
      • Shatter (Set)
        • -runs Shatter (Apply Stun), creates Shatter (Stun Persistent), and Shatter (Remove Debuff)
      • Shatter (Stun Pers Destroy)
        • -Destroys Shatter (Stun Persistent)
      • Shatter (Stun Pers Set)
        • -runs Shatter (Damage Search) and Shatter (Stun Pers Destroy)
      • Shatter (Stun Persistent)
        • -After 1.5 seconds, this runs Shatter (Stun Pers Set)
    • Models
      • Psi Disruptor Debuff
      • TerranLargeTriggeredExplosion
 

Attachments

  • Shatter Spell Test.SC2Map
    173.1 KB · Views: 188

Monsterous

In the Shadows, Lurking.
Reaction score
99
Heres how i would do it.

Ability Cast > Search Area around caster, range 10 > Create persistent, 20 periods, interval of 0.25 seconds > Apply Behavior Effect > Behavior with stack enabled, times movement speed of target by 0.95 (5%).

On the persistent, the FINAL effect will be a set effect, one with the apply behavior which adds the stun, and the other a damage effect. Make the damage effect do 0 damage (Its a dummy effect.)

Now, do the rest in the trigger editor.
Your Trigger
Trigger:
  • Your Trigger
    • Events
      • Environment - Player Any Player uses Effect [YOUR EFFECT GAME LINK]
    • Local Variables
      • Health Damage = 0.0 <Real>
    • Conditions
    • Actions
      • Unit Group - Pick each unit in (Any units in (Region((Point((X of (Position of (Triggering Effect Unit(Target)))), (Y of (Position of (Triggering Effect Unit(Target)))))), 5.0)) owned by player Any Player matching [TARGET FILTERS], with at most Any Amount) and do (Actions)
        • Actions
          • Variable - Set Health Damage = (Health Damage + ((Triggering Effect Unit(Target)) Life (Default)))
      • Environment - Deal damage using [YOUR DUMMY EFFECT] on (Triggering Effect Unit(Target)) from (Triggering Effect Unit(Target)) with (Health Damage / 10.0) extra damage
      • Unit - Remove All [SLOW BEHAVIOR] from (Triggering Effect Unit(Target))




This trigger uses your dummy effect as an event and point of reference, where it searches nearby around the target for other targets, adds their health to a variable, and then divides it by 10 (to get 10%) and deals the damage.
It also removes the slow behavior debuffs, so you don't have to do that in the data editor.

The reason why this is far easier to do this in the trigger editor, is that the effects use hard numbers, not variables, whereas the trigger does use variables - saving you alot of time and hassle trying to make this data editor only.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
i can do anything in the trigger editor, i was doing this to challenge my data editor capabilities
it cant search the caster to apply the slow, it has to search it once, and apply a periodic to all units that adds the slow, its a boss ability

thanks for your help tho :)
+rep
 

Dave312

Censored for your safe viewing
Reaction score
269
it cant search the caster to apply the slow, it has to search it once, and apply a periodic to all units that adds the slow, its a boss ability
What Monsterous suggested would only search once. It does the search at the start and applies the persistant effect. The persistant effect is what applies the slow behaviour over time.

I would be doing it the same way as what Monsterous suggested.
 

GFreak45

I didnt slap you, i high 5'd your face.
Reaction score
130
the second search is to deal aoe damage at the end of it
not to search for the units again

cast
search for enemies to apply the persistent that does the debuff
after they hit 100% slow, remove the debuff, stun them, wait 1.5 secs
deal 10% max health in damage to units near them
so if you are near 10 enemies, instakill, 5, half life, etc
impossible to do without 2 searches if you dont use triggers, i dont want to use any triggers
as i said this is a test for my data editing skillz

realized i was a little vague in the original post, it doesnt apply the slow debuff at all
thats the issue
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
While trying to make it 100% data editor might be a good way to approach problems, you have to learn when it's time to give up and involve triggers. I wouldn't trigger the whole thing but just the damage as Monsterous explained.

It's very hard to that kind of variable damage that depends on the nearby units health.

If you really want to do it 100% data editor, it becomes a lot more ugly than if you would just do everything but the damage part in data.

Here's what I would try if you want to do it 100% data editor. Keep in mind that I haven't really thought this through and it's very unlikely to actually work, I just want to give you some place to start.

So let's imagine we actually think of it like: When a unit takes damage equal to 10% of the nearby enemies total health, the nearby enemies actually DAMAGE the unit.

This way, we would need to do a search and have each unit deal 10% of their total health to the target.

The problem is how we want to deal 10% of the total health since we can only write in something constant like: "5" in the damage field. Therefore I would do something that deals damage several times.

I think you could create a new unit through effects, set it's vitals to the unit that's going to deal the damage and then have a persistent that deals 1 damage to the correct unit and 10 to itself. This way, it will have dealt 10% of it's current health to the unit before it dies.

As I said, it's ugly and stupid and probably not possible, but it's what I would try if I had to make it 100% data.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Ghan Ghan:
    Howdy
  • Ghan Ghan:
    Still lurking
    +3
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top