OOOOOK! so i am trying to make a cog for a puzzle...thing, for a level i am doing over at the jkhub.
everything works fine and dandy except for the last part! the part at the end that is commented out with the forward slashes (//) stops the script from running at all... any thoughts??
everything works fine and dandy except for the last part! the part at the end that is commented out with the forward slashes (//) stops the script from running at all... any thoughts??
Code:
symbols message activate thing lever0 linkid=0 thing lever1 linkid=1 thing lever2 linkid=2 thing tile0 nolink thing tile1 nolink thing tile2 nolink thing door0 flex movespeed=2.0 flex waittime=2.0 int currentstop=0 local int currentstop1=0 local int correntstop2=0 local end # ======================================================================================== code activate: if (GetSenderId(GetSenderRef()) == 0) { MoveToFrame(lever0, 1, movespeed); Sleep(waittime); MoveToFrame(lever0, 0, movespeed); currentstop = currentstop+1; if (currentstop == 3) { currentstop = 0; } MoveToFrame(tile0, currentstop, movespeed); } if (GetSenderId(GetSenderRef()) == 1) { MoveToFrame(lever1, 1, movespeed); Sleep(waittime); MoveToFrame(lever1, 0, movespeed); currentstop1 = currentstop1+1; if (currentstop1 == 3) { currentstop1 = 0; } MoveToFrame(tile1, currentstop1, movespeed); } if (GetSenderId(GetSenderRef()) == 2) { MoveToFrame(lever2, 1, movespeed); Sleep(waittime); MoveToFrame(lever2, 0, movespeed); currentstop2 = currentstop2+1; if (currentstop2 == 3) { currentstop2 = 0; } MoveToFrame(tile2, currentstop2, movespeed); } //if (currentstop == 0) && //(currentstop1 == 2) && //(currentstop2 == 1) { //MoveToFrame(door0, 1, movespeed); //} return; end
Welcome to the douchebag club. We'd give you some cookies, but some douche ate all of them. -Rob