I think I made a pocket dimension in my script...

Post » Thu Jun 21, 2012 6:39 pm

This is not really a question, it is more like an "observation".

Funny thing I just stumbled over:


if (Me.getAnimationVariableint("Isattacking")) && (!ME.getAnimationVariableBool("bBowDrawn")) && Start == 0debug.messagebox("start bow attack")start = 1elseif (Me.getAnimationVariableint("Isattacking")) && (ME.getAnimationVariableBool("bBowDrawn")) && start == 1	 while (Me.getAnimationVariableint("Isattacking")) && (ME.getAnimationVariableBool("bBowDrawn"))	 ;do nothing	 endwhile		start = start + 1		 debug.messagebox(" start = " + start)		   elseif Me.getAnimationVariableint("Isattacking") == 0 && start != 0		  start = 0   debug.messagebox("After bow attack.")endif


So running this in my magic effect script the message ("start bow attack") only fires once and ("After bow attack.") only fires once
but (" start = " + start) fires many times and the number goes up sequentially 2,3,4,5,6 so on.

Logically to me it should only fire once as "2" and then nothing until "After bow attack." resets start to zero ....right?
User avatar
Austin England
 
Posts: 3528
Joined: Thu Oct 11, 2007 7:16 pm

Return to V - Skyrim