Arrow_Right
name = ""
icon_state = "ArrowRight"
MouseEntered(src)
icon_state = "ArrowRightMove"
MouseExited(src)
icon_state = "ArrowRight"
Click()
for(var/mob/ChooseCharacter/Male/Elf/E in usr.client.screen)
if(E.screen_loc == "5,14")
E.screen_loc = "3,14"
return
if(E.screen_loc == "3,14")
E.screen_loc = "1,14"
return
if(E.screen_loc == "1,14")
E.screen_loc = "5,14"
return
for(var/mob/ChooseCharacter/Male/Human/H in usr.client.screen)
if(H.screen_loc == "3,14")
H.screen_loc = "1,14"
return
if(H.screen_loc == "1,14")
H.screen_loc = "5,14"
return
if(H.screen_loc == "5,14")
H.screen_loc = "3,14"
return
for(var/mob/ChooseCharacter/Male/Taruu/Tar in usr.client.screen)
if(Tar.screen_loc == "1,14")
Tar.screen_loc = "5,14"
return
if(Tar.screen_loc == "5,14")
Tar.screen_loc = "3,14"
return
if(Tar.screen_loc == "3,14")
Tar.screen_loc = "1,14"
return
Problem description:
When I click the arrow, only the Elf(E) moves. I tried taking out the returns, but that causes more chaos, IE one moving at a time, when they should all move, or having to click multiple times before any of them move.