if tableau[string(sprite(me.spriteNum).startFrame).symbol].cards[string(me.spriteNum).symbol].membername = tableau[string(sprite(me.spriteNum).startFrame).symbol].cards[tableau[string(sprite(me.spriteNum).startFrame).symbol].cards.count].membername then
if sprite(me.spriteNum).visible = 1 then
sprite(me.spriteNum).loc = the mouseLoc
sprite(me.spriteNum).moveableSprite = 1
sprite(me.spriteNum).locZ = 1000
sha = []
end if
else
checkpilepos(me.spriteNum)
end if
end if
end
on mouseUp me
global equal_value, hots, garbage, points, foundation, stock, stockPile, tableau, id, hots2, sha, hotti, equalvalue2
if t <> tableau[string(sprite(posi).startFrame).symbol].cards.count then
i = 0
repeat while i < (tableau[string(sprite(posi).startFrame).symbol].cards.count - t)
i = i + 1
if tableau[string(sprite(posi).startFrame).symbol].cards[t + i].suitcolor <> tableau[string(sprite(posi).startFrame).symbol].cards[t].suitcolor then
exit repeat
end if
if tableau[string(sprite(posi).startFrame).symbol].cards[t + i].rankvalue <> (tableau[string(sprite(posi).startFrame).symbol].cards[t].rankvalue - i) then
if i <> (tableau[string(sprite(posi).startFrame).symbol].cards.count - t) then
next repeat
end if
sprite(posi).locZ = 1000
setemuphigh(proxymoxy, posi)
end repeat
else
sprite(the clickOn).locZ = 1000
sprite(the clickOn).moveableSprite = 1
end if
end
on setemuphigh yoyo, bvc
global sha
sha = yoyo
sprite(bvc).moveableSprite = 1
repeat with s = 1 to yoyo.count
add(the actorList, yoyo[s])
sprite(yoyo[s].spnum).locZ = 1000
end repeat
end
on backCardEQ me
global tableau
if spriteNum <> tableau[string(sprite(me.spriteNum).startFrame).symbol].cards[1].spnum then
if (sprite(spriteNum - 1).member.name <> "backofcard") and (sprite(spriteNum - 1).member.name <> "empty") then
if (getValue(sprite(spriteNum).member.name) = (getValue(sprite(spriteNum - 1).member.name) - 1)) and (getSuitCo(sprite(spriteNum).member.name) <> getSuitCo(sprite(spriteNum - 1).member.name)) then
repeat with shit = spriteNum - 1 to spriteNum - 1
repeat with cakes = 1 to tableau.count
if tableau[cakes].cards.count = 0 then
next repeat
end if
if (getValue(sprite(shit).member.name) = (getValue(sprite(tableau[cakes].cards[tableau[cakes].cards.count].spnum).member.name) - 1)) and (getSuitCo(sprite(shit).member.name) = getSuitCo(sprite(tableau[cakes].cards[tableau[cakes].cards.count].spnum).member.name)) and not getduplicateme(tableau[cakes].cards[tableau[cakes].cards.count].spnum) then
return 1
exit
next repeat
end if
if (getValue(sprite(shit).member.name) = 13) and (getValue(sprite(tableau[cakes].cards[tableau[cakes].cards.count].spnum).member.name) = 1) and (getSuitCo(sprite(shit).member.name) = getSuitCo(sprite(tableau[cakes].cards[tableau[cakes].cards.count].spnum).member.name)) and not getduplicateme(tableau[cakes].cards[tableau[cakes].cards.count].spnum) then
return 1
exit
end if
end repeat
end repeat
else
sendSprite(spriteNum - 1, #backCardEQ)
end if
end if
end if
return 0
end
on getduplicateme me, argu
if (sprite(spriteNum - 1).member.name <> "empty") and (sprite(spriteNum - 1).member.name <> "backofcard") then
if (getValue(sprite(spriteNum - 1).member.name) = getValue(sprite(argu).member.name)) and (getSuitCo(sprite(spriteNum - 1).member.name) = getSuitCo(sprite(argu).member.name)) then