Spell Aura

JohnyO

New Member
Reaction score
0
Unit got aura: if enemy attack someone under this aura, it's chance 50% to cast spell against attacker.
I can't get how to merge all these.
 

crazyfanatic

New Member
Reaction score
20
Trigger:
  • (Attacked unit) has buff of type (aura) equal to True


This is the condition. Just make rhe aura give this buffand its done.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Here's an example:
Trigger:
  • Aura Attack
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Triggering unit) has buff Acid Bomb) Equal to True
      • (Random integer number between 1 and 100) Less than or equal to 50
    • Actions
      • Unit - Order (Triggering unit) to Orc Raider - Ensnare (Attacking unit)
 

JohnyO

New Member
Reaction score
0
"(Random integer number between 1 and 100) Less than or equal to 50"
between 1 and 100 - does it mean that it will be random chance in % from 1 to 100?
and if it's equal to 50, chance will be always 50?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Code:
(Random integer number between 1 and 100) [COLOR="Red"]Less than or[/COLOR] equal to 50

It is Less than or equal to 50, meaning that if that number is below 50, the trigger will fire ;)
 

JohnyO

New Member
Reaction score
0
Events: Unit - A unit is attacked
Conditions: ((Triggering unit) has buff Spike Aura) Equal to True
(Random integer number between 1 and 100) Less than or equal to 50

Actions: Unit - Order (Triggering unit) to Grave lord(undead) - Piercing death (Attacking unit)

It doesn't work for me=(
what's wrong?
 

Laiev

Hey Listen!!
Reaction score
188
Komaqtion just give you a exemple..

You forget to add ability to your hero/unit or create a dummy and add that ability, next you order the hero/unit to cast it

EDIT: the 'order' is just based in ability base.

Exemple:

your unit has a ability based in shockwave ability, so the trigger must be:

Trigger:
  • Unit - Order (Triggerring unit) to Tauren Chieftain - Shockwave (Position of (attacking unit))
 

JohnyO

New Member
Reaction score
0
ofc i gave ability to my hero and i have this:
Trigger:
  • Unit - Order (Triggerring unit) to Grave Lord(undead) - Piercing death (attacking unit)
 

Laiev

Hey Listen!!
Reaction score
188
ofc i gave ability to my hero and i have this:
Trigger:
  • Unit - Order (Triggerring unit) to Grave Lord(undead) - Piercing death (attacking unit)

This order is what?
Order Targeting unit/point/item/destructible, what?

Because I don't see it in my editor :S
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Code:
Unit - Order ([COLOR="Red"]Triggerring[/COLOR] unit) to [COLOR="Blue"]Grave Lord(undead) - Piercing death[/COLOR] ([COLOR="DarkGreen"]a[/COLOR]ttacking unit)

Red: Wrongly spelled !
Blue: Doesn't exist !
DarkGreen: Should be upper-case "A" here !

I'd say that was freehanded, and you can't use that in the WE...

Please, say which ability you based it on, and we can tell you the order !
 

JohnyO

New Member
Reaction score
0
That mistake - i got half-russian/half-english translation in we, so it's very uncomfortable
it was free translation so, sry)
it's crypt lord and his empale
Trigger:
  • Unit - Order (Triggering unit) to Crypt Lord(undead) - Empale (Attacking unit)

I think in english it looks like this
 

Laiev

Hey Listen!!
Reaction score
188
Trigger:
  • Unit - Order (Triggering unit) to Undead Crypt Lord - Impale (Position of (Attacking unit))


Remeber, it do leak in "Position of (Attacking unit)" just fix it with variable, and triggering unit (in this case) = attacked unit

This is a order to a point.

Trigger:
  • Aura Attack
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Triggering unit) has buff Acid Bomb) Equal to True
      • (Random integer number between 1 and 100) Less than or equal to 50
    • Actions
      • Unit - Order (Last created unit) to Undead Crypt Lord - Impale (Position of (Attacking unit))


and REMEMBER... the attacked unit NEED THE ABILITY BASE IMPALE DO CAST IT.

