Skill Trigger Request

SamYoon

Member
Reaction score
2
I want to make a skill that is something like Battery Assault in DotA,( it is a skill tht after the caster casted it, it will shoot something out of the caster and damages+stuns a random enemy nearby every 1 seconds. The caster doesn't has a buff.) The skill i wanna make is called Artillery Strike, whcih the caster causes damage in a small AOE of it's current position every 0.7 seconds that lasts 12 seconds. It requires to many variable with array and it really confuses.
 

Wummi

Just Relax and Smile!
Reaction score
58
Do something like:

Trigger 1:
Event
A unit beings the effect of an ability
Conditions
Ability being cast equals to Battery Assault like spell
Actions
Set Caster = triggering unit
Turn on Trigger 2
Wait 12 seconds
Turn off Trigger 2

Trigger 2:
Event
Periodic event - Every 0.7 seconds of game time
Conditions
Actions
Pick every unit within 200 range of Caster and cause Caster to deal (your damage here) of damage type normal.

Hope that works!
 

TomTTT

New Member
Reaction score
44
Do something like:

Trigger 1:
Event
A unit beings the effect of an ability
Conditions
Ability being cast equals to Battery Assault like spell
Actions
Set Caster = triggering unit
Turn on Trigger 2
Wait 12 seconds
Turn off Trigger 2

Trigger 2:
Event
Periodic event - Every 0.7 seconds of game time
Conditions
Actions
Pick every unit within 200 range of Caster and cause Caster to deal (your damage here) of damage type normal.

Hope that works!
In multiple-players games - this won't work. You have to make an array, which is pretty simple. You need to make 1 Unit array, size 13 (Considering you will have 12 players), suggested named Caster[1/2/3/4/5...] and 2 Unit Group variables. Also Point variable is needed to prevent leaks.
Trigger:
  • Trigger 1 Begin
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Animate Dead
    • Actions
      • Set tmpInt = (Player number of (Owner of (Triggering unit)))
      • Set SpellCasters[tmpInt] = (Triggering unit)
      • Wait 12.00 seconds
      • Set SpellCasters[(Player number of (Owner of (Triggering unit)))] = No unit

To set the caster and make sure the units are affected, then, after 12 seconds, make sure he no longer affects them.
Trigger:
  • Trigger 2 Effect
    • Events
      • Time - Every 0.70 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to (Number of players in (All players matching (((Matching player) slot status) Equal to Is playing))), do (Actions)
        • Loop - Actions
          • Set tmpPoint = (Position of SpellCasters[(Integer A)])
          • Set tmpUnitGroup = (Units within 250.00 of tmpPoint matching (((Owner of (Matching unit)) is an enemy of (Player((Integer A)))) Equal to True))
          • Unit Group - Add all units of tmpUnitGroup to spellAffectedUnits
          • Custom script: call DestroyGroup(udg_tmpUnitGroup)
          • Custom script: call RemoveLocation(udg_tmpPoint)
      • Unit Group - Pick every unit in spellAffectedUnits and do (Actions)
        • Loop - Actions
          • Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 10.00)
      • Unit Group - Remove all units from spellAffectedUnits

Adding all units sorrounding all the casters to a unit group variable, then damaging them all.
In the trigger, i also forgot the custom script to destroy the group spellAffectedUnits... so:
Trigger:
  • Custom script: call DestroyGroup(udg_spellAffectedUnits)

Hope it helped! :thup:
 

Ryushi

"I will stand, or I will fall. I will not sit."
Reaction score
59
You could also try creating an ability that applies a buff the the casting unit for 12 seconds, and change the buff icon to nothing so that no buff shows on the caster. Then make this trigger:
Trigger:
  • trigger
    • Events
      • Time - Every 0.70 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff "Your Buff") Equal to True)) and do (Actions)
        • Loop - Actions
          • Unit - Cause (Picked unit) to damage circular area after 0.00 seconds of radius 500.00 at (Position of (Picked unit)), dealing 100.00 damage of attack type Spells and damage type Normal

Note: This leaks.
 

TomTTT

New Member
Reaction score
44
You could also try creating an ability that applies a buff the the casting unit for 12 seconds, and change the buff icon to nothing so that no buff shows on the caster. Then make this trigger:
Trigger:
  • trigger
    • Events
      • Time - Every 0.70 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Matching unit) has buff "Your Buff") Equal to True)) and do (Actions)
        • Loop - Actions
          • Unit - Cause (Picked unit) to damage circular area after 0.00 seconds of radius 500.00 at (Position of (Picked unit)), dealing 100.00 damage of attack type Spells and damage type Normal

Note: This leaks.

Leaks twice :D
Unit group and Point.
I wouldn't suggest using this tho, since it's IMMPOSSIBLE to add a buff to a unit :) I even got a thread of me asking if it's possible xD
 

Ryushi

"I will stand, or I will fall. I will not sit."
Reaction score
59
As I said, use an ability that applies a buff to the caster, for example the Orc ability Berserk. You can then change its buff icon to nothing and the buff won't show up. But the buff can still be detected in triggers like how I did in my previous post.
 

NeuroToxin

New Member
Reaction score
46
Tom, Waits are bad, he may need it MUI, but all you guys are doing too much work, Theres supposed to be a ministun, therefore, make a dummy unit give it storm bolt dealing X amount of damage, set the level of the dummys storm bolt to the level of the ability you're casting, set the stun to like .1, then pick a random unit in X range every .7 seconds, or w/e and create a dummy unit, order it to cast storm bolt on the target, clear leaks and reset it
 

Ryushi

"I will stand, or I will fall. I will not sit."
Reaction score
59
I think when he was talking about an ability the stuns a random unit every one second, he was referring to Battery Assault, not the ability he wants made.

I believe my method is simple enough, one short trigger and no variables needed, you just need to modify the Berserk ability. It's also MUI.
 

NeuroToxin

New Member
Reaction score
46
Ryushi, mine would also work, just a bit better I believe, because storm bolt is a more efficient thing to use, and mines just 2 very short triggers. At least I think so, Storm Bolt is a base spell, and the stun would be SO easy to do, its ridiculous
 

Ryushi

"I will stand, or I will fall. I will not sit."
Reaction score
59
I believe the ability he wants just needs to deal AoE damage, and doesn't need to stun. I think he was referring to Battery Assault when he mentioned stuns. If I'm wrong and he is indeed asking for an ability that stuns, then yes your method would be the best.
 

DioD

New Member
Reaction score
57
Battery Assault dummycast stormbolts on nearby enemy units, it stuns units, but only 1 at time.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • 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 The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      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