triggering damage to targets in a line.

seansucks

New Member
Reaction score
0
having an issue getting this spell to work.
i made a spell similar to rexxar's from dota. where you target a point and it sends a flying axe to the location (the axes don't return to caster). anyways, i based the spell off carrion swarm, both the dummy ability and the actual ability. i don't have spell levels in this map, so every spell damages with base damage + (n(attribute)) n is for number.
so here's the problem... i can't get the damage to trigger because i can't figure out how to pick the units that fall into it's path and damage them based off the formula for damage without causing the spell to cause damage which will ruin the whole concept of the spells.

also, i've removed all the effects from both the dummy and actual abilities of the carrion swarm and changed the actual spell model to rexxar's missile and for some reason whenever the axe hits a target it still creates the carrion swarm target effect. no buffs, no target model or anything. can someone help me fix that as well?
 

HydraRancher

Truth begins in lies
Reaction score
197
Dont use Carrion Swarm. Use Breath Of Frost. It leaves a buff behind on the targeted units so you can check wether it has it, and hurt the unit. Change art etc.

[offtopic]993 posts O.O[/offtopic]
 

seansucks

New Member
Reaction score
0
isn't there just a way i can pick all the units that get hit by the wave that doesn't deal damage and just deal damage to them?
 

seansucks

New Member
Reaction score
0
so if i based a skill off of breath of frost how would i deal damage based on an attribute? would i damage a unit fitting a condition that the unit has recieve a buff?

can't i just use variables? i'm pretty sure it's possible.

like i set a radius and pick all of the units in a line and set it as a unit group variable and deal damage to all picked units in the group
 

artix123

New Member
Reaction score
4
Another way you can do it is to create a unit that slides to the target location then take all units that come into range of the sliding unit and deal damage to them. Of course, the breath of frost is much easier.

edit: I don't think you can pick all units in a line it won't be accurate, you use breath of frost, after your spell is finished, select all units in (whatever, playable map area or some units in range of rexxar) that has the buff (breath of frost dummy), and deal (number x agility of rexxar) damage to all units with that buff.
 

HydraRancher

Truth begins in lies
Reaction score
197
Liek this

Pick every unit in 1500 range of casting unit matching matching unit has buff Carrion Swarm
hurt picked unit by strength of casting unit X 2

1000 posts!
 

seansucks

New Member
Reaction score
0
should i base the buff on a negative effect?
also should i base it on the dummy ability or the ability that the dummy casts?

i just tried this, i used the breath of frost effect and attached it to the actual spell that the dummy is casting, they don't recieve the buff ( the units hit by the swarm ) and they aren't taking any damage.
 

seansucks

New Member
Reaction score
0
it's okay, i'll all more information if that will help.

i'll reiterate everything. here's what's happening.

i have a spell, much like Rexxar's Wild Axes skill in DOTA. in MY map, the hero throws a single axe in a line (that doesn't return back). the spell Flying Axe, is based off Carrion Swarm. I have created a dummy spell, and a spell that the dummy casts. The dummy spell creates a unit facing in the direction of the point i target. then the dummy casts the spell that will do damage, which is also based off carrion swarm, except this spell has a missile model of the Missile for Rexxar. anyways, I need to figure out, how to target all of the units that get hit by the axe, and damage the units based off triggers.
the spell deals 15 base damage + 0.50(Strength of Casting Unit).

that's what i need.
 

simonake

New Member
Reaction score
72
Well i can help you calculate hero strenght with this code
For example a hero that has these stats
- Base Strenght = 25
- Strenght per level 2.00
Trigger:
  • Set DmgCount = (25 + (2.00 x Level of (Triggering unit)) / 2 + 15)
And make him cause StrCount

I would use this to cause it
Trigger:
  • For each IntegerA do (Actions)
    • Loop -
      • Set DamageLoc[IntegerA] = Position of (Triggering unit) offset by (50 + (50 x (IntegerA)) facing facing of (Triggering unit)
        • Unit Group - Pick every unit in 50 range of DamageLoc[IntegerA] matching (Matching unit) is a Structure Equal to FALSE and (Matching unit) belong an enemy of (Owner of (Triggering unit))
          • Loop -
            • If, then, else multiple functions
              • Loop -
                • If -
                  • (Picked unit) is in Group Equal to False
                • Then -
                  • Unit Group - Add (Picked unit) to Group
                  • Unit - Cause (Triggering unit) to cause (Picked unit) DmgCount of type spell and normal
                • Else -
                  • Custom script: HOPE IT HELP YOU! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" />
 

seansucks

New Member
Reaction score
0
Well i can help you calculate hero strenght with this code

And make him cause StrCount

don't worry, i've already got that part nailed. i just need to figure out how to select the units in a line that are going to be damaged, and then to have them recieve the damage. i know how to cause the damage though.
 

simonake

New Member
Reaction score
72
Well the second part of code added can help you

It's not exact bec ause it have been writen... My editor not open...

Just add at the of the second code one of these trigger:
Trigger:
  • Custom scriptL: call DestroyGroup(udg_Group)

or
Trigger:
  • Unit Group - Remove all unit from Group (clear)
 

seansucks

New Member
Reaction score
0
well thanks for that, but i can't figure out where you got for each integer a do actions.

i mean i know it's an action under general. but there's only integer a from number to number do actions.

nothing just integer a do actions.

sorry but i'm going to need it to be more specific, i start to not follow along when variables start getting moderately complex.
 

simonake

New Member
Reaction score
72
Trigger:
  • For each IntegerA do 1 to 10 (Actions)
    • Loop -
      • Set DamageLoc[IntegerA] = Position of (Triggering unit) offset by (50 + (50 x (IntegerA)) facing facing of (Triggering unit)
        • Unit Group - Pick every unit in 50 range of DamageLoc[IntegerA] matching (Matching unit) is a Structure Equal to FALSE and (Matching unit) belong an enemy of (Owner of (Triggering unit))
          • Loop -
            • If, then, else multiple functions
              • Loop -
                • If -
                  • (Picked unit) is in Group Equal to False
                • Then -
                  • Unit Group - Add (Picked unit) to Group
                  • Unit - Cause (Triggering unit) to cause (Picked unit) DmgCount of type spell and normal
                • Else -
                  • Custom script: HOPE IT HELP YOU! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" />

with 10, it will go out to 550 range. if you want more, then set the "10" to more.
And add this line of code to make it leakless.
Trigger:
  • Custom script: call RemoveLocation(udg_DamageLoc[GetForLoopIndexA()])
 

seansucks

New Member
Reaction score
0
when i'm setting the offset, i can't select integer a, it doesn't exist in the list of possibilities
 

simonake

New Member
Reaction score
72
You have to use the thingy "convert integer into real"

Would you like me to trigger it for you?
 

seansucks

New Member
Reaction score
0
nevermind i figured the variable out.

but yes!! it works, unfortunately, there's a bit of a problem. it doesn't work every time.
of course the ability casts, but not everytime do they take damage. it might be a leak i think.
that they only take damage in the original line casted. but if i keep casting it it works again, but only on a chance.

ps. how good at triggering are you? i'm creating a map and i need a little help, would you be interested?
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Monovertex Monovertex:
    How are you all? :D
    +1
  • 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

      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