Jump to content

Digest August

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

Having some problem with my addon please help


Barut
 Share

Recommended Posts

I'm almost done with my addon but for some reason it doesn't show in percentage the wound complexity.

Instead of percentage it shows wear number like 127.5 which is not a real wound complexity.

Can anyone help me fix this. Thank you.

Also how can I add bars to represent health like in RealAgro the bars represent aggro?

EDITED: Im done with my addon thanx for helping

Link to comment
Share on other sites

Quote:
it doesn't show in percentage the wound complexity.

unit.GetWoundsComplexity( unitId ) - Returns numerical value of complexity of wounds

Only in AO 2.0 there was a new function - unit.GetRelativeWoundsComplexity( unitId )
Returns the information on the relative complexity of wounds of a unit in percentage.
Link to comment
Share on other sites

I also noticed that colors for classes is not displayed properly, it only works for warriors, what did I do wrong:

Я обратил внимание на то, что цвета для классов не верно отображаются, это работает только для войнов. что-то делаю не так?

EDITED: Im done with my addon thanx for helping

Link to comment
Share on other sites

Я так устал от написания этого аддона, мои глаза боялт, я не мог увидеть очевидной ошибки:) Спасибо.

Так же, есть ли формула для получения процента unit.GetWoundsComplexity( unitId ) для определенного функция?

Link to comment
Share on other sites

Хорошо, перейдем на русский :)

Quote:
Так же, есть ли формула для получения процента unit.GetWoundsComplexity( unitId ) для определенного функция?

У меня формулы нет, надо подбирать опытным путем

Могу сказать только это:

unit.GetWoundsComplexity(обьект_лечения) = числовое значение мудрости лечащего = 0% сложность ран

При повышении числового значения мудрости лечащего -> сложность ран = 0%

При понижении числового значения мудрости лечащего -> сложность ран увеличивается нелинейно

Link to comment
Share on other sites

Да, давай начнем :)

Как мне добавить панели, чтобы отображались здоровье и деление классов по цветам как в Аггрометре? С чего мне начать? Я не могу найти никакой информации про это. Это трудно?

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