Attribute Spell Passive

power

New Member
Reaction score
3
Ok, I wanna make this trigger work for a passive move, this move works fine, but i wanna make critical strike do this and my attempt at doing this didn't work. I want it to do 0.2x agility everytime the crictical strike happens.
Code:
Dark Grip
    Events
        Unit - A unit Starts the effect of an ability
    Conditions
        (Ability being cast) Equal to Dark Grip (Custom)
    Actions
        Set Strength = (Strength of (Casting unit) (Include bonuses))
        Set Convert = (Real(Strength))
        Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Convert x 20.00) damage of attack type Spells and damage type Normal

Yeah..
 

Mapster

New Member
Reaction score
4
Critical Strike can not be changed through triggers.

You will have to remake it using triggers or make do with what it has in the object editor sorry.
 

power

New Member
Reaction score
3
How could I remake it, You mean like this..
Code:
Assassins Strike
    Events
        Unit - A unit Is attacked
    Conditions
        (Unit-type of (Attacked unit)) Equal to Assassin (Playable)
    Actions
        Set Trollinteger = (Random integer number between 1 and 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Random integer number between 1 and 15) Equal to 6
            Then - Actions
                Set Agility = (Agility of (Casting unit) (Include bonuses))
                Set Convert = (Real(Agility))
                Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Convert x 20.00) damage of attack type Spells and damage type Normal
            Else - Actions

Instead it be like an attack that the unit uses to hurt the other unit.. A counter attack or osmething.
 

Wiseman_2

Missy wants blood!
Reaction score
169
WC3 doesn't detect Critical Strike. You have to use integers and create the chance of firing the trigger yourself.
I have a shrewd idea how to do it, but I don't have the WE at the moment and am a little busy.
 

power

New Member
Reaction score
3
well hopefully someone will come up with that trigger for me? :D I will <3 you for it! I want to know how I can make a Counter-Attack ability from a trigger. This will allow me to make a spell which will have a chance for a hero to do x7 its agility. This is what I have so far.

Code:
Assassins Strike
    Events
        Unit - A unit Is attacked
    Conditions
        And - All (Conditions) are true
            Conditions
                (Unit-type of (Attacked unit)) Equal to Assassin (Playable)
    Actions
        Set Trollinteger = (Random integer number between 1 and 1)
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Random integer number between 1 and 2) Equal to 2
            Then - Actions
                Set Agility = (Agility of (Casting unit) (Include bonuses))
                Set Convert = (Real(Agility))
                Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Convert x 7.00) damage of attack type Spells and damage type Normal
            Else - Actions

I need to know how to make that work and how the trigger can find out the hero has the ability. Thx.
 

Mapster

New Member
Reaction score
4
There are lots of tutorials around and topics askign about critical strike.

Just use the search button ;)
 

ianu74

New Member
Reaction score
8
replace it with Bash ability and change the buff.
Code:
Critical Trigger
    Events
        Unit - A unit Is attacked
    Conditions
        ((Triggering unit) has buff Critical Effect ) Equal to True
        (Unit-type of (Triggering unit)) Equal to (your unit)
    Actions
        Unit - Cause (Attacking unit) to damage (Attacked unit), dealing (0.20 x (Real((Strength of (Attacking unit) (Include bonuses))))) damage of attack type Spells and damage type Normal
 

ianu74

New Member
Reaction score
8
Code:
Critical Trigger
    Events
        Unit - A unit Is attacked
    Conditions
        [B]Wait 0.21 seconds[/B]
        ((Triggering unit) has buff Critical Effect ) Equal to True
        (Unit-type of (Triggering unit)) Equal to (your unit)
    Actions
        Unit - Cause (Attacking unit) to damage (Attacked unit), dealing (0.20 x (Real((Strength of (Attacking unit) (Include bonuses))))) damage of attack type Spells and damage type Normal
Set the Stun limit to 0.5 seconds long..
Does that work?
 

power

New Member
Reaction score
3
This is what I got, doesnt work yet, I'm going to try a few things but I think its because of the event.
Code:
Counter Attack
    Events
        Unit - A unit Is attacked
    Conditions
    Actions
        Wait 0.21 seconds
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Attacking unit) has buff Counter Attack (Pause)) Equal to True
                (Unit-type of (Attacked unit)) Equal to Assassin (Playable)
            Then - Actions
                Set Agility = (Agility of (Casting unit) (Include bonuses))
                Set Convert = (Real(Agility))
                Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing (Convert x 7.00) damage of attack type Spells and damage type Normal
            Else - Actions
 

power

New Member
Reaction score
3
Code:
Counter Attack
    Events
        Unit - A unit Is attacked
    Conditions
    Actions
        Wait 0.10 seconds
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Triggering unit) has buff Counter Attack (Pause)) Equal to True
            Then - Actions
                Set Agility = (Agility of (Casting unit) (Include bonuses))
                Set Convert = (Real(Agility))
                Unit - Cause (Attacking unit) to damage (Triggering unit), dealing (Convert x 20.00) damage of attack type Spells and damage type Normal
            Else - Actions

Why won't this work!?!?!
 

Chocobo

White-Flower
Reaction score
409
Casting unit is nothing in your trigger since there is no Casting unit (your event is Attacked unit - Attacking unit).

Code:
Counter Attack
    Events
        Unit - A unit Is attacked
    Conditions
    Actions
        Wait 0.10 seconds
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                ((Triggering unit) has buff Counter Attack (Pause)) Equal to True
            Then - Actions
                Unit - Cause (Attacking unit) to damage (Triggering unit), dealing ((Real(Agility)) x (Agility of (Attacking unit) (Include bonuses)) damage of attack type Spells and damage type Normal
            Else - Actions
 
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