void main() { object oPC=GetPCSpeaker(); object oMod=GetModule(); string sTID=GetLocalString(oPC,"sMAI_TID"); string sS; int nV; int nTok; sS=GetLocalString(oPC,"sMAI_VAR"); nV=GetLocalInt(oMod,"n"+sTID+"_"+sS); if (sS=="nCAIMVD") nTok=2; else if (sS=="nCAITRD") nTok=3; else if (sS=="nCAILD1") nTok=4; else if (sS=="nCAILD2") nTok=5; else if (sS=="nCAICPC") nTok=6; else if (sS=="nCAIHU") nTok=7; else if (sS=="nCAIIC") nTok=8; else if (sS=="nCAIRA") nTok=9; else if (sS=="nCAIRM") nTok=10; else if (sS=="nCAIRG") nTok=11; else if (sS=="nCAIPR") nTok=12; SetCustomToken(86000+nTok,IntToString(nV)); }