Code:
obj/pieces/proc
check_jump_again()
var/obj/pieces/p
var/turf/t
for(var/d in diagonalstwo)
t = get_step(src,d)
if(!isturf(t)) continue
p = locate(/obj/pieces) in t
if(p&&p.type!=src.type)
t = get_step(t,d)
if(!isturf(t)) continue
p = locate(/obj/pieces) in t
if(p)
continue
return t
return 0
var/list/diagonalstwo = list(NORTHEAST, NORTHWEST)
Problem description:
1) Help me understand the above. Its for a checkers game checking if it has 1 or more moves. It can return t (turf) twice. I thought return stops all proc activity so for loop stops? Yet it doesn't? I didn't write this alone. I got help. I checked and this returns t twice if possible. How did that happen?
2) I want to create a card game so I want to make it so that you can see everyone's cards face down but then when the round ends, everyone's cards are seen faced up. I only know of invisibility and see_invisible procs but I don't know how I can use them for this.
3) How can I have players' names appear below their icons?
For the second question well I believe that you could use the for proc to display the front of the card to the user who's cards they are and the back of the cards to the user(s) who's cards they aren't. Then you could be able to expand on this and use the while proc to change all the users card icons to the front of the cards.
Now for the third question, there are many helpful demos' on how to do this is the developer resources section of the BYOND website. I have looked over this library and it demonstrates what you are looking for in a simple way. You will then be able to take this and build on it and change it in ways to make it however you wish for it to be.
Kind Regards,
King_Ed.