> Tutorial
In the previous chapter, we saw how to boost ourselves, give ourselves a shield and heal ourselves. You've probably noticed that boosting and protecting yourself is always useful, but healing is pointless when your life is already at its maximum.
To avoid casting a heal and wasting TP , we'll use a condition, which is written like this:
This code casts Bandage only if we're hurt, that is, when our current life getLife() is less than ` Which code(s) are valid?
if getLife() < getTotalLife() { useChip(CHIP_BANDAGE) } if (getLife() < getTotalLife() { useChip(CHIP_BANDAGE) }) if (getLife() < getTotalLife()) { useChip(CHIP_BANDAGE) } else { useChip(CHIP_HELMET) } if { getLife() < getTotalLife() } { useChip(CHIP_BANDAGE) }
Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.