I’d use the then command after the walking and before the hug. So:
@Character is walk then CHARACTER is hug_animation