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: 88

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: 86

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
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top