Advertisement
Gavinne

Astrology & Research (work in progress)

Dec 18th, 2014
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.92 KB | None | 0 0
  1.  
  2. var PG-mana 50
  3. var GAF-mana 50
  4. var topics fundamental|fundamental|augmentation|stream|utility|warding
  5. var CollectItem rock
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12. action instant setvariable skyarray %skyarray|$1 when Clouds obscure the sky where the planet (\w+) should appear
  13. action instant setvariable skyarray %skyarray|$1 when Clouds obscure the sky where the (\w+) should appear
  14. action instant setvariable skyarray %skyarray|$1 when (\w+) is unobscured by clouds
  15. action instant setvariable skyarray %skyarray|$1 when of the planet (\w+) has been obscured
  16. action instant setvariable skyarray %skyarray|$1 when the planet (\w+) is blocked by
  17. action instant setvariable skyarray %skyarray|$1 when the (\w+) is blocked by
  18. action instant setvariable skyarray %skyarray|$1 when of (\w+) is blocked by
  19. action instant setvariable skyarray %skyarray|$1 when of the (\w+) has been obscured
  20. action instant setvariable ResDone $1 when (there is still more to learn|Breakthrough)
  21.  
  22. var planets Amlothi|Dawgolesh|Durgaulda|Elanthia|Er'qutra|Estrilda|Ismenia|Merewalda|Morleena|Penhetia|Sidasas|Szeldia|Verena|Yoakena
  23. var constellations Adder|Albatross|Archer|Boar|Brigantine|Cat|Centaur|Cobra|Cow|Coyote|Dolphin|Donkey|Dove|Giant|Goshawk|Hare|Heart|Heron|Jackal|KingSnake|Lion|Magpie|Mongoose|Nightingale|Owl|Ox|Panther|Phoenix|Raccoon|Ram|Raven|Scales|Scorpion|Shardstar|Shark|Shrew|Shrike|Spider|Toad|Triquetra|Unicorn|Viper|Vulture|Weasel|Welkin|Wolf|Wolverine|Wren
  24. var moons Yavash|Katamba|Xibar|Sun
  25.  
  26. eval TopicCount count("%topics","|")
  27. math TopicCount add 1
  28. var track 0
  29. var LastObs nil
  30.  
  31. cast:
  32. echo Casting
  33. gosub verb prep PG %PG-mana
  34. waitfor fully prep
  35. put cast
  36. waitfor You gesture
  37. var skyarray nil
  38. pause
  39. gosub verb observe sky
  40. pause
  41. var junkarray nil|Katamba|Sun|Xibar|Yavash
  42.  
  43. echo The following Constellations and Planets are out ...
  44. echo %skyarray
  45. var skyarray2 %skyarray
  46.  
  47. eval ObsCount count("%skyarray","|")
  48. math ObsCount add 1
  49. var obstrack 1
  50. var redo 0
  51. if %track = %TopicCount then goto done
  52. gosub verb prep gauge flow %GAF-mana
  53. waitfor fully prep
  54. put cast
  55. waitfor You gesture
  56. eval NextTopic element("%topics", %track)
  57. setobs:
  58. var NextObs Nil
  59. if matchre("%skyarray2","%moons") then var NextObs $1
  60. if matchre("%skyarray2","%constellations") then var NextObs $1
  61. if matchre("%skyarray2","%planets") then var NextObs $1
  62. if matchre("%skyarray2","%NextObs") then eval skyarray2 replacere("%skyarray2", "%NextObs", "Nil")
  63.  
  64. #% eval NextObs element("%skyarray", %obstrack)
  65. #% if matchre("%NextObs","%junkarray") then goto setobs2
  66. goto research
  67. setobs2:
  68. math obstrack add 1
  69. goto setobs
  70.  
  71.  
  72.  
  73.  
  74. research:
  75. var ResDone nil
  76. put research %NextTopic 200
  77. pause
  78. pause
  79. goto Observe
  80. Observe:
  81. echo ResDone Obs %ResDone
  82. if "%ResDone" != "nil" then goto ResDone
  83. if "%NextObs" = "%LastObs" then goto collect
  84. put obs %NextObs
  85. match ObserveNext You learned something useful
  86. match ObserveNext You have not pondered your last observation
  87. match ObserveNext You fail to learn anything useful
  88. match Observe see nothing regarding the future
  89. match ObserveNext turns up fruitless
  90. match ObserveNext Clouds obscure the sky where
  91. match ObserveNext you still learned more of the future
  92. match ObserveNext Roundtime
  93. matchwait
  94. ObserveNext:
  95. ObsNext:
  96. math obstrack add 1
  97. if %obstrack = %ObsCount then var skyarray2 %skyarray
  98. var LastObs %NextObs
  99.  
  100. var NextObs Nil
  101. if matchre("%skyarray2","%moons") then var NextObs $1
  102. if matchre("%skyarray2","%constellations") then var NextObs $1
  103. if matchre("%skyarray2","%planets") then gosub var NextObs $1
  104. if matchre("%skyarray2","%NextObs") then eval skyarray2 replace("%skyarray2", "%NextObs", "Nil")
  105. if "%NextObs" = "Nil" then var skyarray2 %skyarray
  106. if "%NextObs" = "Nil" then goto ObsNext
  107.  
  108. #% eval NextObs element("%skyarray", %obstrack)
  109. #% if matchre("%NextObs","%junkarray") then goto ObsNext
  110. goto checkpredict
  111. ResDone:
  112. if "%ResDone" = "Breakthrough" then goto nexttopic
  113. goto research
  114.  
  115. nexttopic:
  116. echo NextTopic
  117. math track add 1
  118. var redo 1
  119. goto checkpredict
  120. researchagain:
  121. goto checkpredict
  122. checkpredict:
  123. put pred stat all
  124. matchre predictready (potent|insightful|powerful|complete) understanding of the celestial influences over (magic|lore|combat|defens|survival)
  125. match donecheck Roundtime
  126. matchwait
  127. donecheck:
  128. echo ResDone %ResDone
  129. if "%ResDone" = "nil" then goto collect
  130. if %redo = 1 then goto cast
  131. goto research
  132. predictready:
  133. var field $2
  134. if "%field" = "combat" then var field offense
  135. gosub verb align %field
  136. gosub verb predict future $charactername
  137. gosub verb predict anal
  138. goto donecheck
  139. resWait:
  140. if "%ResDone" != "nil" then goto ResDone
  141. match cast Breakthrough
  142. match research there is still more to learn
  143. matchwait
  144.  
  145. collect:
  146. if "%ResDone" != "nil" then goto ResDone
  147. gosub verb collect %CollectItem
  148. gosub verb kick pile
  149. put skill perc
  150. waitforre (\d+)/34
  151. if $1 < 33 then goto collect
  152. goto resWait
  153.  
  154. verb:
  155. setvariable verb $0
  156. goto verb.a
  157. verb.p:
  158. pause 0.5
  159. verb.a:
  160. if $webbed = 1 then goto verb.p
  161. if $stunned = 1 then goto verb.p
  162. pause 0.1
  163. put %verb
  164. match verb.p your bindings make it impossible to hide
  165. match verb.p type ahead
  166. match verb.p ...wait
  167. match verb.p still stunned
  168. match verb.p you don't feel like fighting
  169. match verb.p can't do that while entangled in a web
  170. matchre verb.d (turns up fruitless|too close to the sun to be properly viewed|eyes darken to black as a starless night|release an accompaniment of elemental air|begin to chant a mesmerizing cadence designed|into your bundle|You release an accompaniment of elemental fire|you begin to chant the rhythm that heralds|trace a careful sigil|raise your head skyward|You raise your arms skyward|mutter a foul-sounding phrase to yourself|trace a curving sigil|that is already in your inventory|determine anything about this creature|mutter blasphemies to yourself|already dead|mutter incoherently to yourself while preparing|wailing of lost souls accompanies|has already been arranged|blue frost crackles up your arms|you can't arrange|Your heart skips a beat|newfound fluidity of your mind|orange flames blaze between your fingertips|You deftly|You strap|You stuff|With calm movements|You attach|You remove|You can also|Smiling slyly|not ready|You clench your hands|You hold out your arms to either side as|You fade in|You whisper the final word of your spell so that none may notice your effort|too cluttered|Stalk what|You clap|You speak|Arrange what|With rigid movements|You close yours eyes|With tense movements|You let your concentration|You make a holy gesture|cannot be skinned|You find yourself unable to hunt|could not find what|You clap your hands|You easily strap|That area is not bleeding|You take a step back|could not find what|You strain, but cannot focus your mind|You attempt to relax your mind|You get|You put|STOW HELP|You push|think pushing that would have any effect|You move|You're already using the Sight|You have not recovered from your previous use|careful focus, you adjust your eyes to see in shadow as they|You close your eyes|You're not ready to do that again|was just recently mined by someone else|Roundtime|area has already been tended to|work carefully at tending your wound|The spell pattern collapses|You are unable to control|not damaged enough to warrant repair|cannot figure out how to do that|You're not ready to do that|Drink what|What were you referring|You eat|You drink|You stand|Your analysis has revealed no additional resources|You look around, but can't see any place to hide yourself|stalking|following|already hidden|You pick up|You cannot|You gesture|You trace a hasty sigil in the air|is now set at|You detach|You snuff|You sling|You begin chanting|You bend|You are already|Quietly touching|You recite| turns up fruitless|You pour|You sprinkle|already stand|You grind|You feel warmth|already empty|You recall|You struggle|You open|You raise|You reach for its center and forge a magical link to it|You trace an angular sigil|cannot produce|You drop|already been skinned|before you arrange|inherently stealthy endeavor|try being out of sight|cannot muster enough energy to vocalize|cannot collect anything|Setting your|You trace a geometric sigil|don't have a spell prepared|already preparing|already fully prepared|preparing a spell|harnessing any mana|You aren't preparing|You slip|no matter how you arrange it|There isn't any more room|With meditative movements)
  171. matchwait
  172. verb.d:
  173. return
  174.  
  175.  
  176. done:
  177. echo All Done !
  178. put #parse SCRIPT DONE
  179. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement