troptrop

Bot Code

May 8th, 2022
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. KR Poliwhirl
  2. GscMap mtMortar = dummyGb.Maps["SilverCaveOutside"];
  3. GscMap route17 = dummyGb.Maps["Route17"];
  4.  
  5.  
  6. GscTile startTile = mtMortar[23, 28];
  7.  
  8.  
  9. for(int i = 0; i < 7 ; i++){
  10. for(int j = 0; j <= 1; j++){
  11. mtMortar[16 + i, 28 + j].AddEdge(0, new Edge<GscTile>(){Action = Action.Right, NextTile = mtMortar[17 + i, 28 + j], NextEdgeset = 0, Cost = 10 });
  12. mtMortar[16 + i, 28 + j].AddEdge(0, new Edge<GscTile>(){Action = Action.Right | Action.A, NextTile = mtMortar[17 + i, 28 + j], NextEdgeset = 0, Cost = 10 });
  13. mtMortar[17 + i, 28 + j].AddEdge(0, new Edge<GscTile>(){Action = Action.Left, NextTile = mtMortar[16 + i, 28 + j], NextEdgeset = 0, Cost = 10 });
  14. mtMortar[17 + i, 28 + j].AddEdge(0, new Edge<GscTile>(){Action = Action.Left | Action.A, NextTile = mtMortar[16 + i, 28 + j], NextEdgeset = 0, Cost = 10 });
  15. }
  16. }
  17. for(int i = 0; i <= 7; i++){
  18. for(int j = 0; j < 1; j++){
  19. mtMortar[16 + i, 28 + j].AddEdge(0, new Edge<GscTile>(){Action = Action.Down, NextTile = mtMortar[16 + i, 29 + j], NextEdgeset = 0, Cost = 10 });
  20. mtMortar[16 + i, 28 + j].AddEdge(0, new Edge<GscTile>(){Action = Action.Down | Action.A, NextTile = mtMortar[16 + i, 29 + j], NextEdgeset = 0, Cost = 10 });
  21. mtMortar[16 + i, 29 + j].AddEdge(0, new Edge<GscTile>(){Action = Action.Up, NextTile = mtMortar[16 + i, 28 + j], NextEdgeset = 0, Cost = 10 });
  22. mtMortar[16 + i, 29 + j].AddEdge(0, new Edge<GscTile>(){Action = Action.Up | Action.A, NextTile = mtMortar[16 + i, 28 + j], NextEdgeset = 0, Cost = 10 });
  23. }
  24. }
  25. Pathfinding.DebugDrawEdges(mtMortar, 0);
  26.  
  27.  
Advertisement
Add Comment
Please, Sign In to add comment