hi, this is my first question im very beginner to godot, Im making a simple turn based game similar to hearbeast tutorial.
On extending his tutorial, Now my enemy does only damage in his turn
But i want him to pick random move in his turn such as healing...
This is my damage code in enemy scene :
damage = rng.randi_range(4,10)
BattleUnits.PlayerStats.hp -= damage
Should i create func healhp like that,Even after creating function healphp how can i make my enemy to pick any one move in his turn
This is my attack code in enemy scene
func attack() -> void:
This is my code in battle scene
var enemy = BattleUnits.Enemy
if enemy != null and not enemy.is_queued_for_deletion():
Is using function is a right way OR
Is there any other better solution to determine enemy to pick a random move in his turn... Please I need help