Spell - Deafening Blast Help

ImmortaL_GoD

New Member
Reaction score
4
Trigger:
  • DeafeningBlast
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to Deafening Blast
    • Actions
      • Set temp_point = (Position of (Casting unit))
      • Unit - Create 1 Dummy (projectile) for (Owner of (Casting unit)) at temp_point facing (Facing of (Casting unit)) degrees
      • Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
      • Set unitDummyProjectile = (Last created unit)
      • Set pointAbilityTarget = (Target point of ability being cast)
      • Set unitCaster = (Casting unit)
      • Unit - Order unitDummyProjectile to move pointAbilityTarget
      • Trigger - Turn on DeafeningBlastP <gen>
      • Custom script: call RemoveLocation (udg_temp_point)
    • DeafeningBlastP
      • Events
        • Time - Every 0.03 seconds of game time
      • Conditions
      • Actions
        • Set tempDamage = (5 + (80 x (Level of Deafening Blast for unitCaster)))
        • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Or - Any (Conditions) are true
              • Conditions
                • (Integer((Distance between pointAbilityTarget and (Position of unitDummyProjectile)))) Less than 15
                • (Integer((Distance between (Position of unitCaster) and (Position of unitDummyProjectile)))) Greater than 600
          • Then - Actions
            • Trigger - Turn off DeafeningBlastP <gen>
            • Unit - Remove unitDummyProjectile from the game
            • Skip remaining actions
          • Else - Actions
            • Do nothing
        • Unit - Move unitDummyProjectile instantly to ((Position of unitDummyProjectile) offset by 15.00 towards (Facing of unitDummyProjectile) degrees)
        • Set temp_group = (Units within 150.00 of (Position of unitDummyProjectile))
        • Unit Group - Pick every unit in temp_group and do (Actions)
          • Loop - Actions
            • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
              • If - Conditions
                • ((Owner of (Picked unit)) is an enemy of (Owner of unitDummyProjectile)) Equal to True
              • Then - Actions
                • Set temp_point = (Position of (Picked unit))
                • Unit - Move (Picked unit) instantly to (temp_point offset by 15.00 towards (Facing of unitDummyProjectile) degrees)
                • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                  • If - Conditions
                    • ((Picked unit) has buff Deafening Blast ) Equal to False
                  • Then - Actions
                    • Unit - Create 1 Dummy (silenceCaster) for (Owner of unitDummyProjectile) at temp_point facing Default building facing (270.0) degrees
                    • Set Blast = (Last created unit)
                    • Unit - Set level of Silence (Blast) for Blast to (Level of Deafening Blast for unitCaster)
                    • Unit - Order Blast to Neutral Dark Ranger - Silence temp_point
                    • Unit - Cause Blast to damage (Picked unit), dealing (Real(tempDamage)) damage of attack type Spells and damage type Normal
                    • Unit - Add a 1.00 second Generic expiration timer to Blast
                    • Custom script: call DestroyGroup (udg_temp_group)
                    • Custom script: call RemoveLocation (udg_temp_point)
                  • Else - Actions
                    • Do nothing
              • Else - Actions
                • Do nothing


