Nikon Posted February 8, 2011 Share Posted February 8, 2011 Кто-нибудь знает/помнит где найти локализованное название расы моба? Вроде бы когда то было, не могу найти в АПИ unit.GetRace(id) выдает только текстовые перечисления типа "ENUM_BEAST" Или такого никогда не было и придется извращаться с собственным словарем? Quote Link to comment Share on other sites More sharing options...
Loss Posted February 9, 2011 Share Posted February 9, 2011 даю код из своего аддона, так как лень перечислять вручную Code: if info ["04_Раса"] == 0 then race = "Гуманойд" elseif info ["04_Раса"] == 1 then race = "Зверь" elseif info ["04_Раса"] == 2 then race = "Нежить" elseif info ["04_Раса"] == 3 then race = "Гигант" elseif info ["04_Раса"] == 4 then race = "Дракон" elseif info ["04_Раса"] == 5 then race = "Элементаль" elseif info ["04_Раса"] == 6 then race = "Демон" elseif info ["04_Раса"] == 7 then race = "Исчадие" else race = "Неизвестно" end Quote Link to comment Share on other sites More sharing options...
Nikon Posted February 9, 2011 Author Share Posted February 9, 2011 Ясно, значит показалось, что такое есть Loss, то что ты выдал я и назвал "извращаться с собственным словарем" Такая же фигня и с названиями статов персов Quote Link to comment Share on other sites More sharing options...
Loss Posted February 9, 2011 Share Posted February 9, 2011 sysCreatureRace: string (enum "ENUM_...") - раса существа, для игроков всегда "ENUM_HUMANOID" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.