Make a balloon wait until completion with a script call?

Using the normal Event option, you can make the game wait until a balloon completes its animation, but I need to use a script call for this since I'm using a variable for the event id. This works fine, but the game doesn't pause for the balloon to finish and I can't figure out how to make it do so using this scripting method.

My script snippet I'm using is:
$game_map.events[$game_variables[571]].balloon_id = 1

Can someone please tell me what I need to add to this script make the game wait for the balloon to finish animating?

Thanks!
Add this
Code:
Fiber.yield while $game_map.events[$game_variables[571]].balloon_id > 0
Add this
Code:
Fiber.yield while $game_map.events[$game_variables[571]].balloon_id > 0
Thanks so much! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/make-a-balloon-wait-until-completion-with-a-script-call.115707/