Code chooses (x,y,1) when it should choose the usr's Z in Developer Help
|
|
Code:
mob strummed verb red() set hidden = 1 if(usr.hitting == 0) usr.hitting = 1 for(var/obj/flashred/K in usr.z) if(K.z == usr.z) for(var/mob/red/L in usr.z) if(L.loc == K.loc||L.y == K.y+1||L.y == K.y-1) usr << "You hit a red note!" usr.score += 5 usr<<sound('B note.wav') usr.hitting = 0 return else usr << "You missed a red note!" usr.score -= 5 usr.hitting = 0 return else usr.hitting = 0 return else return
|
Problem description: My problem is I need a way for say, you get sent to (47,53,6) of 30 worlds that are the exact same, however this verb im using keeps returning instead of doing the code because its selecting flashred out of (x,y,1) instead of (x,y,6) or whatever Z the player is in, how can I fix this?
|