tested with 4 and 5 characters in party and it worked perfectly every time.
Code: Select all
Command> print(checkparty())
true
Command> print(checkparty())
true
Command> print(checkparty())
true
Command> print(checkparty())
true
Command> print(checkparty())
true
Command> print(checkparty())
false
Command> print(checkparty())
false
Command> print(checkparty())
false
Command> print(checkparty())
false
Command> print(checkparty())
false
Command> print(checkparty())
false
Command> print(checkparty())
false
Command> print(checkparty())
true
Command> print(checkparty())
true
Command>
So the error is when it is updating the pawn information and it is failing in the update??
If it is happening every single time then you should be able to trouble shoot it to find the problem.
you could add a print so it looks like this.
Code: Select all
player:update()
print(i)
partymemberpawn[i]:update()
partymemberpawn[i]:updateBuffs()
that will make it print which number it is updating so the number printed before the error will be the character it errored on.
If it consistantly the same number which means it will be the same character each time, so possibly that character has issue?
So maybe drop that character from party and test again.
Just test using commandline like I did, will be faster.
If work fine without that character then try adding that character back in and kicking another character so it is 3 in party again.