Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Bart39> so the way i did it with warehousing was using 2 functions
- <Bart39> TSM.generateMoves
- <Bart39> builds the table of moves
- <Bart39> then calls the function that does the actual move on a timedelay
- <Bart39> TSM.moveItem()
- <j311yf1sh> What's stored in generate moves?
- <Bart39> picks the 1st move in the table - tries to do it and if succesful deletes the move from the table
- <Bart39> then calls TSM.generateMoves again on a timedelay
- <Bart39> uggh 3 functions actually
- <Bart39> TSMAPI:MoveItems is the 1st step - that builds the master table of moves needed
- <Bart39> TSM.generateMoves then checks that table and generates a table of moves still required
- <Bart39> TSM.moveItem() takes the 1st move from the 2nd table - if successful - deletes it from the 1st table
- <Bart39> then returns to TSM.generateMoves
- <Bart39> which rebuilds the table of moves still needed
- <Bart39> so your looping round till nothing left
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement