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.

111 lines
4.4 KiB

  1. #CLASS {missiontimers_sausages} {kill};
  2. #CLASS {missiontimers_sausages} {open};
  3. #NOP =======================
  4. #NOP ===== VARIABLES =====
  5. #NOP =======================
  6. #VARIABLE {missions[sausage]} {
  7. {current_difficulty}{1}
  8. {current_primer}{1}
  9. }
  10. #NOP =======================
  11. #NOP ===== Aliases =====
  12. #NOP =======================
  13. #ALIAS {/sd_prep} {
  14. #send {frimble Sam Slager asks you: So, you want to try filling a sausage order? You'll have four hours to hunt a lobster, gather spices};
  15. };
  16. #ALIAS {/sd_start} {
  17. #send {frimble You have four hours to deliver 100 fresh pepper lobster sausages to Sam Slager.};
  18. };
  19. #ALIAS {/sd_resign} {
  20. #send {frimble Sam Slager says to you: I'll have to take care of this one later.};
  21. };
  22. #ALIAS {/sd_complete} {
  23. #send {frimble Sam Slager gives you 5 Ankh-Morpork ten-dollars, 9 Ankh-Morpork dollars, one Ankh-Morpork half-dollar and 5 Ankh-Morpork pence.};
  24. };
  25. #ALIAS {/sausage_mission_end} {
  26. #unaction {You have four hours to deliver %%1 fresh %%2 sausages to Sam Slager.$};
  27. #unaction {Sam Slager says to you: I'll have to take care of this one later.$};
  28. #unaction {Sam Slager gives you %%1{dollar|pence}%%3$};
  29. };
  30. #ALIAS {/sausage_mission_start} {
  31. #unaction {You have four hours to deliver %%1 fresh %%2 sausages to Sam Slager.$};
  32. #var {missions[sausage][current_difficulty]} {$missions[sausage][current_primer]};
  33. #nop [A mission started, start checking for resignations];
  34. #action {Sam Slager says to you: I'll have to take care of this one later.$} {
  35. /sausage_mission_end;
  36. #format {missions[sausage][retry_list][$GMCP[charinfo][capname]]} {%T};
  37. #line sub variable {
  38. #delay {600} {
  39. #format {sausage_retry_line} {%c[MT] %c*%c %s%c can now ask for a new sausage mission from Sam Slager.} {bold blue} {bold yellow} {bold green}{$GMCP[charinfo][capname]} {bold blue};
  40. #echo {$sausage_retry_line};
  41. #unvar {sausage_retry_line};
  42. #unvar {missions[sausage][retry_list][$GMCP[charinfo][capname]]};
  43. };
  44. };
  45. };
  46. #nop [A mission started, start checking for completions];
  47. #action {Sam Slager gives you %%1{dollar|pence}%%3$} {
  48. /sausage_mission_end;
  49. #if {"$missions[sausage][current_difficulty]" == "1"} {
  50. #format {missions[sausage][active_list][$GMCP[charinfo][capname]][easy]} {%T};
  51. #line sub variable {
  52. #format {delayname} {sausage_easy_%s} {$GMCP[charinfo][capname]};
  53. #delay {$delayname} {
  54. #format {sausage_timer_line} {%c[MT] %c*%c %s can now do another unspiced sausage mission.} {bold blue} {bold yellow} {bold blue} {$GMCP[charinfo][capname]};
  55. #echo {$sausage_timer_line};
  56. #unvar {sausage_timer_line};
  57. #unvar {missions[sausage][active_list][$GMCP[charinfo][capname]][easy]};
  58. } {3600};
  59. };
  60. #unvar {delayname};
  61. };
  62. #else {
  63. #format {missions[sausage][active_list][$GMCP[charinfo][capname]][hard]} {%T};
  64. #line sub variable {
  65. #format {delayname} {sausage_hard_%s} {$GMCP[charinfo][capname]};
  66. #delay {$delayname} {
  67. #format {sausage_timer_line} {%c[MT] %c*%c %s can now do another spiced sausage mission.} {bold blue} {bold yellow} {bold blue} {$GMCP[charinfo][capname]};
  68. #echo {$sausage_timer_line};
  69. #unvar {sausage_timer_line};
  70. #unvar {missions[sausage][active_list][$GMCP[charinfo][capname]][hard]};
  71. } {3600};
  72. };
  73. #unvar {delayname};
  74. };
  75. };
  76. };
  77. #ALIAS {/sausage_mission_prep} {
  78. #action {You have four hours to deliver %%1 fresh %%2 sausages to Sam Slager.$} {
  79. /sausage_mission_start;
  80. };
  81. }
  82. #NOP =======================
  83. #NOP ===== Actions =====
  84. #NOP =======================
  85. #NOP ==[Sausage Missions]==
  86. #ACTION {Sam Slager asks you: So, you want to try filling a sausage order? You'll have four hours to hunt %1, gather %2} {
  87. #var {missions[sausage][current_primer]} {2};
  88. /sausage_mission_prep;
  89. };
  90. #ACTION {Sam Slager asks you: So, you want to try filling a sausage order? You'll have four hours to hunt %1, make %2} {
  91. #var {missions[sausage][current_primer]} {1};
  92. /sausage_mission_prep
  93. };
  94. #CLASS {missiontimers_sausages} {close};