How do i make a damaging ensnare spell?

Broshir

New Member
Reaction score
2
Hi, i haven't been active for a while and i think it's time. =)

I'm gonna play around in wc3 editor and when i have enough resources i'll make a dota-like map, anyway, i was thinking of an ability: Electric Net.

The original ability should be Ensnare, same missile animation, but, for example dutation 6sec, i want that every 2 sec it should do 100dmg (for example) and then show that chain lightning splash animation on that unit, but still have net animation..

So basicly, its a net that does electric animations and doing damage.

(I dont mean this chain lightning: Char ---chain--->enemy, i mean if u click chain lightning model, it shows a nice splash of lightning, i want that one)

help me plz :/

(I made this thread in the wrong part of the forum so i remade it here :p)

edit: thanks every1, no more help needed........ for now
 

Jagan

New Member
Reaction score
30
Code:
Electric Net Init
Event
    A unit starts the effect of an ability
Condition
    Ability being cast equal to 'your ability'
Actions
    Set Caster = triggering unit
    Set Target = target unit of ability cast
    Turn on Electric Net Periodic Damage trigger
    Wait 6 seconds
    Turn off Electric Net Periodic Damage trigger

Code:
Electric Net Periodic Damage
Event
    Every 2 seconds
Condition
    Target has 'your ability buff'
Actions
    Have Caster deal 100 damage to Target
    Create 'your special effect' at chest/origin/etc of Target
    Destroy last created special effect

And then just remove the leaks.
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
true true, but its DP2S(damage per 2 seconds!)


so we can't use entangle roots XD xD


and also... the Lightning special effects part..
 

Jagan

New Member
Reaction score
30
There, I made it easier on the eyes:

Code:
Electric Net Init
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Ensnare
    Actions
        Set Caster = (Triggering unit)
        Set Target = (Target unit of ability being cast)
        Trigger - Turn on Electric Net Periodic Damage <gen>
        Wait 6.00 seconds
        Trigger - Turn off Electric Net Periodic Damage <gen>

Code:
Electric Net Periodic Damage
    Events
        Time - Every 2.00 seconds of game time
    Conditions
        (Target has buff Ensnare (General)) Equal to True
    Actions
        Unit - Cause Caster to damage Target, dealing 100.00 damage of attack type Spells and damage type Normal
        Special Effect - Create a special effect attached to the origin of Target using Abilities\Weapons\Bolt\BoltImpact.mdl
        Special Effect - Destroy (Last created special effect)

(Target has buff Ensnare (General)) Equal to True can be found in Boolean Comparison, Unit - Unit has specific buff

Unit - Cause Caster to damage Target, dealing 100.00 damage of attack type Spells and damage type Normal can be found in Unit - Damage Target

Special Effect - Create a special effect attached to the origin of Target using Abilities\Weapons\Bolt\BoltImpact.mdl can be found in Special Effect - Create Special Effect On Unit

Special Effect - Destroy (Last created special effect) is right below the previous one.
 

Jagan

New Member
Reaction score
30
(Target has 'your ability buff') Equal to True

Did you get this part right? If you didn't, the damage part won't occur.

EDIT: Oh, well just try to follow the triggers I gave you. I tested it just now and it worked for me. No reason why it wouldn't for you. :)
 

Broshir

New Member
Reaction score
2
A somewhat better way to show a trigger is using right-click on the trigger's name, using "copy as text" and pasting it in here.

Code:
Electric Net
Events
    Unit - A unit Starts the effect of an ability
Conditions
    (Ability being cast) Equal to Electric Net 
Actions
    Set Caster = (Triggering unit)
    Set Target = (Target unit of ability being cast)
    Trigger - Turn on electric net dmg <gen>
    Wait 6.00 seconds
    Trigger - Turn off electric net dmg <gen>

Code:
Electric Net DMG
Events
    Time - Every 2.00 seconds of game time
Conditions
    (Target has buff Electric Net ) Equal to True
Actions
    Unit - Cause Caster to damage Target, dealing 100.00 damage of attack type Spells and damage type Normal
    Special Effect - Create a special effect attached to the origin of Target using Abilities\Weapons\Bolt\BoltImpact.mdl
    Special Effect - Destroy (Last created special effect)

Happy now? =D, help plz >.<
 

shinami

Redirect your complaints to the nearest wall
Reaction score
47
Code:
Electric Net
Events
    Unit - A unit Starts the effect of an ability
Conditions
    (Ability being cast) Equal to Electric Net 
Actions
    Set Caster = (Triggering unit)
    Set Target = (Target unit of ability being cast)
    Trigger - Turn on electric net dmg <gen>
    Wait 6.00 seconds
    Trigger - Turn off electric net dmg <gen>

Code:
Electric Net DMG
Events
    Time - Every 2.00 seconds of game time
Conditions
    (Target has buff Electric Net ) Equal to True
Actions
    Unit - Cause Caster to damage Target, dealing 100.00 damage of attack type Spells and damage type Normal
    Special Effect - Create a special effect attached to the origin of Target using Abilities\Weapons\Bolt\BoltImpact.mdl
    Special Effect - Destroy (Last created special effect)

Happy now? =D, help plz >.<

Are you sure the ability actually gives a buff?

P.S you never stated "whats wrong" with your trigger. Is it not damaging? Is the effect not coming? WTF?
 

Broshir

New Member
Reaction score
2
@ inami, i did write problems b4 but i realized i removed em now :D

only the net is cast, no lightning animation, no dmg.
 

Broshir

New Member
Reaction score
2
NVM, ill just take entangling roots, whatever >.<

thanks every1 for the help, learned some stuff bout variables and some trigger work :D
 

BoterhaM

New Member
Reaction score
2
This definitely works:

Code:
Electric Net
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Electric Net 
    Actions
        Set ElectricNetCaster = (Casting unit)
        Set ElectricNetTarget = (Target unit of ability being cast)
        Wait until (((ElectricNetTarget has buff Ensnare (Air)) Equal to True) or ((ElectricNetTarget has buff Ensnare (Ground)) Equal to True)), checking every 0.10 seconds
        Unit - Create 1 Electric Locust for (Owner of ElectricNetCaster) at (Position of ElectricNetTarget) facing Default building facing degrees
        Unit - Order (Last created unit) to Attack ElectricNetTarget
        Unit - Add a 6.00 second Generic expiration timer to (Last created unit)

Variables:
ElectricNetCaster = Unit
ElectricNetTarget = Unit

Electric Locust: base it of the unit 'Locust' and change these things:

Art - Model File: .mdl
Combat - Attack 1 - Cooldown Time: 2 seconds (or whatever you like)
Combat - Attack 1 - Damage Base: 99
Combat - Attack 1 - Damage Number of Dice: 1
Combat - Attack 1 - Damage Sides per Die: 1
Combat - Attack 1 - Projecticle Art: Chain Lighting <target>
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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