Making an item ability

F

flyingphippo

Guest
Is there a way to do when you click on this item, it will help you break out of the stun the unit is currently under? Thanks
 

Romek

Super Moderator
Reaction score
963
you could remove the buffs i think
 

Faust

You can change this now in User CP.
Reaction score
123
But how do you use the item while stunned?


...Well, maybe you can detect an order, even if you are stunned. Not sure.
 
F

flyingphippo

Guest
so theres no way to detect an order from the unit when disabled?
 

Faust

You can change this now in User CP.
Reaction score
123
Don't know, test it yourself.
Stun a unit for long, and try to order it.
With a Game action display the given order as text
 

~GaLs~

† Ғσſ ŧħə ѕαĸε Φƒ ~Ğ䣚~ †
Reaction score
180
there is somehow a trigger is needed to do this..
Something like:
Code:
E - Every 0.10 sec
C - 
A - If - X unit contains (stunned(paused)) buff == true
     then - remove (stunned(paused)) from X unit

But this u will need to base all ur stun from a same buff...
 

Ghan

Administrator - Servers are fun
Staff member
Reaction score
888
> Where is the "click an item"?

That would be "Uses an Item."
 

Andrewgosu

The Silent Pandaren Helper
Reaction score
716
I guess the answer is no. The unit will perform the issued order after it has recovered from the stun.

But, it could be automatic, couldn't it?

Code:
[B]Remove Stun[/B]
[B]    Events[/B]
        Time - Every 0.25 seconds of game time
[B]    Conditions[/B]
[B]    Actions[/B]
        Set tmpGroup = (Units in (Playable map area) matching ((((Matching unit) has buff Stunned (Pause)) Equal to True) and (((Matching unit) has an item of type Stun Remover) Equal to True)))
        Unit Group - Pick every unit in tmpGroup and do (Actions)
            Loop - Actions
                Unit - Remove Stunned (Pause) buff from (Picked unit)
                Item - Remove (Item carried by (Picked unit) of type Stun Remover)
        Custom script:   call DestroyGroup(udg_tmpGroup)
 

exge

New Member
Reaction score
15
even if you remove the buff, it will still be stunned until the ability finishes
removing the buff will only remove the special effects overhead
 

Rheias

New Helper (I got over 2000 posts)
Reaction score
232
Code:
Untitled Trigger 001
    Events
        Unit - A unit Uses an item
    Conditions
        (Item-Type of (Item being manipulated)) Equal to Your Item
    Actions
        Unit - Remove Stunned (Pause) buff from (Triggering unit)

This?
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top