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.

79 lines
3.6 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 {/sausage_mission_start} {
  14. #unaction {^You have four hours to deliver %1 fresh %2 sausages to Sam Slager.$};
  15. #var {missions[sausage][current_difficulty]} {$missions[sausage][current_primer]};
  16. #nop [A mission started, start checking for resignations]
  17. #action {^Sam Slager says to %1 I'll have to take care of this one later.$} {
  18. #unaction {^You have four hours to deliver %1 fresh %2 sausages to Sam Slager.$};
  19. #unaction {^Sam Slager says to %1 I'll have to take care of this one later.$};
  20. #unaction {^Sam Slager gives you %1{dollar|pence}%3$};
  21. #line sub variable {
  22. #delay {600} {
  23. #format {sausage_retry_line} {%c[MH] %c*%c %s%c can now try a new sausage mission from Sam Slager.} {bold blue} {bold yellow} {bold green}{$GMCP[charinfo][name]} {bold blue};
  24. #echo {$sausage_retry_line};
  25. #unvar {sausage_retry_line};
  26. };
  27. };
  28. };
  29. #nop [A mission started, start checking for completions]
  30. #action {^Sam Slager gives you %1{dollar|pence}%3$} {
  31. #unaction {^You have four hours to deliver %1 fresh %2 sausages to Sam Slager.$};
  32. #unaction {^Sam Slager says to %1 I'll have to take care of this one later.$};
  33. #unaction {^Sam Slager gives you %1{dollar|pence}%3$};
  34. #if {$missions[sausage][current_difficulty]} {
  35. #format {delayname} {sausage_easy_%s} {$GMCP[charinfo][name]};
  36. #line sub variable {
  37. #delay {$delayname} {
  38. #format {sausage_timer_line} {%c[MH] %c*%c %s last finished an unspiced sausage mission.} {bold blue} {bold yellow} {bold blue} {$GMCP[charinfo][name]};
  39. #echo {$sausage_timer_line};
  40. #unvar {sausage_timer_line};
  41. } {3600};
  42. };
  43. #unvar {delayname};
  44. };
  45. #else {
  46. #line sub variable {
  47. #format {delayname} {sausage_hard_%s} {$GMCP[charinfo][name]};
  48. #delay {$delayname} {
  49. #format {sausage_timer_line} {%c[MH] %c*%c %s last finished a spiced sausage mission.} {bold blue} {bold yellow} {bold blue} {$GMCP[charinfo][name]};
  50. #echo {$sausage_timer_line};
  51. #unvar {sausage_timer_line};
  52. } {3600};
  53. };
  54. #unvar {delayname};
  55. };
  56. };
  57. };
  58. #NOP =======================
  59. #NOP ===== Actions =====
  60. #NOP =======================
  61. #NOP ==[Sausage Missions]==
  62. #ACTION {^Sam Slager asks you: So, you want to try filling a sausage order? You'll have four hours to hunt %1, gather spices to mix into the ground meat, make %2 sausages from it, and deliver them to me. Are you up to it?$} {
  63. #var {missions[sausage][current_primer]} {2};
  64. #action {^You have four hours to deliver %1 fresh %2 sausages to Sam Slager.$} { /sausage_mission_start; };
  65. };
  66. #ACTION {^Sam Slager asks you: So, you want to try filling a sausage order? You'll have four hours to hunt %1, make %2 sausages from it, and deliver them to me. Are you up to it?$} {
  67. #var {missions[sausage][current_primer]} {1};
  68. #action {^You have four hours to deliver %1 fresh %2 sausages to Sam Slager.$} { /sausage_mission_start; };
  69. };
  70. #CLASS {missiontimers_sausages} {close};