Single target to AoE

Crusher

You can change this now in User CP.
Reaction score
121
Hi! I need to change this ability from single target to multiple target (AoE). So, it will damage all units in front of casted point, eg. unit.

Trigger:
  • Cultist Massacre
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Cultist Massacre
          • (Ability being cast) Equal to Cultist Massacre (Upgrade 1)
          • (Ability being cast) Equal to Cultist Massacre (Upgrade 2)
    • Actions
      • Set TempUnit = (Triggering unit)
      • Set TempUnit2 = (Target unit of ability being cast)
      • Set TempInt = (Level of (Ability being cast) for TempUnit)
      • Set TempInt2 = (Level of Legendary Mind2 for TempUnit)
      • -------- base damage --------
      • Set TempReal = (50.00 + (Real((35 x TempInt))))
      • -------- damage per combo point --------
      • Set TempReal2 = (20.00 + (Real((5 x TempInt))))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempInt2 Greater than 0
        • Then - Actions
          • -------- damage per combo point BONUS from the Legendary Mind --------
          • Set TempReal2 = (TempReal2 + (10.00 + (Real((10 x TempInt2)))))
        • Else - Actions
      • -------- damage dealt --------
      • Set TempReal = (TempReal + (TempReal2 x (Real(ComboCount))))
      • Set ComboText = (|c00FF0303 + (+ + ((String((Integer(TempReal)))) + !|r)))
      • Floating Text - Create floating text that reads ComboText above TempUnit with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 0.50 seconds
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Set TempForce = (All enemies of (Owner of TempUnit))
      • Floating Text - Hide (Last created floating text) for TempForce
      • Custom script: call DestroyForce( udg_TempForce )
      • Set ComboCount = 0
      • Unit - Cause TempUnit to damage TempUnit2, dealing TempReal damage of attack type Spells and damage type Normal
 

Laiev

Hey Listen!!
Reaction score
188
easy... before the line "cause triggering unit to deals bla bla bla" create the line
set X = units with 400 (example) range of TempUnit2
unit- pick every uni in X and do actions
Cause triggering unit to deals XXXX to picked unit

:D
 

Crusher

You can change this now in User CP.
Reaction score
121
Can you post that in triggers, not in handwrite, since I get a lil' bit confused.

Thanks.
 

Laiev

Hey Listen!!
Reaction score
188
sure, just a second

EDIT: I used my trigger variable for example :)

Trigger:
  • Actions
    • Set TempPoint = (Target point of ability being cast)
    • Set TempGroup = (Units within 300.00 of TempPoint matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) is Magic Immune) Equal to False)
    • Unit Group - Pick every unit in TempGroup and do (Actions)
      • Loop - Actions
        • Unit - Cause (Triggering unit) to damage (Picked unit), dealing TempReal damage of attack type Spells and damage type Normal
    • Custom Script: call RemoveLocation (udg_TempPoint)
    • Custom Script: call DestroyGroup (udg_TempGroup)


What this do?

Pick every unit with 300 range of target point ability being cast EXCEPT structure, allys, deads and magic immunes and cause damage to unit

any question, say :D


EDIT [2]: use when you deals damage, i mean in your trigger, the last thing
 

Crusher

You can change this now in User CP.
Reaction score
121
I tried your method, but it does not work. I use a single target type of spell, perhaps that's the problem? But I want to use single target type spell, to deal aoe damage >.<
 

Laiev

Hey Listen!!
Reaction score
188
Ohh.. like stun of Sven in dota...

And yes, what i show you, you NEED ability with aoe ability, well, just change TempPoint = (Target point of ability being cast) to (Position of (Target unit of ability being cast)) and say if work, if don't work, we will need to remake this ability lol
 

Crusher

You can change this now in User CP.
Reaction score
121
You obviously don't get me.

I want a single target ability, like storm bolt from mountain king in melee w3 maps, but my ability will deal damage to units in front of casted point, eg. unit.
 

Laiev

Hey Listen!!
Reaction score
188
I get it, is like Sven ability, the mouse change to AOE but you can only cast if target is unit, so, the ability is based on target unit...

the effect is the same, you test what i say?
 

Crusher

You can change this now in User CP.
Reaction score
121
Doesn't seem to work. It only works on one target.

