Zmud BMI script

An archive of older topics.
Post Reply
Tristan
Posts: 21
Joined: Tue Mar 30, 2010 3:12 am

Zmud BMI script

Post by Tristan »

Code: Select all

#CLASS {BMI}
#VAR feet {0}
#VAR inches {0}
#VAR newfeet {0}
#VAR weight {0}
#VAR totalinches {0}
#VAR bmi {0}
#TRIGGER {height is %1 feet, %2 inches} {
  #MATH feet @feet+%1
  #math inches @inches+%2
  #math newfeet (12*@feet)
  #math totalinches @newfeet+@inches
  }
#TRIGGER {weight %3 pounds} {
  #MATH weight @weight+%3
  #math bmi (@weight*703)/(@totalinches*@totalinches)
  }
#TRIGGER {You are affected by:} {
  #MATH feet {0}
  #math inches {0}
  #math newfeet {0}
  #math weight {0}
  #math totalinches {0}
}
#TRIGGER {Your height is (%d) feet, (%d) inches, weight (%d) pounds} {#SUB {Your height is %1 feet, %2 inches, weight %3 pounds, BMI @bmi}
}
#CLASS 0
Tristan
Posts: 21
Joined: Tue Mar 30, 2010 3:12 am

Re: Zmud BMI script

Post by Tristan »

just bumping. who has used this btw? its pretty usfull while statting
Post Reply