DreamDancer

Pillow Control - Dragonspeak

Nov 26th, 2011
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.18 KB | None | 0 0
  1. * // enable / disable pillow dropping based on where they are, exclude players
  2. * // main exit to game hall, all hard coded numbers
  3. (0:66) When somebody (bumps into/moves through) wall shape 9 with texture 4,
  4. (1:5) and they successfully moved,
  5. (1:17) and the triggering furre (moved from/is standing at) floor type 542,
  6. (5:600) memorize that the PhoenixSpeak info {drop} about the triggering furre will now be 0
  7.  
  8. (0:66) When somebody (bumps into/moves through) wall shape 9 with texture 4,
  9. (1:5) and they successfully moved,
  10. (1:2) and they move into floor type 542,
  11. (5:600) memorize that the PhoenixSpeak info {drop} about the triggering furre will now be 1
  12.  
  13. * // main area to hallways, all hard coded numbers
  14. (0:66) When somebody (bumps into/moves through) wall shape 8 with texture 1,
  15. (1:5) and they successfully moved,
  16. (1:17) and the triggering furre (moved from/is standing at) floor type 543,
  17. (5:600) memorize that the PhoenixSpeak info {drop} about the triggering furre will now be 0
  18.  
  19. (0:66) When somebody (bumps into/moves through) wall shape 8 with texture 1,
  20. (1:5) and they successfully moved,
  21. (1:2) and they move into floor type 543,
  22. (5:600) memorize that the PhoenixSpeak info {drop} about the triggering furre will now be 1
  23.  
  24. * // access hallways into rooms, excludes the treehouses
  25. * // treehouse toggling done in treehouse teleporting
  26. (0:66) When somebody (bumps into/moves through) wall shape 5 with texture 5,
  27. (1:5) and they successfully moved,
  28. (1:17) and the triggering furre (moved from/is standing at) floor type 545,
  29. (0:66) When somebody (bumps into/moves through) wall shape 5 with texture 5,
  30. (1:5) and they successfully moved,
  31. (1:17) and the triggering furre (moved from/is standing at) floor type 544,
  32. (5:600) memorize that the PhoenixSpeak info {drop} about the triggering furre will now be 0
  33.  
  34. (0:66) When somebody (bumps into/moves through) wall shape 5 with texture 5,
  35. (1:5) and they successfully moved,
  36. (1:2) and they move into floor type 545,
  37. (0:66) When somebody (bumps into/moves through) wall shape 5 with texture 5,
  38. (1:5) and they successfully moved,
  39. (1:2) and they move into floor type 544,
  40. (5:600) memorize that the PhoenixSpeak info {drop} about the triggering furre will now be 1
  41.  
  42. * // main game floor into green zones
  43. (0:66) When somebody (bumps into/moves through) wall shape 9 with texture 4,
  44. (1:5) and they successfully moved,
  45. (1:17) and the triggering furre (moved from/is standing at) floor type 32,
  46. (5:600) memorize that the PhoenixSpeak info {drop} about the triggering furre will now be 0
  47.  
  48. (0:66) When somebody (bumps into/moves through) wall shape 9 with texture 4,
  49. (1:5) and they successfully moved,
  50. (1:2) and they move into floor type 32,
  51. (5:600) memorize that the PhoenixSpeak info {drop} about the triggering furre will now be 1
  52.  
  53.  
  54. * // strange testing required for verifying pillow ownership
  55. * // condition A: they dropped nothing and picked up something
  56. * // condition B: they dropped something and picked up something
  57. * // get drop, check object in paws, if a prize pillow, and their XY does not match, swap back
  58. (0:15) When a furre uses the get/drop command,
  59. (1:90) and the triggering furre's entry code is 0,
  60. * // what did they get and drop?
  61. (5:317) set variable %objectpaw to the number of the object in the triggering furre's paws.
  62. * // need the foot item for place back if needed
  63. (5:350) set variable %footcheck to the X,Y position the triggering furre (moved from/is standing at).
  64. (5:381) set variable %objectfoot to the object type at (%footcheck).
  65.  
  66. * // hack to override below to prevent picking up benches, ...
  67. (0:78) When someone tries to drop an object but fails,
  68. (5:300) set variable %dropfail to the value 1
  69.  
  70. * // now verify ownership
  71. (0:15) When a furre uses the get/drop command,
  72. (1:200) and variable %dropfail is equal to 0
  73. (1:90) and the triggering furre's entry code is 0,
  74. * // ensure that it's not a book either
  75. (1:206) and variable %pillowobject is not equal to #bookobject,
  76. (1:201) and variable %objectpaw is more than #pillowlow,
  77. (1:601) and the PhoenixSpeak info {pillowx} about the triggering furre is not equal to %footcheck.x
  78. (0:15) When a furre uses the get/drop command,
  79. (1:200) and variable %dropfail is equal to 0
  80. (1:90) and the triggering furre's entry code is 0,
  81. * // ensure that it's not a book either
  82. (1:206) and variable %pillowobject is not equal to #bookobject,
  83. (1:201) and variable %objectpaw is more than #pillowlow,
  84. (1:601) and the PhoenixSpeak info {pillowy} about the triggering furre is not equal to %footcheck.y
  85. * // s'not their pillow, swap stuffz
  86. (5:8) play sound 21 to the triggering furre.
  87. (5:41) place object type %objectpaw at (%footcheck).
  88. (5:76) place object type %objectfoot in the triggering furre's paws.
  89.  
  90. * // it is their pillow, clear their XY
  91. (0:15) When a furre uses the get/drop command,
  92. (1:200) and variable %dropfail is equal to 0
  93. (1:90) and the triggering furre's entry code is 0,
  94. (1:201) and variable %objectpaw is more than #pillowlow,
  95. (1:600) and the PhoenixSpeak info {pillowx} about the triggering furre is equal to %footcheck.x
  96. (1:600) and the PhoenixSpeak info {pillowy} about the triggering furre is equal to %footcheck.y
  97. (5:600) memorize that the PhoenixSpeak info {pillowx} about the triggering furre will now be 0
  98. (5:600) memorize that the PhoenixSpeak info {pillowy} about the triggering furre will now be 0
  99.  
  100.  
  101. * // checking for drop zone needs to be after ownership checking
  102. * // put the pillow back into their hands if not in a drop zone
  103. (0:17) When somebody picks up object type #nothing,
  104. (1:200) and variable %dropfail is equal to 0
  105. (1:118) and the triggering furre (didn't move from/isn't standing at) object type #nothing,
  106. (1:90) and the triggering furre's entry code is 0,
  107. (1:600) and the PhoenixSpeak info {drop} about the triggering furre is equal to 0,
  108. (5:350) set variable %pillowposition to the X,Y position the triggering furre (moved from/is standing at).
  109. (5:381) set variable %pillowobject to the object type at (%pillowposition).
  110. (5:76) place object type %pillowobject in the triggering furre's paws.
  111. (5:41) place object type #nothing at (%pillowposition).
  112. (5:8) play sound 21 to the triggering furre.
  113.  
  114. * // dropping a pillow, memorize the location for comparision against non-owners
  115. (0:17) When somebody picks up object type #nothing,
  116. (1:200) and variable %dropfail is equal to 0
  117. (1:118) and the triggering furre (didn't move from/isn't standing at) object type #nothing,
  118. (1:90) and the triggering furre's entry code is 0,
  119. (1:600) and the PhoenixSpeak info {drop} about the triggering furre is equal to 1,
  120. (5:350) set variable %pillowposition to the X,Y position the triggering furre (moved from/is standing at).
  121. (5:381) set variable %pillowobject to the object type at (%pillowposition).
  122.  
  123. * // check that it's not one of the free pillows
  124. (0:17) When somebody picks up object type #nothing,
  125. (1:200) and variable %dropfail is equal to 0
  126. (1:118) and the triggering furre (didn't move from/isn't standing at) object type #nothing,
  127. (1:90) and the triggering furre's entry code is 0,
  128. * // ensure that it's not a book either
  129. (1:206) and variable %pillowobject is not equal to #bookobject,
  130. (1:201) and variable %pillowobject is more than #pillowlow,
  131. (1:600) and the PhoenixSpeak info {drop} about the triggering furre is equal to 1,
  132. (5:600) memorize that the PhoenixSpeak info {pillow} about the triggering furre will now be %pillowobject
  133. (5:600) memorize that the PhoenixSpeak info {pillowx} about the triggering furre will now be %pillowposition.x
  134. (5:600) memorize that the PhoenixSpeak info {pillowy} about the triggering furre will now be %pillowposition.y
  135.  
  136.  
  137. * // leaving the dream, get the pillow location
  138. (0:10) When a furre leaves the dream,
  139. (1:602) and the PhoenixSpeak info {pillow} about the triggering furre is more than 0,
  140. * // get/drop pillow locator, see if they own a pillow
  141. (0:15) When a furre uses the get/drop command,
  142. (1:90) and the triggering furre's entry code is 0,
  143. (1:18) and the triggering furre (moved from/is standing at) object type #nothing,
  144. (1:602) and the PhoenixSpeak info {pillow} about the triggering furre is more than 0,
  145. (5:610) remember the PhoenixSpeak info {pillow} about the triggering furre, and put it in variable %pillowobject
  146. (5:610) remember the PhoenixSpeak info {pillowx} about the triggering furre, and put it in variable %pillowposition.x
  147. (5:610) remember the PhoenixSpeak info {pillowy} about the triggering furre, and put it in variable %pillowposition.y
  148.  
  149.  
  150. * // zapping the pillow when they leave the dream, see if can zap from paws
  151. (0:10) When a furre leaves the dream,
  152. (1:602) and the PhoenixSpeak info {pillow} about the triggering furre is more than 0,
  153. (5:76) place object type #nothing in the triggering furre's paws.
  154. (3:2) at position (%pillowposition) on the map,
  155. (5:5) change object type %pillowobject to type #nothing
  156. (5:600) memorize that the PhoenixSpeak info {pillowx} about the triggering furre will now be 0
  157. (5:600) memorize that the PhoenixSpeak info {pillowy} about the triggering furre will now be 0
  158.  
  159.  
  160. * // next up, get / drop pillow retrieval, they need to be holding nothing as well
  161. (0:15) When a furre uses the get/drop command,
  162. (1:200) and variable %dropfail is equal to 0
  163. (1:90) and the triggering furre's entry code is 0,
  164. (1:18) and the triggering furre (moved from/is standing at) object type #nothing,
  165. (1:1002) and the triggering furre is holding item #nothing in their paws,
  166. (1:602) and the PhoenixSpeak info {pillow} about the triggering furre is more than 0,
  167. * // valid owner of a pillow
  168. (5:76) place object type %pillowobject in the triggering furre's paws.
  169. (5:600) memorize that the PhoenixSpeak info {pillowx} about the triggering furre will now be 0
  170. (5:600) memorize that the PhoenixSpeak info {pillowy} about the triggering furre will now be 0
  171. (3:2) at position (%pillowposition) on the map,
  172. (5:5) change object type %pillowobject to type #nothing
  173.  
  174.  
  175. * // hack to reset the fail to prevent picking up benches, ...
  176. (0:78) When someone tries to drop an object but fails,
  177. (5:300) set variable %dropfail to the value 0
  178.  
  179.  
Advertisement
Add Comment
Please, Sign In to add comment