Jump to content

Digest October

We talk about what was done and updated in the past month. We help keep abreast of events.

Read more

Servers monitoring and the Addons Editor

We present you two legends. All dreams come true.

Servers monitoring The Addons Editor

Game tooltips

Tooltips provide a way for 3rd party fansites and extensions to display detailed information on mouseover.

Read more

Раса моба


Nikon
 Share

Recommended Posts

Кто-нибудь знает/помнит где найти локализованное название расы моба?

Вроде бы когда то было, не могу найти в АПИ

unit.GetRace(id) выдает только текстовые перечисления типа "ENUM_BEAST"

Или такого никогда не было и придется извращаться с собственным словарем?

jRdKBXisd7HnRLz.gif
Link to comment
Share on other sites

даю код из своего аддона, так как лень перечислять вручную

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

Link to comment
Share on other sites

Ясно, значит показалось, что такое есть :(

Loss, то что ты выдал я и назвал "извращаться с собственным словарем"

Такая же фигня и с названиями статов персов

Link to comment
Share on other sites

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

By using our site you agree to the Terms of Use