She is designed to check 10 times and give up but instead the code was
fixed version
if (tempTotal == 10) {//will try to check for 10 items then give up no infinite looping or lagging the user.
tempTotal = 0;
_root.ServantSpeak("Have a great day!", true);
return;
}
else {
temp = int(Math.random()*52) + 1;
tempTotal = tempTotal + 1;
}
original version
if (tempTotal == 10) {//will try to check for 10 items then give up no infinite looping or lagging the user.
tempTotal = 0;
_root.ServantSpeak("Have a great day!", true);
return;
}
else {
temp = int(Math.random()*52) + 1;
tempTotal == tempTotal + 1;
}
Stupid check in line rather then assign.
I apologize for everyones trouble, but as always I want to emphasize that Mugi is a ton of coding that is untested. She is only a v.2 after all.
Will put an updated mugi .21 here
http://rapidshare.com/files/381741596/Mugi_v.21.rar
No comments:
Post a Comment