check victim health
Hi , i want to check if current victim health (gondor health) is lower than (main health / 2) and also (/3) , however as you can see below i made it work , but it's not efficient , hope that you give me an efficient way of checking victim health.
Code:
Code:
Code:
|
Re: check victim health
whats is the problem exactly?
atleast add some client_prints debug by yourself to see whats called what is not? |
Re: check victim health
ok , let's say gondar ( a hero ) has 1800 hp on new round. i want to check if it's health becomes lower than 900 , then i will add some effects and if it becomes lower than 600 i will disable that effects and will add new effects.
basically this is how i'm checking : Code:
Code:
so both sentence becomes true when gondar health reaches 599 and effects will be activated. problem is both sentence will be excuted while the health is under (main health /3 ). and 1 of them is unnnessesary. Code:
|
Re: check victim health
I'm tired and sleepy, but the logic would be this, maybe some adjustment is needed.
PHP Code:
|
Re: check victim health
Let say
PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 02:53. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.