Die Namen der Spieler müssen P1, P2 usw. lauten.
Nach der Wahl ist der Wert in der Variablen
_wahl eine 1 oder 2 (für JA oder NEIN).
Code:
_code = format["voteMatch_%1=%2;publicVariable""voteMatch_%1""",player,_wahl];
hint str _code;
call compile _code;
Dieser Code ist für alle Spieler gleich! Er weist der Variablen voteMatch_(FigurName) den _wert zu und überträgt den Wert mit publicVariable übers Netz.
Der Code wird mit call compile ausgeführt.
Die Zeile mit hint ist nur zum Prüfen ob der Code korrekt ist.