Do dialog
int do_dialog(int player, int player2, int card, int unknown1, int unknown2, char *text, int unknown3);
Shows a dialog with two or more choices to player.
returns: index of selected option, starting from 0.
implemented in: the executable
player: the player answering the dialog
player2, card: card used for the image shown in the dialog
unknown1, unknown2: set to -1
text: Options in format sprintf format: " %s\n %s\n %s" (one " %s" for each option, separated with "\n").
NOTE: Do not include stdio.h for sprintf(). Doing so will cause conflict with manalink.h.
unknown3: set to 1
See Balduvian Horde in cards/red_cip_abilities.c as an example of typical use.
TODO:
- There is some way to disable choices in the dialog. Find out how it works and document it here.
- Text_lines has room for 21 strings. How load_text can handle more than that?
Retrieved from "https://www.slightlymagic.net/mw/index.php?title=Do_dialog&oldid=240"
