Shockwave healing allies/damage enemies

Sunchips

New Member
Reaction score
6
I wan't to make an ability that works, and looks just like the tauren chieftain shockwave but I wan't it to damage enemies that it hits and heal allies that are hit by it but I don't know how to do that :( I have to use a dummy right? GUI pls
 

Rainther

I guess I should write something of value here...
Reaction score
61
I actually made one of these in vJass, except it was a moving orb and it only damaged undeads and healed all allies.

Anyhow I doubt there's an easy way to fix this, especially by going GUI. :(
 

Sunchips

New Member
Reaction score
6
I made the normal spell just a normal shockwave but with more damage and so I made a shockwave wich deals -damage but as it only affects enemies of the caster i tried making a dummy for neutral hostile at the location of the caster, casting the negative damage schockwave at the same time wich should heal enemies of the dummy, wich is friends of the actual caster.

I tried this trigger but it doesn't work :/

Trigger:
  • Holy Wave
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Holy Wave
    • Actions
      • Set HW_Cast_loc = (Position of (Casting unit))
      • Set HW_Target_loc = (Position of (Target unit of ability being cast))
      • Unit - Create 1 Holy Wave caster (heal) 1 for Neutral Hostile at (Center of (Playable map area)) facing Default building facing degrees
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Level of Holy Wave for (Casting unit)) Equal to 1
        • Then - Actions
          • Unit - Add Holy Wave (heal) 1 to (Last created unit)
          • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave HW_Target_loc
          • Unit - Remove (Last created unit) from the game
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Level of Holy Wave for (Casting unit)) Equal to 2
            • Then - Actions
              • Unit - Add Holy Wave (heal) 2 to (Last created unit)
              • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave HW_Target_loc
              • Unit - Remove (Last created unit) from the game
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • (Level of Holy Wave for (Casting unit)) Equal to 3
                • Then - Actions
                  • Unit - Add Holy Wave (heal) 3 to (Last created unit)
                  • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave HW_Target_loc
                  • Unit - Remove (Last created unit) from the game
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • (Level of Holy Wave for (Casting unit)) Equal to 4
                    • Then - Actions
                      • Unit - Add Holy Wave (heal) 4 to (Last created unit)
                      • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave HW_Target_loc
                      • Unit - Remove (Last created unit) from the game
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • (Level of Holy Wave for (Casting unit)) Equal to 5
                        • Then - Actions
                          • Unit - Add Holy Wave (heal) 5 to (Last created unit)
                          • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave HW_Target_loc
                          • Unit - Remove (Last created unit) from the game
                        • Else - Actions
                          • Do nothing


shouldn't there be any way to use this idea?
 

Sefiraat

New Member
Reaction score
15
firstly, this is wrong

Unit - Create 1 Holy Wave caster (heal) 1 for Neutral Hostile at (Center of (Playable map area)) facing Default building facing degrees

should be made just under the casting unit
 

Laiev

Hey Listen!!
Reaction score
188
Sunchips said:

You can improve it

instead of
Trigger:
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
    • (Level of Holy Wave for (Casting unit)) Equal to 1
    • Then - Actions
    • Unit - Add Holy Wave (heal) 1 to (Last created unit)
    • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave HW_Target_loc
    • Unit - Remove (Last created unit) from the game


Do:

Trigger:
  • Unit - Add Holy Wave (heal) to (Last created unit)
    • Unit - Set level of Holy Wave (heal) to (Last created unit) to level of ((Holy Wave) of triggering unit)
    • Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave HW_Target_loc
    • Unit - Remove (Last created unit) from the game


Something like this :D
 

Igor_Z

You can change this now in User CP.
Reaction score
61
You need to trigger the whole process because shockwave damages units in line. You can trigger it, deal damage to enemies, heal allies. I will help you but I can't right now. Myb tommorow
 

Tyman2007

