View Single Post
Old 26.06.2009, 09:27   #23
Sauron
Guest
 
Posts: n/a
Default AI function GetAbnormalLevel problem

it works as folows: i summon creature, it sees me and cast skill on me, char starts bleeding ), then i walk around the npc, when it see me again it casts skill again, npc cant recognize the skill on me. surely in chat i see my test message "1046529 Level: -1" showing the return of function.

if the creature see you when you don't have the effect of the bleed, then it's ok to return -1, also display the abnormal id.

instead of using see_creature, try with attacked handler for easier testing.

i0 = myself::Skill_GetAbnormalType(1046529);

i1 = myself::GetAbnormalLevel(attacker, myself::Skill_GetAbnormalType(1046529));

myself::Say( "Abnormal: " + i0 + " Level: " + i1 );

Версия форума 2009–2010. Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 06-26-2009, 09:27 AM. Открыть источник.