hugmeir

Untitled

Oct 29th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. effect mnd = $effect[Absinthe-Minded];
  2.  
  3. void acquire_absinthe_minded() {
  4. if ( mnd.have_effect() >= 10 ) {
  5. return;
  6. }
  7. item abs = $item[tiny bottle of absinthe];
  8. if ( abs.available_amount() < 1 ) {
  9. buy(1, abs);
  10. }
  11. use(1, abs);
  12. }
  13.  
  14. void set_up_choice_adventures() {
  15. # The Rogue Windmill
  16. # La Vie Boheme, Check out the restrooms
  17. set_property("choiceAdventure170", 1);
  18. # Midst the Pallor of the Parlor, Approach the Woman
  19. set_property("choiceAdventure168", 3);
  20. # The Stately Pleasure Dome
  21. # Death is a Boat, Check out the helm
  22. set_property("choiceAdventure166", 3);
  23. }
  24.  
  25. boolean run_one_adventure(location l) {
  26. restore_hp(my_maxhp());
  27. adv1(l, 0, "");
  28. if ($effect[beaten up].have_effect() > 0) {
  29. print("Beaten up, stopping...", "red");
  30. return false;
  31. }
  32. return true;
  33. }
  34.  
  35. boolean acquire_rat_faced() {
  36. if ( mnd.have_effect() < 7 ) {
  37. acquire_absinthe_minded();
  38. }
  39.  
  40. while ( $effect[Rat-Faced].have_effect() < 1 && mnd.have_effect() > 6 ) {
  41. run_one_adventure($location[The Rogue Windmill]);
  42. }
  43.  
  44. return true;
  45. }
  46.  
  47. boolean acquire_an_unusual_fashion_sense() {
  48. if ( mnd.have_effect() < 4 ) {
  49. acquire_absinthe_minded();
  50. }
  51.  
  52. while ( $effect[Unusual Fashion Sense].have_effect() < 1 && mnd.have_effect() > 3 ) {
  53. if ( $effect[Rat-Faced].have_effect() < 1 ) {
  54. if ( !acquire_rat_faced() ) {
  55. print("Could not acquire rat faced", "red");
  56. return false;
  57. }
  58. }
  59. run_one_adventure($location[The Mouldering Mansion]);
  60. }
  61.  
  62. return true;
  63. }
  64.  
  65. void acquire_necklace() {
  66. if ( mnd.have_effect() < 1 ) {
  67. acquire_absinthe_minded();
  68. }
  69. int turns_spent = 0;
  70. while ( mnd.have_effect() > 0 && turns_spent++ < 19 ) {
  71. # Check if we got Unusual Fashion Sense
  72. if ( $effect[Unusual Fashion Sense].have_effect() < 1 ) {
  73. if ( !acquire_an_unusual_fashion_sense() ) {
  74. print("Could not get an unusual fashion sense, sorry!", "red");
  75. return;
  76. }
  77. }
  78. run_one_adventure($location[The Stately Pleasure Dome]);
  79. }
  80. }
  81.  
  82. # Check if we got Rat-Faced
  83. # Check if we got the necklace
  84.  
  85. set_up_choice_adventures();
  86. acquire_necklace();
Advertisement
Add Comment
Please, Sign In to add comment