Trigger:
  • Cultist Massacre 1
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Cultist Massacre
          • (Ability being cast) Equal to Cultist Massacre (Upgrade 1)
          • (Ability being cast) Equal to Cultist Massacre (Upgrade 2)
    • Actions
      • Set TempUnit = (Triggering unit)
      • Set TempUnit2 = (Picked unit)
      • Set TempInt = (Level of (Ability being cast) for TempUnit)
      • Set TempInt2 = (Level of Legendary Mind2 for TempUnit)
      • -------- base damage --------
      • Set TempReal = (50.00 + (Real((35 x TempInt))))
      • -------- damage per combo point --------
      • Set TempReal2 = (20.00 + (Real((5 x TempInt))))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempInt2 Greater than 0
        • Then - Actions
          • -------- damage per combo point BONUS from the Legendary Mind --------
          • Set TempReal2 = (TempReal2 + (10.00 + (Real((10 x TempInt2)))))
        • Else - Actions
      • -------- damage dealt --------
      • Set TempReal = (TempReal + (TempReal2 x (Real(ComboCount))))
      • Set ComboText = (|c00FF0303 + (+ + ((String((Integer(TempReal)))) + !|r)))
      • Floating Text - Create floating text that reads ComboText above TempUnit with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 0.50 seconds
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Set TempForce = (All enemies of (Owner of TempUnit))
      • Floating Text - Hide (Last created floating text) for TempForce
      • Custom script: call DestroyForce( udg_TempForce )
      • Set ComboCount = 0
      • Set TargetPoint = (Position of (Target unit of ability being cast))
      • Set TempGroup = (Units within 300.00 of TargetPoint matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
      • Unit - Cause TempUnit to damage TempUnit2, dealing TempReal damage of attack type Spells and damage type Normal
      • Custom script: call RemoveLocation (udg_TempPoint)
      • Custom script: call DestroyGroup (udg_TempGroup)
 

Furberg

Ultra Cool Member
Reaction score
45
Doesn't seem to work. It only works on one target.

Trigger:
  • Set TempGroup = (Units within 300.00 of TargetPoint matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (<u>Triggering unit</u>))) Equal to True))))

Well. How about trying to change that "Triggering unit" into "TempUnit". But I'm just guessing.
 

Laiev

Hey Listen!!
Reaction score
188
of course don't will work >_< you don't deals damage to picked unit, try this:
Trigger:
  • Cultist Massacre 1
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Cultist Massacre
          • (Ability being cast) Equal to Cultist Massacre (Upgrade 1)
          • (Ability being cast) Equal to Cultist Massacre (Upgrade 2)
    • Actions
      • Set TempUnit = (Triggering unit)
      • Set TempUnit2 = (Picked unit)
      • Set TempInt = (Level of (Ability being cast) for TempUnit)
      • Set TempInt2 = (Level of Legendary Mind2 for TempUnit)
      • -------- base damage --------
      • Set TempReal = (50.00 + (Real((35 x TempInt))))
      • -------- damage per combo point --------
      • Set TempReal2 = (20.00 + (Real((5 x TempInt))))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempInt2 Greater than 0
        • Then - Actions
          • -------- damage per combo point BONUS from the Legendary Mind --------
          • Set TempReal2 = (TempReal2 + (10.00 + (Real((10 x TempInt2)))))
        • Else - Actions
      • -------- damage dealt --------
      • Set TempReal = (TempReal + (TempReal2 x (Real(ComboCount))))
      • Set ComboText = (|c00FF0303 + (+ + ((String((Integer(TempReal)))) + !|r)))
      • Floating Text - Create floating text that reads ComboText above TempUnit with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 0.50 seconds
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Set TempForce = (All enemies of (Owner of TempUnit))
      • Floating Text - Hide (Last created floating text) for TempForce
      • Custom script: call DestroyForce( udg_TempForce )
      • Set ComboCount = 0
      • Set TargetPoint = (Position of (Target unit of ability being cast))
      • Set TempGroup = (Units within 300.00 of TargetPoint matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Unit - Cause TempUnit to damage (Picked Unit), dealing TempReal damage of attack type Spells and damage type Normal
      • Custom script: call RemoveLocation (udg_TempPoint)
      • Custom script: call DestroyGroup (udg_TempGroup)


You forget to change damage deal from Temp unit2 to picked unit and forget to move it from outside loop to inside loop :D
 

Crusher

You can change this now in User CP.
Reaction score
121
Well, it's the same even now.

Trigger:
  • Cultist Massacre 1
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • Or - Any (Conditions) are true
        • Conditions
          • (Ability being cast) Equal to Cultist Massacre
          • (Ability being cast) Equal to Cultist Massacre (Upgrade 1)
          • (Ability being cast) Equal to Cultist Massacre (Upgrade 2)
    • Actions
      • Set TempUnit = (Triggering unit)
      • Set TempUnit2 = (Picked unit)
      • Set TempInt = (Level of (Ability being cast) for TempUnit)
      • Set TempInt2 = (Level of Legendary Mind2 for TempUnit)
      • -------- base damage --------
      • Set TempReal = (50.00 + (Real((35 x TempInt))))
      • -------- damage per combo point --------
      • Set TempReal2 = (20.00 + (Real((5 x TempInt))))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • TempInt2 Greater than 0
        • Then - Actions
          • -------- damage per combo point BONUS from the Legendary Mind --------
          • Set TempReal2 = (TempReal2 + (10.00 + (Real((10 x TempInt2)))))
        • Else - Actions
      • -------- damage dealt --------
      • Set TempReal = (TempReal + (TempReal2 x (Real(ComboCount))))
      • Set ComboText = (|c00FF0303 + (+ + ((String((Integer(TempReal)))) + !|r)))
      • Floating Text - Create floating text that reads ComboText above TempUnit with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Floating Text - Change (Last created floating text): Disable permanence
      • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 0.50 seconds
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • Set TempForce = (All enemies of (Owner of TempUnit))
      • Floating Text - Hide (Last created floating text) for TempForce
      • Custom script: call DestroyForce( udg_TempForce )
      • Set ComboCount = 0
      • Set TargetPoint = (Position of (Target unit of ability being cast))
      • Set TempGroup = (Units within 300.00 of TargetPoint matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) is alive) Equal to True) and (((Matching unit) belongs to an enemy of (Owner of (Triggering unit))) Equal to True))))
      • Unit Group - Pick every unit in TempGroup and do (Actions)
        • Loop - Actions
          • Unit - Cause TempUnit to damage (Picked unit), dealing TempReal damage of attack type Spells and damage type Normal
      • Custom script: call RemoveLocation (udg_TempPoint)
      • Custom script: call DestroyGroup (udg_TempGroup)
 

