Do dialog
int do_dialog(int player, int player2, int card, int unknown1, int unknown2, char *text, int AI_choice);
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.
AI_choice: this is the option the AI will choose
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.
---I think this is done by putting an underscore before the text. I'll test this - jatill
- Text_lines has room for 21 strings. How load_text can handle more than that?
