so when this is passed before going through the endgame function everything is fine and passes/is set correctly
else if all:
metadata tag "health" of {_p1} > 0
{ai::health::%world of {_p1}%} <= 0
then:
endGame("default", "%{_p1}%", "ai")
stop
BUT AS SOON AS {_p1} goes to the endgame function it can never be parsed as a player???