![]() |
|
|
#1 |
|
Архивный участник
Join Date: Oct 2005
Posts: 175
|
Greetings,
coding some AI i used: myself.boss.hp myself.boss.max_hp and i have no error when i compil, but i would like to know if maybe someone can tell me that syntax is really correct or ignored by compiler, i want my NPC as a Minion checking his master stats, and if he has (master) hp < max_hp/2 then he will heal him... In other part i would like to check NPC and PC levels to decrease some parameter: Code:
in MyParameter = 100;
...
i0 = 1;
if ((myself.sm.level / attacker.level) < 1) {
i0 = (myself.sm.level / attacker.level);
}
...
Result = MyParameter * i0;
Tx for your help, i have some doubts because of myself.sm and myself.sm.level syntax
|
|
|
|
|