obj //IMPORTANT OBJECTS
Move_Cards //Move Cards needs to be fixed.
icon = 'Graphics.dmi'
verbs += /obj/Piece/proc/Move_Spaces
verb/Use(mob/Player/M in view(0))
src = M
usr << "Feature not implemented yet."
mob/owner // This is here so the piece can connect with the mob who owns it
moving // This is so Click can know if the piece is still moving or done.
movecarding = 0 // If the player is using a movecard..
Move_Spaces(spaces) //This handles spaces to move.
moving = 1
usr << "You rolled a [spaces]!"
sleep 10 //Sleep for one second so everyone can look at what they got.
while(spaces-- > 0) //While the spaces are over 0, make sure I'm with my piece.
owner.loc = src.loc //If the user isn't focused, then it doesn't matter because he's with his piece.
sleep(3.3) //If it doesn't sleep, the proc kind of crashes.
moving = 0
movecarding = 0
usr << "Use a card?"
piece.movecarding = 1
Ugh, I can't figure out how to get my Mob's Piece obj to Move_Spaces(icon_state) when I Click on a Move Card in the inventory. As you can see, I've tried adding the Move_Spaces proc as verbs to Move Cards so it could recognize it and move my Piece with the proc, but to no avail. I've tried making a verb and setting the mob in the argument, and I know click is blank, it's like that because well, it didn't work either when I was trying to achieve my goal. I've been stuck on this for awhile sadly, and I'm growing more and more desperate, I don't care if you slap me in the face, just help me out and quick.
-Thanks a lot.