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.
  • 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