blankc3
icon = 'blank.dmi'
layer = 555
var
occupation = 0
Click()
..()
set src in view(usr)
if(src.occupation == 0)
if(turn != usr.pl)
usr << "It's not your turn!"
else
if(usr.pl == "X's")
src.icon = 'x.PNG'
src.occupation = 1
xdiag1 += 1
if(xdiag1 == 3)
win(usr)
xrow3 += 1
if(xrow3 == 3)
win(usr)
xclmn3 += 1
if(xclmn3 == 3)
win(usr)
if(usr.pl == "O's")
src.icon = 'o.PNG'
src.occupation = 1
odiag1 += 1
if(odiag1 == 3)
win(usr)
orow3 += 1
if(orow3 == 3)
win(usr)
oclmn3 += 1
if(oclmn3 == 3)
win(usr)
occupated += 1
if(occupated == 9)
tie()
goto End
Turn()
End
else
usr << "This spot is already occupied."
Problem description:
When a player clicks the block, nothing happens.
Hmmmm. mabie try calling the parent after all the else statement, its just a guess i have some clue on what that is supposed to do but it would be nice if you told us what that is supposed to do