10-31-2013, 08:07 PM
You can do something like this:
Global Variable:
When making GUI:
This will return you the skill id of the selected pet
That way people would be able to just select the desired pet :)
Global Variable:
Code:
ModuleName.SkillLookup = {
["SummonName"] = skillid,
["SummonName"] = skillid,
["SummonName"] = skillid
}
When making GUI:
Code:
GUI_NewComboBox("ModuleName","BoxText","VariableName", "MenuName", "")
local listofskills = ""
for i,e in pairs(ModuleName.SkillLookup) do
listofskills = listofskills ..","..i
end
VariableName_listitems = listofskills
This will return you the skill id of the selected pet
Code:
ModuleName.SkillLookup[VariableName]
That way people would be able to just select the desired pet :)