• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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