Autocast Cleave?

Immolation

Member
Reaction score
20
Any suggestions on how to make an ability that, when autocast is activated, splashes damage to nearby enemies?
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
This is virtualy imposible u cant detect if it is on or of
 

Immolation

Member
Reaction score
20
You can, by setting a boolean variable when you turn on/off the spell, but the problem comes if you want to make it MUI...
 

polo2005

Wana start playing LoL? http://tinyurl.com/369as27
Reaction score
97
req: a dummy ability that are used for autocast like blackarrow with target none
an cleave ability
basic steps :)

Code:
Untitled Trigger 001
    Events
        Unit - A unit Is issued an order with no target
    Conditions
        (Issued order) Equal to (Order(blackarrowon))
    Actions
        Unit - Add cleave  to (Triggering unit)
add w/e you want

Code:
Untitled Trigger 001 Copy
    Events
        Unit - A unit Is issued an order with no target
    Conditions
        (Issued order) Equal to (Order(blackarrowoff))
    Actions
        Unit - Remove cleave  from (Triggering unit)
 

Attachments

  • ong.w3x
    17.3 KB · Views: 90

Komaqtion

You can change this now in User CP.
Reaction score
469
Yes you can, by using orders. Instead of using "A unit Starts the effect of an ability", use "A unit Is issued an order with no target" and ise this condition:

Trigger:
  • (Issued order) Equal to (Order(<The turn on order for the spell>))


That should work, because now you can for example turn on another ability detecting when this unit attack, do the cleave thing...

Then just reverse the stuff when he removes the auto-cast.

The same event and:

Trigger:
  • (Issued order) Equal to (Order(<The turn off order for the spell>))
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Wel then its easy when of remove cleave and on ab cleave
 

Immolation

Member
Reaction score
20
Let's suppose the caster has no mana to cast the spell.

He then, after some time, gets enough and casts it. Since I can't recognize autocast abilities through "Unit starts the effect of an ability", how can I add cleave?

EDIT: Ok, let's sum it up:

I want an ability that is autocast like Searing Arrows, for a melee unit, that just splashes the damage when you attack with that ability.

I know I can make triggers to detect for when I turn on/off the spell(and add/remove Cleave)
I know how to remove Cleave if the unit has not enough mana(even if the spell is on autocast)
I DON'T know how I can add Cleave when the unit has enough mana to cast the spell.

And, I want all of this to be MUI.
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Use what komaqtion said for events and conditions. U need to hav a custom cleave with the values u want. The when he turns it on add cleave and in the second triger when he turns it of remove cleave
 

Tom Jones

N/A
Reaction score
437
Is the mana cost constant? If so you could try something like this:

Trigger:
  • onLearn
    • Events
      • Unit - A unit Learns a skill
    • Conditions
      • (Ability being cast) Equal to *Your ability*
    • Actions
      • Trigger - Add to onMana <gen> the event (Unit - (Triggering unit)'s mana becomes Less than 8.00)
      • Trigger - Add to onMana <gen> the event (Unit - (Triggering unit)'s mana becomes Greater than or equal to 8.00)


Trigger:
  • onMana
    • Events
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Mana of (Triggering unit)) Greater than or equal to 8.00
        • Then - Actions
          • Unit - Add *Cleave* to (Triggering unit)
        • Else - Actions
          • Unit - Remove *Cleave* from (Triggering unit)
 

Immolation

Member
Reaction score
20
...

I'm full mana. I activate the autocast ability and get Cleave. After some time, I get down to no mana. I know how to remove the ability and, since I have no mana, it gets removed.

Example1:
I deactivate the spell. If I reactivate it, I'll check if I have enough mana, so there's no problem with this example

Example2:
I leave the spell activated even when I have no mana. How can I detect when I get enough mana to add Cleave again?
 

Gtam

Lerning how to write and read!! Yeah.
Reaction score
164
Ul hav to hav a periodic event that checks if he has enoug mana
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Use what Tom_Jones posted :D
That should do it ;)

Why do u ad 2 events to the triger onMana

Because he wants it not to be able to cleave when he gets less than (in this case) 8 mana (That's the first event).
And then he adds an event checking if tehe uit's mana becomes greater than 8, so he can add the cleave again :D
 

Tom_Kazansky

--- wraith it ! ---
Reaction score
157
Auto-Cast Cleaving Attack, it gonna be impossible because when you manually cast an "arrow" spell, Cleaving Attack just does not work :rolleyes: (I'm talking about melee attacker here)

anyways, I have made a demo map, Auto-cast Cleave, non-MUI, bugged if it has cooldown
take a look

p.s: in the demo map, there is an Alchemist with Searing Arrow (auto-cast) and Cleaving Attack (passive). Manually cast Searing Arrow and you will see that Cleaving Attack does not work.
 

Attachments

  • [Spell] Auto-cast Cleave.w3x
    45.3 KB · Views: 87

Tamisrah

Active Member
Reaction score
16
DamageDetection+Incinerate

1. detect damage
2. check for incinerate buff
3. if present, remove it and proceed
4. enum units in range and deal damage

Completely simulates an arrow effect and you have full controll over it (ignore armor, stacking with orb effects etc).

@Trollvottel
Have to try that skill too, totally forgot it was there :D
 
General chit-chat
Help Users
  • The Helper The Helper:
    I just got to watch the video because even though I was there I was trying to work out tech problems with the chat since I was the social media guy so I was distracted but check it out guys the video is super fucking great!
    +1
  • 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 Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top