Page 1 of 1

Zmud BMI script

Posted: Sat Jul 31, 2010 11:27 pm
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

Re: Zmud BMI script

Posted: Sun Aug 22, 2010 2:27 am
by Tristan
just bumping. who has used this btw? its pretty usfull while statting