EDIT To more detail:
You also can do it with dummy..

so it will work with any unit:

Trigger:
  • Aura Attack
    • Events
      • Unit - A unit Is attacked
    • Conditions
      • ((Triggering unit) has buff Impale Buff) Equal to True
      • (Random integer number between 1 and 100) Less than or equal to 50
    • Actions
      • Set ImpalePoint1 = (Position of (Attacking unit))
      • Set ImpalePoint2 = (Position of (Triggering unit))
      • Unit - Create 1 ImpaleDummy for (Owner of (Triggering unit)) at ImpalePoint2 facing Default building facing degrees
      • Unit - Add Impale ability to (last created unit)
      • Unit - Order (Last created unit) to Undead Crypt Lord - Impale ImpalePoint1
      • Custom Script: Call RemoveLocation (udg_ImpalePoint1)
      • Custom Script: Call RemoveLocation (udg_ImpalePoint2)


fix it if i'm wrong
 

LightChaosma

New Member
Reaction score
60
hmmz...
1. what if the attacked unit is not a hero, you ccan't add the spell to him
2. what would happen if the unit is attacked by like 50 units at a time? it wont have the time needed to cast the spell before the trigger is fired agian.
i suggest dummies here

3: the event "a unit is attacked" is buggy, you can mass spam attack on a unit by clicking stop before the attack is launced. use "unit takes damage" instead. for yhis you have to have a 2nd trigger, that adds the event of all units in the map to the events of this trigger: example:
Trigger:
  • thehelpertrigger
    • Events
      • Unit - A unit enters (Playable map area)
    • Conditions
    • Actions
      • Trigger - Add to (This trigger) the event (Unit - (Entering unit) Takes damage)


EDIT:

ah, Laiev already fixed point 1 qand 2 :D
 

Laiev

Hey Listen!!
Reaction score
188
LightChaosma thx

I also forgot the expiration time to dummy :x

Just a add to LightChaosma, takes damage include magic too, so if you do it, remeber to turn off the trigger BEFORE you impale it, and in the end of trigger turn on again, if don't, you will cause infinite loop, what will crash your wc (like mine :D)
 

LightChaosma

New Member
Reaction score
60
yea, and you create a dummy wich you dont use (A), you still use the hero it self to cast the spell :D

oh yea, forgot about that :D
that can be an easy fix depending on what kind of map it is...

if you also want this skill to fire when it is hit by a skill you only have to create a 2nd dummy, and call it for inctance Impale-dummy
that dummy is only usd to cast that impale. and in you trigger you add the following condition:

Code:
(Unit-type of (Triggering unit)) Not equal to Impale-dummy
 

Laiev

Hey Listen!!
Reaction score
188
LightChaosma thx again lol

fixed it now

now dummy cast impale :)

JohnyO if need more help in anything, just say :D
 

JohnyO

New Member
Reaction score
0
I want this spell being cast only on usual attack, not spell
so it's Laiev's aura attack dummy with turning off and on to be correct?
 

LightChaosma

New Member
Reaction score
60
i think so yeas, or you need to use a damage detection system wich i dont know too much about...

the unit is attacked event will probobly work in this case since spamming the attack will only cause damage to you.

also, add another condition, (owner of (attacking unit)) is an enemy of (owner of (attacked unit)) is true

so it wont fire when a friend would attack you
 

Laiev

Hey Listen!!
Reaction score
188
I want this spell being cast only on usual attack, not spell
so it's Laiev's aura attack dummy with turning off and on to be correct?

This what i say is just to don't cause infinite loop.

simply what is DDS:
Trigger:
  • Event - Unit Take Damage


(damage detect system)

The 'damage detect system' detect when some unit deals damage, if something (spell, attack, etc) deal damage, the DDS will run and do what need to do

so..

if you use the DDS, you NEED to turn off and turn on the trigger or you will cause crash in your warcraft when you run that trigger :) (because you make infinit loop)


EDIT: i think is better you use what LightChaosma say, more easy and prevent lot of things.

EDIT again: LightChaosma can i say with you in private? :X
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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