Laiev

Hey Listen!!
Reaction score
188
not the same, you get all units around, but don't damage then before, but now you damage, also, now i see you remove a wrong variable lol
Trigger:
  • Custom script: call RemoveLocation (udg_TempPoint)

You need
Trigger:
  • Custom script: call RemoveLocation (udg_TargetPoint)


Remove that variable TempUnit2 = (Picked Unit)
Also 300 is a small range, if you want test, change it to 2000 or something like this and see if work
 

Crusher

You can change this now in User CP.
Reaction score
121
Err, I'll try to explain as far as I can.

My spell is based on Storm Bolt. When I select a target, it damages only one target, no enemies near are damaged.
 

Crusher

You can change this now in User CP.
Reaction score
121
I want to damage all units in front of my already targeted target.

Here is a Picture:

259jp1w.jpg


Target #1 is the main target. You have to select it with your ability in order to damage it.

Target #2 is the second target. The target is damaged if it stays in front of the target number one.

Target number #3: same as #2.
 

Laiev

Hey Listen!!
Reaction score
188
Hmmm the trigger is ok, but you need change the TempGroup, not the 'range' but will need to math how many degrees or w/e to only pick then, but i really don't understand why this trigger don't work... Make no sense
 

Crusher

You can change this now in User CP.
Reaction score
121
It seems that the trigger is not good if it doesn't work.

Anyway, thanks for the shot, at least you tried to help.

Anyone else wants to help? :)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • WildTurkey WildTurkey:
    is there a stephen green in the house?
    +1
  • The Helper The Helper:
    What is up WildTurkey?
  • The Helper The Helper:
    Looks like Google fixed whatever mistake that made the recipes on the site go crazy and we are no longer trending towards a recipe site lol - I don't care though because it motivated me to spend alot of time on the site improving it and at least now the content people are looking at is not stupid and embarrassing like it was when I first got back into this like 5 years ago.
  • The Helper The Helper:
    Plus - I have a pretty bad ass recipe collection now! That section of the site is 10 thousand times better than it was before
  • The Helper The Helper:
    We now have a web designer at my job. A legit talented professional! I am going to get him to redesign the site theme. It is time.
  • Varine Varine:
    I got one more day of community service and then I'm free from this nonsense! I polished a cop car today for a funeral or something I guess
  • Varine Varine:
    They also were digging threw old shit at the sheriff's office and I tried to get them to give me the old electronic stuff, but they said no. They can't give it to people because they might use it to impersonate a cop or break into their network or some shit? idk but it was a shame to see them take a whole bunch of radios and shit to get shredded and landfilled
  • The Helper The Helper:
    whatever at least you are free
  • 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 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