• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

How to check if player has that number of attribute

Status
Not open for further replies.
Level 10
Joined
Jan 20, 2011
Messages
492
Create your event, then create a variable that is an integer value, then use this line

  • Set Integer = (Stat of (Triggering unit) (Exclude bonuses))
Then use an if statement to run what you want to do.
 
Level 13
Joined
Jun 3, 2011
Messages
1,058
Create your event, then create a variable that is an integer value, then use this line

  • Set Integer = (Stat of (Triggering unit) (Exclude bonuses))
Then use an if statement to run what you want to do.

what does excluded mean?
 
Level 13
Joined
Jun 3, 2011
Messages
1,058
Create your event, then create a variable that is an integer value, then use this line

  • Set Integer = (Stat of (Triggering unit) (Exclude bonuses))
Then use an if statement to run what you want to do.

How can i exactly make it like when its over 500 or something (i will do the action)
 
Level 6
Joined
May 4, 2012
Messages
187
What do you mean make it?

You just create the variable, set its value, and do the actions then you are okay...
 
Level 33
Joined
Mar 27, 2008
Messages
8,035
How can i exactly make it like when its over 500 or something (i will do the action)

  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (Strength of (Triggering unit) (Exclude bonuses)) Greater than 500
      • Then - Actions
        • -------- ACTION HERE --------
      • Else - Actions
 
Status
Not open for further replies.
Top