hey there. i have the two variables in the above mentioned .js file and would like to pull one to correlate to the other. the first one, i guess people are familiar with is wounds. i am happy to use to the if wounds = this then wounds.text = ‘really hurt’ but i would like it to instead be based on another variable. health. health is a percentage stat and so varies from 0 to 100. so what i would rather is something like this:
*temp wound_text
*if health < = 95
–*set wound_text “unscathed.”
–*goto chart
*elseif health < = 75
–*set wound_text “minor scratches and bruises. aching.”
–*goto chart
*elseif health < = 60
–*set wound_text “infected. effects manageable.”
–*goto chart
*elseif health < = 20
–*set wound_text “infected. some effects manageable.”
–*goto chart
*else
–*set wound_text “infected. little hope.”
*label chart
is there a way of pulling the variable ‘health’ to correlate to this? the reason being because i want the wounds to be more fluid and slightly more detailed. thank you for taking the time to read this.