Auto cast knock back

kingkwong92

Well-Known Member
Reaction score
25
Could someone link me to how to detect when a spell is in autocast?

I'm trying to back a autocast spell that gives you bash.
 

jig7c

Stop reading me...-statement
Reaction score
123
Trigger:
  • ability
    • events
      • a unit starts the effect of an ability
    • conditions
      • ability being cast equal to (bloodlust)
    • actions
      • set Bloodlust = True (boolean variable)


Trigger:
  • ability
    • events
      • a unit stops the effect of an ability
    • conditions
      • ability being cast equal to (bloodlust)
    • actions
      • set Bloodlust = False
 

Psiblade94122

In need of sleep
Reaction score
138
base the spell off black arrows with a .01 duration and no spawns or extra damage

Detect damage and detect if the triggering unit (damaged unit) has the buff you put for black arrows

If it has the buff then proceed with whatever you want to do
 

avalya

New Member
Reaction score
37
The shortest buff duration is 0.27 seconds though, base it on either Cold Arrows or Black Arrows, when damage is dealt, and the target has the Cold Arrow or Black Arrow buff, then turn off the trigger, remove the buff and go on with the triggers, at the end of it, turn the trigger on again.
 

Nighthawk

New Member
Reaction score
9
I'm looking at the trigger editor right now and there does not appear to be a function which can tell when an auto-attack ability is turned on and off (only when it is trigger, such as when a spell like black arrow fires).

If the above posts did not help you, then post more a detailed description of the auto-cast spell and we might be able to find a way to work around it.
 

avalya

New Member
Reaction score
37
Forgot to specify; use a damage detection system, GDD is an easy one for GUI users.
 

kingkwong92

Well-Known Member
Reaction score
25
@ jig7c
I don't think your method would work.


@Psiblade94122
Good idea but I didn't really want a buff to show up if avalya is correct.

@avalya
How do you know the shortest buff is 0.27? Has this been tested?

@Nighthawk
I simply want an autocast spell that gives a knockback. I might try the black arrows idea. I will just make the buff look like my knockback buff. I hope it doesn't look to weird with a buff showing up, disappearing and then showing up again.
 

avalya

New Member
Reaction score
37
0.27 is the shortest wait time in WC3, this is also the shortest duration you can set buffs and abilities to. If you want something to run faster, and not instantaneously, you need to use a timer, at least in GUI.

If you make the idea that I suggested then the buff will not be noticeably shown, since it is removed the fraction of the second the damage is dealt, and the same fraction that the buff is applied in the first place, thus making the buff not show, at all.
 

kingkwong92

Well-Known Member
Reaction score
25
Has this 0.27 been tested?

EDIT!! Just tested. I got a buff to last the 0.01 seconds I wanted.
@avalya Just where are you getting these numbers from because they're not true.

EDIT!! You can't even see the buff in 0.01 seconds. This works good for what I need.
 

HydraRancher

Truth begins in lies
Reaction score
197
Has this 0.27 been tested?

EDIT!! Just tested. I got a buff to last the 0.01 seconds I wanted.
@avalya Just where are you getting these numbers from because they're not true.

EDIT!! You can't even see the buff in 0.01 seconds. This works good for what I need.

Erm...How do you know it lasted 0.01?


The numbers are true.....
The 0.01 is a lie....
 

kingkwong92

Well-Known Member
Reaction score
25
Trigger:
  • Test1
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Dummy <gen> has buff Acid Bomb) Equal to True
        • Then - Actions
          • Set test = (test + 0.01)
        • Else - Actions
      • Game - Display to (All players) the text: (String(test))


Trigger:
  • Test2
    • Events
      • Unit - Dummy 0000 <gen> Takes damage
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) has buff Acid Bomb) Equal to True
        • Then - Actions
          • Game - Display to (All players) the text: Has buff
        • Else - Actions
      • Trigger - Turn off Test1 <gen>



I did this test and it showed up as 0.01
 

Darthfett

Aerospace/Cybersecurity Software Engineer
Reaction score
615
I did this test and it showed up as 0.01

It's possible work with real numbers below 0.27, the number is just a limitation of the Wait action. Periodic Events and timers do not have this limitation. I have never heard of buffs being affected by the limitation.

The actual 'minimum' wait time is not consistent, but 0.27 is a rough average of the minimum amount of time you can wait. There were strange results from the test I saw, and even stranger for using 0.00 and negative numbers for waits.

Could someone link me to how to detect when a spell is in autocast?

I'm trying to back a autocast spell that gives you bash.

All you have to do is detect when the unit is issued an order. If that order is ___on, it is being enabled. If it is ___off, it is being disabled. For example, healon is what happens when the unit turns autocast for the heal spell on. Not every spell has this possibility, however. Check the spell under Text - Order String - Activate and Text - Order String - Deactivate.
 

Nenad

~Choco Coronet~ Omnomnom
Reaction score
137
Trigger:
  • Test1
    • Events
      • Time - Every 0.01 seconds of game time
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Dummy <gen> has buff Acid Bomb) Equal to True
        • Then - Actions
          • Set test = (test + 0.01)
        • Else - Actions
      • Game - Display to (All players) the text: (String(test))


Trigger:
  • Test2
    • Events
      • Unit - Dummy 0000 <gen> Takes damage
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Triggering unit) has buff Acid Bomb) Equal to True
        • Then - Actions
          • Game - Display to (All players) the text: Has buff
        • Else - Actions
      • Trigger - Turn off Test1 <gen>



I did this test and it showed up as 0.01

I don't think this will work if you try any actions and orders, but try it. I never had good experience with less then 0.3 second waits and periodic events, usually there is some workaround, or that spell may already exist in JASS so you can search the website ^^
 

kingkwong92

Well-Known Member
Reaction score
25
I can't believe I didn't think about that. Thanks a bunch.
Your rep says you've been here too long.
 

avalya

New Member
Reaction score
37
The test you made used a timer, and not waits, which was not what I was talking about. On waits and buff durations you can't go with any less than 0.27 seconds, that's why so-called 'mini-stuns' exists and are not only 'stops casting'.
 

avalya

New Member
Reaction score
37
Wow dude, you're giving me -rep for suggestions and facts that you cannot comprehend... really wow.
 
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