How would that be different from putting it in a quickslot? I'm not sure why one would do this.
That said, the code to use that hex string in the 2da could be done it two ways. I recently wrote code to turn that string into an int. Once in that format you can use bit operations to see what slots are set. The other way is simply to use a bunch of string comparisons.
int getCharHexVal(string sHex) {
if (sHex == "1") return 1;
else if (sHex == "2") return 2;
else if (sHex == "3") return 3;
else if (sHex == "4") return 4;
else if (sHex == "5") return 5;
else if (sHex == "6") return 6;
else if (sHex == "7") return 7;
else if (sHex == "8") return 8;
else if (sHex == "9") return 9;
else if (sHex == "A" || sHex == "a") return 10;
else if (sHex == "B" || sHex == "b") return 11;
else if (sHex == "C" || sHex == "c") return 12;
else if (sHex == "D" || sHex == "d") return 13;
else if (sHex == "E" || sHex == "e") return 14;
else if (sHex == "F" || sHex == "f") return 15;
return 0;
}
int HexStringToInt(string sHex) {
sHex = GetStringUpperCase(sHex);
if (GetStringLeft(sHex, 2) == "0X") {
sHex = GetStringRight(sHex, GetStringLength(sHex) -2);
}
int nLoc = GetStringLength(sHex);
if (nLoc < 1 || nLoc >
return 0;
int nRes = 0;
string sRest;
while (nLoc > 0) {
string tmp = GetStringLeft(sRest, 1);
nRes = nRes * 16 + getCharHexVal(tmp);
nLoc --;
sRest = GetStringRight(sRest, nLoc);
}
return nRes;
}
Cheers,
Meaglyn