TinTin++ setup for Aardwolf MUD
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
1.1 KiB

  1. #CLASS {map} KILL
  2. #CLASS {map} OPEN
  3. #ACTION {^<MAPEND>$}
  4. {
  5. #line gag;
  6. #variable getmap 0;
  7. #if {$autoscan}
  8. {
  9. scan;
  10. };
  11. }
  12. {1}
  13. #alias {autoscan}
  14. {
  15. #IF {"%0" != ""}
  16. {
  17. #show <069>Reminder: autoscan doesn't take arguments.<099>
  18. };
  19. #if {$autoscan == 0}
  20. {
  21. #var autoscan 1;
  22. #show <069>Autoscan: <129>ON<099>
  23. };
  24. #ELSEIF {$autoscan == 1}
  25. {
  26. #var autoscan 0;
  27. #show <069>Autoscan: <099>Off
  28. };
  29. #ELSE
  30. {
  31. #show <069>Something went wrong with the autoscan alias in map.tt<099>
  32. }
  33. }
  34. #ACTION {^<MAPSTART>$}
  35. {
  36. #variable getmap 1;
  37. #line gag
  38. }
  39. {1}
  40. #action {^\{roomchars\}}
  41. {
  42. #var getchar 1;
  43. #line gag;
  44. #line log {$dir/chars} {------<179>[ $GMCP[ROOM][INFO][name] ]<099>}
  45. }
  46. #action {^\{/roomchars\}}
  47. {
  48. #var getchar 0;
  49. #line gag;
  50. #line log {$dir/chars} {\n}
  51. }
  52. #ACTION {~%0}
  53. {
  54. #if {$getmap}
  55. {
  56. #line log {$dir/minimap} {%0};
  57. #if {!$showmap}
  58. {
  59. #line gag
  60. }
  61. };
  62. #elseif {$getchar}
  63. {
  64. #line log {$dir/chars} {%0}
  65. }
  66. }
  67. {9999}
  68. #CLASS {map} CLOSE