Where is the health attribute located?

Xilefenko
09 Oct 2016, 13:03When you activate the health feature you should have a health attribute located somewhere or am I wrong?
I want to do something like this
If (player.health < 90) then (...)
else (...)
But I dont want to create an extra attribute execpt I have to.

onimike
09 Oct 2016, 14:13Thats actually perfect I just tested using the built in health attribute and here is the code that worked for me
if (player.health < 100) {
IncreaseHealth (10)
}
else {
msg ("Health is full!")
}
Just remember in 'if' statement to use expression and just add this as an expression 'player.health < 100'
Hope it helps
Mike

Xilefenko
09 Oct 2016, 16:25Thanks