@HateDread
So much thanks for the great tutorial. I think I'm quite understand how FSM works now. But I still have some question about ur tutorial :
Is XML file is only purposed to do a multilanguange configuration? bcos I remove the XML, but the conversation still running smoothly?
I want to make command to exec a SQF after I choose an answer, where must I do put the line to? I think it something work like thiss???
chatter_player.sqf
BIS_convMenu = [];
switch (_sentenceId) do {
case "STR_DIALOG_Chatter_J_0": {
_this kbTell [_from, _topic, "STR_DIALOG_Chatter_P_0"];
};
case "STR_DIALOG_Chatter_J_1": {
_this kbTell [_from, _topic, "STR_DIALOG_Chatter_P_1"];
};
case "STR_DIALOG_Chatter_J_2": {
BIS_convMenu = BIS_convMenu + [["Shut up!", _topic, "STR_DIALOG_Chatter_P_2", []]];
BIS_convMenu = BIS_convMenu + [["Well... yeah.", _topic, "STR_DIALOG_Chatter_P_3", []]];
};
case "STR_DIALOG_Chatter_J_P_2_1": {
_this kbTell [_from, _topic, "STR_DIALOG_Chatter_P_2_1"];
[b] _this execVM "story2.sqf"[/b]
};
case "STR_DIALOG_Chatter_J_P_3_1": {
_this kbTell [_from, _topic, "STR_DIALOG_Chatter_P_3_1"];
[b] _this execVM "story3.sqf" [/b]
};
default {
};
};
// return the sentence list pool
BIS_convMenu
unfortunately the BIKI is so confusing and lack of example :(