Immune to stuns NOT dmg

SrL04

New Member
Reaction score
1
Is it possible to be immune to all stuns yet take the dmg?
Such as Mountain King's storm bolt hitting a person...is there a way to make them take the dmg but have no stun at all?
 

ludnica

Long gone
Reaction score
61
Trigger:
  • Trigger
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Drunken Haze
    • Actions
      • Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing 500.00 damage of attack type Chaos and damage type Normal


Why Drunken Haze? Because you can remove all other debuffs and adjust its spell animation.
 

SkyXyden

New Member
Reaction score
3
Trigger:
  • Trigger
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Drunken Haze
    • Actions
      • Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing 500.00 damage of attack type Chaos and damage type Normal


Why Drunken Haze? Because you can remove all other debuffs and adjust its spell animation.

Just what does this make a hero immune to stuns o_O
 

BRUTAL

I'm working
Reaction score
118
you could do something like
add all the immune units into a unitgroup
then have a trigger like;
Code:
Melee Initialization
    Events
        Time - Every 0.02 seconds of game time
    Conditions
        (Number of units in Unitgroup) Greater than 0
    Actions
        Unit Group - Pick every unit in Unitgroup and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Or - Any (Conditions) are true
                            Conditions
                                ((Picked unit) has buff Stunned) Equal to True
                                ((Picked unit) has buff Stunned (Pause)) Equal to True
                    Then - Actions
                        Unit - Remove Stunned buff from (Picked unit)
                        Unit - Remove Stunned (Pause) buff from (Picked unit)
                    Else - Actions
 

tennycat13

New Member
Reaction score
4
You will probably have to make trigger for every spell that cause stun. Then make something like this. I don't think there are any other way. :p

Make your "stun ability" base off channel.

Trigger
A unit begin the casting an ability.

Condition
Ability being cast equal "stun ability"

Action
If targeted unit has an ability call [immune to stun]
then order triggering unit deal damage to targeted unit.
else create a dummy unit at position of trigger unit and order dummy to use Mountain King's storm bolt to targeted unit.
 

SkyXyden

New Member
Reaction score
3
you could do something like
add all the immune units into a unitgroup
then have a trigger like;
Code:
Melee Initialization
    Events
        Time - Every 0.02 seconds of game time
    Conditions
        (Number of units in Unitgroup) Greater than 0
    Actions
        Unit Group - Pick every unit in Unitgroup and do (Actions)
            Loop - Actions
                If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    If - Conditions
                        Or - Any (Conditions) are true
                            Conditions
                                ((Picked unit) has buff Stunned) Equal to True
                                ((Picked unit) has buff Stunned (Pause)) Equal to True
                    Then - Actions
                        Unit - Remove Stunned buff from (Picked unit)
                        Unit - Remove Stunned (Pause) buff from (Picked unit)
                    Else - Actions

Its not really practical to use periodic tigger that has very low rep time, I think 0.02 seconds will cause lots of lag >.>
 

BRUTAL

I'm working
Reaction score
118
hows that going to cause lag?
all it does is remove a buff, its not creating or moving anything.
its not the event the causes lag its the actions
 

SrL04

New Member
Reaction score
1
0.02 sec doesn't work...there will still be a short stun time I did it with 0.01

Thing is...like if I were to channel an ability I want the person to get the dmg but not get stunned.

Yeah I think the only way to do this is to make separate triggers for all of the stun spells.

Thanks for the feedback
 

SkyXyden

New Member
Reaction score
3
hows that going to cause lag?
all it does is remove a buff, its not creating or moving anything.
its not the event the causes lag its the actions

Hmmm... anything that have is done so repeatably sounds like lag to me. But I'm not too sure about it.
 

BRUTAL

I'm working
Reaction score
118
i always go under 0.03
so, if you..display game messages eevery 0.02 seconds you get lag? i dont
 

tennycat13

New Member
Reaction score
4
Code:
Untitled Trigger 001
    Events
        Unit - A unit Begins casting an ability
    Conditions
        (Ability being cast) Equal to Storm Bolt
        ((Target unit of ability being cast) is in ImmuneGroup) Equal to True
    Actions
        Unit - Remove Stunned buff from (Target unit of ability being cast)
        Unit - Remove Stunned (Pause) buff from (Target unit of ability being cast)

How about this one?
 

BRUTAL

I'm working
Reaction score
118
no.
usually the missles from the spell take time to hit the target, its not instant
 

BRUTAL

I'm working
Reaction score
118
are you reading the first post?
he wants the spell to stun, just not for certain units
 

GooS

Azrael
Reaction score
154
Never go lower than 0.03 in periodic triggers, or so I hear.

As said by BRUTAL it's the actions that create lag, many or most low period triggers are used in sliding and/or effect mechanisms, thus either creating or moving a unit/effect which takes sooo much more computer power then, lets say setting an integer or as in this case picking units from a unitgroup.

More on topic there's no need for a trigger for each spell, just don't base it of a stun, base it of a single target spell, have a trigger that runs every 0.1 second (or lower if you want) if units has buff and a list of all diffrent stun buffs, pause unit for x seconds else do nothing. If you want diffrent stun times just add more If's.

This way, unlike BRUTALS, will not add that little glitch of a stun that stops your unit, interupts spellcast or whatever the reason you can't use his.

Off-Topic, BRUTAL if you see this, sry your icons aren't done yet, I've had a lot of IRL work on my hands lately.

//==GooS
 
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