Advertisement
Dasffion

Origami

Dec 17th, 2018
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. #If including this in another script
  2. # please set %origami, %originstloc, and %singlefold in the parent
  3. # origami == the pattern name (cat, etc...)
  4. # originstloc == the instruction / primer / grimoire location (in my cloak, etc...)
  5. # origcalled == controls how the script ends (return vs. exit)
  6. # singlefold == One complete fold or keep going
  7. var origami $origami
  8. var originstloc $originstloc
  9. var origcalled no
  10. var singlefold no
  11.  
  12. origami.start:
  13. var origexp $origexp
  14. if_1 var origexp %1
  15. # put expe
  16. # waitfor EXP HELP
  17. if $Mechanical_Lore.LearningRate > 30 then goto origami.done
  18. if "$righthand" != "Empty" then
  19. {
  20. var rightitem $righthand
  21. put stow right
  22. }
  23. if "$lefthand" != "Empty" then
  24. {
  25. var leftitem $lefthand
  26. put stow left
  27. }
  28.  
  29. origami.begin:
  30. matchre origami.begin ...wait
  31. matchre origami.pull.envelope You must be either|What were you
  32. matchre origami.study You get a|You are already holding that
  33. put get my paper
  34. matchwait
  35.  
  36. origami.pull.envelope:
  37. match origami.pull.envelope ...wait
  38. matchre origami.new The envelope is|You must be either|afraid that you
  39. match origami.study You get a
  40. match origami.pull.envelope Roundtime
  41. put pull my env
  42. matchwait
  43.  
  44. origami.new:
  45. pause 0.5
  46. put poke my env
  47. waitforre You|What were you referring
  48.  
  49. origami.get.envelope:
  50. match origami.get.envelope ...wait
  51. match origami.new But that is
  52. match origami.outof.envelopes What were you
  53. match origami.wear.envelope You get
  54. put get env from sack on shelf
  55. matchwait
  56.  
  57. origami.outof.envelopes:
  58. echo **** YOU HAVE RUN OUT OF ENVELOPES, GET MORE ****
  59. goto origami.done
  60.  
  61. origami.wear.envelope:
  62. pause 0.5
  63. put wear my env
  64. waitfor You attach
  65. goto origami.begin
  66.  
  67. origami.study:
  68. if "%originstloc" = "grimoire" then goto origami.grim.get
  69. match origami.study ...wait
  70. match origami.start You need to be holding
  71. matchre origami.check.exp You study|You've already started
  72. match origami.study Roundtime
  73. put study my %origami instru in my %originstloc
  74. matchwait
  75.  
  76. origami.grim.get:
  77. put get my origami grimoire
  78. waitforre You get|You are
  79. put open my grimoire
  80. waitforre open your|already open
  81. goto origami.grim.study
  82.  
  83. origami.grim.study:
  84. match origami.grim.study ...wait
  85. match origami.start You need to be holding
  86. matchre origami.grim.exp You study|You've already started
  87. match origami.grim.study Roundtime
  88. put study my %origami instru
  89. matchwait
  90.  
  91. origami.grim.exp:
  92. put close my grimoire
  93. waitforre close your|already closed
  94. put stow my grimoire
  95. waitforre You put|What were you|Stow what
  96. goto origami.check.exp
  97.  
  98. origami.check.exp:
  99. # put expe
  100. # waitfor EXP HELP
  101. if $Mechanical_Lore.LearningRate > %origexp then goto origami.done
  102. else goto origami.fold
  103.  
  104. origami.fold:
  105. match origami.fold ...wait
  106. matchre origami.start You must|what
  107. matchre origami.fold.complete You make the final fold|What were you
  108. match origami.check.exp Roundtime
  109. put fold my paper
  110. matchwait
  111.  
  112. origami.fold.complete:
  113. pause
  114. match origami.fold.complete ...wait
  115. matchre origami.fold.complete.2 You drop|tattered remains|You crumple up
  116. if "$righthandnoun" == "mask" then put drop mask
  117. else put exhale $righthandnoun
  118. matchwait
  119.  
  120. origami.fold.complete.2:
  121. if "%singlefold" = "yes" then return
  122. else goto origami.start
  123.  
  124. origami.done:
  125. pause
  126. if "$righthand" != "Empty" then put stow right
  127. if "$lefthand" != "Empty" then put stow left
  128. pause 0.5
  129. if "%origcalled" = "no" then
  130. {
  131. put glance
  132. put #parse SCRIPT FINISHED
  133. exit
  134. }
  135. else return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement