update_dialog(3alleg4)

✨ update_dialog ✨

okay bestie, so this one lives in the Allegro game programming library πŸ’– and it's the low level function that keeps a dialog player ticking along. iykyk πŸŽ€


🌸 SYNOPSIS 🌸

#include <allegro.h>

int update_dialog(DIALOG_PLAYER *player);

πŸ¦‹ DESCRIPTION πŸ¦‹

So you've got a dialog object, right? And it came from init_dialog() (that's the girl who started all this πŸ’…). Well, update_dialog() is the one that refreshes its status β€” like checking in on your bestie to see how she's doing 🫢

It returns TRUE if the dialog is still active, or FALSE if it has terminated. periodt πŸ’€

And here's the part where you have choices, main character energy only πŸ‘‘: once it hands you back FALSE, it is up to you whether you call shutdown_dialog() or just keep on executing. no cap, that's your call to make 🌈

Also?? if you're wondering who asked for the exit β€” like, which object started all the drama πŸ™ˆ β€” you can figure it out from the player->obj field. iconic. ⭐


πŸŽ€ SEE ALSO πŸŽ€


okay that's the whole vibe, bestie πŸ’œ this was Allegro, version 4.4.3, and yeah we're still serving update_dialog(3alleg4) energy β€” slay, go update some dialogs 🌸✨