is there such a thing as this action?

Anti-krazy

New Member
Reaction score
5
Hi guys is may have mentioned i have a question about actions

is there an action close to...

-a unit attacks 3 times *blah blah blah*

any help is appreciated :D
 

AoW_Hun7312

I'm a magic man, I've got magic hands.
Reaction score
76
Nope. How ever, you could have an integer variable, and set it +1 (added to the variable) when ever that particular unit attacked.
 

Weegee

Go Weegee!
Reaction score
102
not really =P

Code:
hi
    Events
        Unit - A unit Is attacked
    Conditions
    Actions
        Set IntegerVariable = IntegerVariable +1

Something like this
 

Danjamino

New Member
Reaction score
8
im sorry kinda off topic but i have no idea how variables work
can som1 give me a link to tutorial or help me out

i didnt wanna make a new post

+ rep for help if i can find out how
lol
 

AoW_Hun7312

I'm a magic man, I've got magic hands.
Reaction score
76
im sorry kinda off topic but i have no idea how variables work
can som1 give me a link to tutorial or help me out

@Your Question: Use Search

On Topic: You would have to use (Integer + 1) because adding +3 would make the value of that integer +3 of the original value.
 

crystalguard

New Member
Reaction score
11
it'd be more like this
Code:
hi
    Events
        Unit - A unit Is attacked
    Conditions
    Actions
        Set IntegerVariable = IntegerVariable +1
        If/Then/Else
             If 
                   IntegerVariable equal to or less then 3
             Then 
                   Do nothing
             Else 
                   [do your actions blah blah blah]
                   Set IntegerVariable = 0
That will work for most things that you need it to do
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
But then people could spam it. :D Try using a damage detection system.
 

demotry241

Don't Ever Categorize Yourself.
Reaction score
105
because the integer is more than 3.

3 = charged.. on next attack.. kill attacked unit...
then reset it to zero again.
 
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