Make a balloon wait until completion with a script call?

Banjo

Veteran
Veteran
Joined
Jan 4, 2013
Messages
92
Reaction score
19
First Language
English
Primarily Uses
RMVXA
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!
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
Add this
Code:
Fiber.yield while $game_map.events[$game_variables[571]].balloon_id > 0
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,981
Members
137,563
Latest member
cexojow
Top