Solution:
the while loop was not being called after the technique was performed. to counter this, make a seperate while proc and call the jutsu from that.
ID:140197
![]() Mar 31 2010, 1:04 pm (Edited on Apr 4 2010, 1:33 am)
|
|
Format:
while( E ) Statement If E is true (non-zero) execute Statement. Continue testing E and doing the while block until E becomes false (zero). Statement may be a block of code or a single statement. Example: var/i = 3 while(i) world << i-- This outputs: 3 2 1 |
maxcooldown is the actual cooldown of the jutsu. preview:
Bunshin cooldown=20 maxcooldown=20 the while is meant to reduce the cooldown by 1 per second. maxcooldown is realy just there to reset the cooldown when the move is done again. |
if you move your test to right before where you excute the while loop to check src.cooldown is being set
In case it has been changed elsewhere or assigned to a different type you can check its giving a value correctly. Just checking, This proc is under Bunshin? |
while works by replaying the code when the condition is true (any non zero/non null entry)