TinTin++ Configs for DiscworldMUD
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.

71 lines
1.7 KiB

6 years ago
  1. #CLASS {tpamonitor} {kill};
  2. #CLASS {tpamonitor} {open};
  3. #nop ### Turn TPA indicator on ###
  4. #action {^ * You are surrounded by a magical impact shield.$} {
  5. #var {tpa_status} {1};
  6. #var {tpa_color} {invisible};
  7. update_prompt;
  8. }
  9. #action {^ * You are surrounded by a %+ magical impact shield.$}
  10. {
  11. #var {tpa_status} {1};
  12. #var {tpa_color} {%1};
  13. update_prompt;
  14. }
  15. #action {^With a noise that sounds like "Plink!", everything around you flashes red for a moment.$} {
  16. #var {tpa_status} {1};
  17. #var {tpa_color} {invisible};
  18. #format {tpa_start} {%T};
  19. update_prompt;
  20. }
  21. #nop ### Turn TPA indicator off ###
  22. #action {^There is a sudden white flash. Your magical shield has broken.$} {
  23. #line {log} {$chat_file};
  24. #var {tpa_status} {0};
  25. #format {tpa_end} {%T};
  26. /break_tpa
  27. }
  28. #nop ### Track TPA colors ###
  29. #action {^As your shield absorbs the impact, it becomes visible as a %1 glow.$}
  30. {
  31. #var {tpa_color} {%1};
  32. update_prompt;
  33. }
  34. #action {^As your shield absorbs the impact, its glow changes from a %1 to a %2.$}
  35. {
  36. #var {tpa_color} {%2};
  37. update_prompt;
  38. }
  39. #action {^Your shield changes from a %1 to a %2.$}
  40. {
  41. #var {tpa_color} {%2};
  42. update_prompt;
  43. }
  44. #action {^Your shield stops glowing a %1 and lapses back into invisibility.$}
  45. {
  46. #var {tpa_color} {invisible};
  47. update_prompt;
  48. }
  49. #nop ### When TPA breaks show some info ###
  50. #alias {/break_tpa} {
  51. #showme {\a\a};
  52. #if {&{tpa_start}} {
  53. #math {tpa_dur} { (($tpa_end - $tpa_start) + 0.5) / 60 };
  54. #echo {<168>*** TPA broken! (lasted for $tpa_dur minutes) ***<099>};
  55. }
  56. #unvar {tpa_start};
  57. #unvar {tpa_end};
  58. update_prompt;
  59. }
  60. #var {tpa_status} {0};
  61. #CLASS {tpamonitor} {close};