Advertisement
plirof2

Pacman CSSCGC -show exits event

Feb 26th, 2023 (edited)
569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. PACMAN exits event
  2.  
  3. <event name="test_show_exits">
  4. //println("-----test show exits");
  5. //printname(room01_01.n);
  6.  
  7. // Add a variable show_exits=1 to show exits only when there are no GFX (to avoid screen messing) OR Add it as an EXITS command
  8. tempRoom = player.location;
  9. print ("EXITS (TEST DEGUG):");
  10. if (tempRoom.n < 127)
  11. {
  12. print ("North,");
  13. }
  14. if (tempRoom.s < 127)
  15. {
  16. print("South,");
  17. }
  18. if (tempRoom.e < 127)
  19. {
  20. print ("East,");
  21. }
  22. if (tempRoom.w < 127)
  23. {
  24. print ("West,");
  25. }
  26. println("");
  27.  
  28. </event>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement