Just scanning the code while in a meeting at work (lol?), it looks like the following code can be copied and modified to add the other BGs.
Code:
if (b == "wsg") then
DT_AddWord(DT_WARSONG,c);
end
I would think AB would be added like this:
Code:
elseif (b == "ab") then
DT_AddWord(DT_BASIN,c);
end
So to make the entire thing work I would replace
Code:
elseif (a == "add") then
if (b == "wsg") then
DT_AddWord(DT_WARSONG,c);
end
elseif (a == "remove") then
if (b == "wsg") then
DT_RemoveWord(DT_WARSONG, c);
end
with
Code:
elseif (a == "add") then
if (b == "wsg") then
DT_AddWord(DT_WARSONG,c);
elseif (b == "ab") then
DT_AddWord(DT_BASIN,c);
elseif (b == "av") then
DT_AddWord(DT_VALLEY,c);
elseif (b == "eots") then
DT_AddWord(DT_EOTS,c);
end
elseif (a == "remove") then
if (b == "wsg") then
DT_RemoveWord(DT_WARSONG, c);
elseif (b == "ab") then
DT_RemoveWord(DT_BASIN, c);
elseif (b == "av") then
DT_RemoveWord(DT_VALLEY, c);
elseif (b == "eots") then
DT_RemoveWord(DT_EOTS, c);
end
**** Disclaimer: This is all hypothetical and not tested at all. Please use at your own risk.
Connect With Us