Ok, the problem is in the damage being done with this ability (and I'm just making sure that it will properly level). The rest works fine, but for some reason the damage seemingly accumulates on the targets; just simply does dramatically more damage than it should, sometimes just one hitting all heroes. How can I properly apply or fix the damage with this? Any help would be appreciated, thanks.

-Credit to CokeMonkey11 for writing the ability.
 

Cokemonkey11

New Member
Reaction score
18
1: Are you sure deafening blast is the name of the buff that blast's silence spell gives?

2: Have you tried using triggers to force picked unit to receive the buff?

3: Have you tried using a unit group to bypass the ignorance of the conditional statement?
 

ImmortaL_GoD

New Member
Reaction score
4
1. Positive.

2. Yes.

3. Didn't completely understand this option, how exactly would it work? Meaning, how exactly would you apply the unit damaged to the unit groups, etc.
 

Cokemonkey11

New Member
Reaction score
18
(08:05:17 PM) Blake: my idea was to add the unit to a global unit group
(08:05:19 PM) ...: it takes a vast amount of damage, that's for sure
(08:05:33 PM) Blake: and replace said condition with one which requires units to not be in the group
(08:05:50 PM) Blake: result: unit is damaged once, then added to group
(08:05:55 PM) Blake: and when it loops again in .03 seconds
(08:06:00 PM) Blake: its in the group so it doesn't get damaged again
 

Cokemonkey11

New Member
Reaction score
18
He's asking you to change 85 to 3% of 85, but that won't work because this needs to damage once, not 85 damage per second.

Can you post the code that you tried using the unit group thing here?
 

XeNiM666

I lurk for pizza
Reaction score
138
1. why are you using integers? you dont like reals??? :D (nvm)
Use Cokemonkey11's solution..

When the unit has been damaged, add them to a group:
Trigger:
  • Unit - Cause Blast to damage (Picked unit), dealing (Real(tempDamage)) damage of attack type Spells and damage type Normal
    • Unit Group - Add (Picked unit) to Damaged

then set your condition from:
Trigger:
  • ((Picked unit) has buff Deafening Blast ) Equal to False

to:
Trigger:
  • ((Picked unit) is in Damaged) Equal to False
 

Cokemonkey11

New Member
Reaction score
18
1. why are you using integers? you dont like reals??? :D (nvm)
Use Cokemonkey11's solution..

When the unit has been damaged, add them to a group:
Trigger:
  • Unit - Cause Blast to damage (Picked unit), dealing (Real(tempDamage)) damage of attack type Spells and damage type Normal
    • Unit Group - Add (Picked unit) to Damaged

then set your condition from:
Trigger:
  • ((Picked unit) has buff Deafening Blast ) Equal to False

to:
Trigger:
  • ((Picked unit) is in Damaged) Equal to False

A unit can't have half a hit point ;)
 

ImmortaL_GoD

New Member
Reaction score
4
Trigger:
  • DeafeningBlastP
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set tempDamage = (5 + (80 x (Level of Deafening Blast for unitCaster)))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Integer((Distance between pointAbilityTarget and (Position of unitDummyProjectile)))) Less than 15
              • (Integer((Distance between (Position of unitCaster) and (Position of unitDummyProjectile)))) Greater than 600
        • Then - Actions
          • Trigger - Turn off DeafeningBlastP <gen>
          • Unit - Remove unitDummyProjectile from the game
          • Skip remaining actions
        • Else - Actions
          • Do nothing
      • Unit - Move unitDummyProjectile instantly to ((Position of unitDummyProjectile) offset by 15.00 towards (Facing of unitDummyProjectile) degrees)
      • Set temp_group = (Units within 150.00 of (Position of unitDummyProjectile))
      • Unit Group - Pick every unit in temp_group and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) is an enemy of (Owner of unitDummyProjectile)) Equal to True
            • Then - Actions
              • Set temp_point = (Position of (Picked unit))
              • Unit - Move (Picked unit) instantly to (temp_point offset by 15.00 towards (Facing of unitDummyProjectile) degrees)
              • Unit Group - Add (Picked unit) to tempBlasted
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Picked unit) is in tempBlasted) Equal to False
                • Then - Actions
                  • Unit - Create 1 Dummy (silenceCaster) for (Owner of unitDummyProjectile) at temp_point facing Default building facing (270.0) degrees
                  • Set Blast = (Last created unit)
                  • Unit - Set level of Silence (Blast) for Blast to (Level of Deafening Blast for unitCaster)
                  • Unit - Order Blast to Neutral Dark Ranger - Silence temp_point
                  • Unit - Cause Blast to damage (Picked unit), dealing (Real(tempDamage)) damage of attack type Spells and damage type Normal
                  • Unit - Add a 1.00 second Generic expiration timer to Blast
                  • Custom script: call DestroyGroup (udg_temp_group)
                  • Custom script: call RemoveLocation (udg_temp_point)
                • Else - Actions
                  • Do nothing
              • Custom script: call DestroyGroup (udg_tempBlasted)
            • Else - Actions
              • Do nothing


I also tried moving it to where/how XeNiM suggested, still didn't work.

EDIT: Nvm, took out the custom script to remove the new unit group and now it works, woo, thanks all. I had to move it below where the unit takes damage though, why is that? Isn't it still the same "Picked unit" even before the If/Then/Else?
 

ImmortaL_GoD

New Member
Reaction score
4
Ok, I'm back as I'm having some issues: a) Sometimes the ability seems to do damage and others not, or only to some units. =/

b) It's not showing the buff and animation still (yellow ! over their heads), ever, and doesn't seem to do the disable, only knockback.

Trigger:
  • DeafeningBlastP
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Set tempDamage = (5 + (80 x (Level of Deafening Blast for unitCaster)))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Or - Any (Conditions) are true
            • Conditions
              • (Integer((Distance between pointAbilityTarget and (Position of unitDummyProjectile)))) Less than 15
              • (Integer((Distance between (Position of unitCaster) and (Position of unitDummyProjectile)))) Greater than 600
        • Then - Actions
          • Trigger - Turn off DeafeningBlastP <gen>
          • Unit - Remove unitDummyProjectile from the game
          • Skip remaining actions
        • Else - Actions
          • Do nothing
      • Unit - Move unitDummyProjectile instantly to ((Position of unitDummyProjectile) offset by 15.00 towards (Facing of unitDummyProjectile) degrees)
      • Set temp_group = (Units within 150.00 of (Position of unitDummyProjectile))
      • Unit Group - Pick every unit in temp_group and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Picked unit)) is an enemy of (Owner of unitDummyProjectile)) Equal to True
            • Then - Actions
              • Set temp_point = (Position of (Picked unit))
              • Unit - Move (Picked unit) instantly to (temp_point offset by 15.00 towards (Facing of unitDummyProjectile) degrees)
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • ((Picked unit) is in tempBlasted) Equal to False
                • Then - Actions
                  • Unit - Create 1 Dummy (silenceCaster) for (Owner of unitDummyProjectile) at temp_point facing Default building facing (270.0) degrees
                  • Set Blast = (Last created unit)
                  • Unit - Set level of Silence (Blast) for Blast to (Level of Deafening Blast for unitCaster)
                  • Unit - Order Blast to Neutral Dark Ranger - Silence temp_point
                  • Unit - Cause Blast to damage (Picked unit), dealing (Real(tempDamage)) damage of attack type Chaos and damage type Normal
                  • Unit Group - Add (Picked unit) to tempBlasted
                  • Unit - Add a 1.00 second Generic expiration timer to Blast
                • Else - Actions
                  • Do nothing
              • Custom script: call DestroyGroup (udg_temp_group)
              • Custom script: call RemoveLocation (udg_temp_point)
            • Else - Actions
              • Do nothing
 
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