Ya Rly >.
Reaction score
74
hmm, trigger the whole shockwave using a unit with the model as a shockwave.
Gather 2 points which is the cast point and the target point and measure the distance.
(With distance between points)
Create shockwave unit with facing angle of caster
Check if Distance > 0 then
move unit instantly with a polar offset of 15 facing the unit's facing
set a unit group with all units around the unit
Go through all your "if levels"
pick all the units in unit group
if unit belongs to an ally of casting unit, add hp, create a special effect and destroy the special effect.
if unit belongs to an enemy, damage it with whatever.
then for the else for the first if/then/else, remove the unit.

That's how I would do it. Somewhat a pseudocode thing.
 

Rainther

I guess I should write something of value here...
Reaction score
61
One thing you will loose by doing such is the ground effect. Aslong as you don't activate the trigger with a visual-less shockwave.
 

Rainther

I guess I should write something of value here...
Reaction score
61
Sure, do you take vJass? x ] If you know how to create dummies I guess you could simply have a normal shockwave and when you use it a dummy is created, given the healing ability and using it on the same direction as the shockwave, however the healing could be based on Carrion Swarm. I guess those to are pretty much the same damage function and only one of them destroys the ground.
If you need inspiration:

Event - Unit cast spell
Condition - Ability equal to your
Action -
Create Unit Dummy at Position of Triggering Unit
Add ability to last created unit, customized Carrion Swarm (only targets allies and deals -damage)
Set level ability based on Triggerins Unit's ability's level
Order last created unit to Undead - Carrion Swarm at Spell Target Location
Add experation timer to last created unit
 

AoW_Hun7312

I'm a magic man, I've got magic hands.
Reaction score
76
I swear I saw someone try to make the same thing before. Fairly certain shockwave is hardcoded as to not target allies.
 

Rainther

I guess I should write something of value here...
Reaction score
61
My solution was using Carrion Swarm to heal, but maybe you refered to the topic in mayor?
 

Sunchips

New Member
Reaction score
6
Tried the same thing but with shockwave with minus damage it didn't much work sadly enough and also it's annoying since the computer thinks the healed units are under attack as you hear that asshole yelling "Our allies are under attack" :/
 

Rainther

I guess I should write something of value here...
Reaction score
61
Try with Carrion Swarm then. Perhaps it's an exception. Or any other similiar spells. If not, get ready to trigger the effect.
 

Manix

Well-Known Member
Reaction score
29
Huh you dudes offered some rly messed up stuff, actually the solution is simple as cake, Sunchips listen to me dude,

Create the shockwave ability you want which is the damaging one, then copy/paste it in the abilities section in the object editor, on the new one change targets allowed to FRIEND and put a MINUS before all damage values, to do that you need to shift-click, or change the option "allow negative values in object editor" and then change the name of that ability to Shockwave (HEAL) or whatever, when you do that go in trigger editor and do a trigger like that:


Events
Unit starts the effect of an ability
Conditions
Abiltiy being cast equal to Shockwave (DAMAGE)
Actions
Set point_variable[1] = position of triggering unit
Set point_variable[2] = point of ability being cast
Create 1 DUMMY at point_variable[1]
add shockwave (HEAL) to last created unit
order last created unit to cast shockwave at point_variable[2]
add a 3 second expiration timer to last created unit
Custom Script: call RemoveLocation( udg_point_variable[1] )
Custom Script: call RemoveLocation( udg_point_variable[2] )


and that is it... I just hand made this trigger so it's probably not 100% correct but I guess you'd understand the idea
 

Rainther

I guess I should write something of value here...
Reaction score
61
If you even read half the things we wrote, you'd know that's what we've talked about. And it seems that schockwave can't be negated, as also mentioned.

... Dude :p
 

Rainther

I guess I should write something of value here...
Reaction score
61
Dude ! :D

I just passed on what the one we're trying to help said. I'm too laszy to try myself ;)

By the way; 2 schockwaves... Wouldn't it create Grand Canyon? or is the ground only decreased once?

Dude!​
 

Manix

Well-Known Member
Reaction score
29
>> By the way; 2 schockwaves... Wouldn't it create Grand Canyon? or is the ground only decreased once?

Not rly dude ^^, I had a shockwave nova spell and it looked LOLWUT !
 
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
    +1
  • 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