if getProp(getAt(ActiveGrouplist, d), #P) < getProp(getAt(ActiveGrouplist, n), #P) then
TempPlace = TempPlace - 1
else
if getProp(getAt(ActiveGrouplist, d), #P) = getProp(getAt(ActiveGrouplist, n), #P) then
CheckGoals(d, n, TempPlace)
end if
end if
end
on CheckGoals d, n, TempPlace
global ActiveGrouplist, TempPlace
if (getProp(getAt(ActiveGrouplist, d), #GF) - getProp(getAt(ActiveGrouplist, d), #GT)) > (getProp(getAt(ActiveGrouplist, n), #GF) - getProp(getAt(ActiveGrouplist, n), #GT)) then
TempPlace = TempPlace - 1
else
if (getProp(getAt(ActiveGrouplist, d), #GF) - getProp(getAt(ActiveGrouplist, d), #GT)) = (getProp(getAt(ActiveGrouplist, n), #GF) - getProp(getAt(ActiveGrouplist, n), #GT)) then
CheckGoalsVoor(d, n, TempPlace)
end if
end if
end
on CheckGoalsVoor d, n, TempPlace
global ActiveGrouplist, TempPlace
if getProp(getAt(ActiveGrouplist, d), #GF) > getProp(getAt(ActiveGrouplist, n), #GF) then
TempPlace = TempPlace - 1
else
if getProp(getAt(ActiveGrouplist, d), #GF) = getProp(getAt(ActiveGrouplist, n), #GF) then
CheckGAmeAgainst(d, n, TempPlace)
end if
end if
end
on CheckGAmeAgainst d, n, TempPlace
global ActiveGrouplist, ActivePlayList, TempPlace
repeat with g = 1 to 6
if (getPropAt(getAt(ActivePlayList, g).who, 2) = getPropAt(ActiveGrouplist, d)) and (getPropAt(getAt(ActivePlayList, g).who, 1) = getPropAt(ActiveGrouplist, n)) then
if getAt(getAt(ActivePlayList, g).who, 2) > getAt(getAt(ActivePlayList, g).who, 1) then
TempPlace = TempPlace - 1
else
if getAt(getAt(ActivePlayList, g).who, 2) = getAt(getAt(ActivePlayList, g).who, 1) then
if ((getAt(getAt(ActivePlayList, g).who, 1) = 0) and (getAt(getAt(ActivePlayList, g).who, 2) = 0)) or ((getAt(getAt(ActivePlayList, g).who, 1) = EMPTY) and (getAt(getAt(ActivePlayList, g).who, 2) = EMPTY)) then
CheckOutPoints(d, n, TempPlace)
else
TempPlace = TempPlace - 1
end if
end if
end if
next repeat
end if
if (getPropAt(getAt(ActivePlayList, g).who, 1) = getPropAt(ActiveGrouplist, d)) and (getPropAt(getAt(ActivePlayList, g).who, 2) = getPropAt(ActiveGrouplist, n)) then
if getAt(getAt(ActivePlayList, g).who, 1) > getAt(getAt(ActivePlayList, g).who, 2) then
TempPlace = TempPlace - 1
next repeat
end if
if getAt(getAt(ActivePlayList, g).who, 1) = getAt(getAt(ActivePlayList, g).who, 2) then
if ((getAt(getAt(ActivePlayList, g).who, 1) = 0) and (getAt(getAt(ActivePlayList, g).who, 2) = 0)) or ((getAt(getAt(ActivePlayList, g).who, 1) = EMPTY) and (getAt(getAt(ActivePlayList, g).who, 2) = EMPTY)) then
CheckOutPoints(d, n, TempPlace)
next repeat
end if
end if
end if
end repeat
end
on CheckOutPoints d, n, TempPlace
global ActiveGrouplist, ActivePlayList, TempPlace
PlayOne = 0
PlayTwo = 0
repeat with g = 1 to 6
if getPropAt(getAt(ActivePlayList, g).who, 1) = getPropAt(ActiveGrouplist, d) then
if getAt(getAt(ActivePlayList, g).who, 1) <> EMPTY then