dangeon.qsrc 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173
  1. # dangeon
  2. menu_off = 1
  3. $dundincif = {
  4. cls
  5. gs 'stat'
  6. '8809 = 6'
  7. '7111 = 0'
  8. '2172 = 0'
  9. '6666 = 4'
  10. '1111 = 0'
  11. '3213 = 0'
  12. '7662 = 2'
  13. '9312 = 1'
  14. '0000 = 4'
  15. '2222 = 0'
  16. '3333 = 0'
  17. '5555 = 0'
  18. '8193 = 3'
  19. '8096 = 5'
  20. '7777 = 0'
  21. '9999 = 4'
  22. '7756 = 1'
  23. '6855 = 3'
  24. '9881 = 5'
  25. '5531 = 0'
  26. 'Have a smart sense in such tomfoolery, because often clever fool walks.'
  27. act 'Move away from labels':gt $curloc
  28. }
  29. $dundinboch = {
  30. cls
  31. if openstateDM2 = 0:openstateDM2 = 1
  32. gs 'stat'
  33. 'Chimes hear soon reconcile those who quarrel.'
  34. act 'Move away from the barrel':gt $curloc
  35. }
  36. $dundinsvitok = {
  37. cls
  38. svitokRTS = 1
  39. heart += 1
  40. gs 'stat'
  41. 'You picked up the scroll and he crumbled. As if you breathed in the wind. You listen to the feelings and understand that you have something changed. You feel like somewhere, as if in another dimension another beating heart belongs to you, which will die for you in battle.'
  42. act 'Move away':gt $curloc
  43. }
  44. gs 'stat'
  45. if dungeonMark = 0:
  46. '<center><img <<$set_imgh>> src="images/pre/shared/dunpre.jpg"></center>'
  47. 'The man-made cave in depth which shows the door.'
  48. act 'Get out of the dungeon':minut += 5 & gt 'obekt2'
  49. act 'Enter the door':minut += 5 & dungeonMark = 1 & gt $curloc
  50. elseif dungeonMark = 1:
  51. '<center><img <<$set_imgh>> src="images/pre/shared/dunpre1.jpg"></center>'
  52. 'Quite large and deserted room in which there is nothing but a bunch of bones in the corner.'
  53. act 'Leave':minut += 5 & dungeonMark = 0 & gt $curloc
  54. act 'Go deep into':minut += 5 & dungeonMark = 2 & gt $curloc
  55. elseif dungeonMark = 2:
  56. if svitokRTS = 1:exit
  57. '<center><img <<$set_imgh>> src="images/pre/shared/dunpre2.jpg"></center>'
  58. 'Dilapidated gallery in the recesses of which are visible doors to other rooms.'
  59. act 'Exit from the gallery':minut += 5 & dungeonMark = 1 & gt $curloc
  60. act 'Sign in 1yu room':minut += 5 & dungeonMark = 3 & gt $curloc
  61. act 'Sign in 2w room':
  62. cls
  63. if openstateDM = 1:
  64. minut += 5
  65. dungeonMark = 4
  66. gt $curloc
  67. end
  68. if openstateDM = 0:
  69. :markanotherrand
  70. DMN[1] = rand(0, 9)
  71. DMN[2] = rand(0, 9)
  72. DMN[3] = rand(0, 9)
  73. DMN[4] = rand(0, 9)
  74. if DMN[1] = DMN[2] and DMN[1] = DMN[3] and DMN[1] = DMN[4]:jump 'markanotherrand'
  75. if DMN[1] = 8 and DMN[2] = 8 and DMN[3] = 0 and DMN[4] = 9:jump 'markanotherrand'
  76. if DMN[1] = 7 and DMN[2] = 1 and DMN[3] = 1 and DMN[4] = 1:jump 'markanotherrand'
  77. if DMN[1] = 2 and DMN[2] = 1 and DMN[3] = 7 and DMN[4] = 2:jump 'markanotherrand'
  78. if DMN[1] = 3 and DMN[2] = 2 and DMN[3] = 1 and DMN[4] = 3:jump 'markanotherrand'
  79. if DMN[1] = 7 and DMN[2] = 6 and DMN[3] = 6 and DMN[4] = 2:jump 'markanotherrand'
  80. if DMN[1] = 9 and DMN[2] = 3 and DMN[3] = 1 and DMN[4] = 2:jump 'markanotherrand'
  81. if DMN[1] = 8 and DMN[2] = 1 and DMN[3] = 9 and DMN[4] = 3:jump 'markanotherrand'
  82. if DMN[1] = 8 and DMN[2] = 0 and DMN[3] = 9 and DMN[4] = 6:jump 'markanotherrand'
  83. if DMN[1] = 7 and DMN[2] = 7 and DMN[3] = 5 and DMN[4] = 6:jump 'markanotherrand'
  84. if DMN[1] = 6 and DMN[2] = 8 and DMN[3] = 5 and DMN[4] = 5:jump 'markanotherrand'
  85. if DMN[1] = 9 and DMN[2] = 8 and DMN[3] = 8 and DMN[4] = 1:jump 'markanotherrand'
  86. if DMN[1] = 5 and DMN[2] = 5 and DMN[3] = 3 and DMN[4] = 1:jump 'markanotherrand'
  87. i = 0
  88. numdmr = 0
  89. :markdnm
  90. i += 1
  91. if DMN[i] = 0 or DMN[i] = 6 or DMN[i] = 9:
  92. numdmr += 1
  93. elseif DMN[i] = 8:
  94. numdmr += 2
  95. end
  96. if i < 4:jump 'markdnm'
  97. numberOSDM = input("<<DMN[1]>><<DMN[2]>><<DMN[3]>><<DMN[4]>> >= ?")
  98. if numberOSDM < 0 or numberOSDM > 8 or numdmr ! numberOSDM:
  99. msg("Silence, nothing has changed")
  100. gt $curloc
  101. else
  102. openstateDM = 1
  103. msg("In the door that just clicked")
  104. gt $curloc
  105. end
  106. end
  107. end
  108. if openstateDM2 = 2:act 'Sign in third room':minut += 5 & dungeonMark = 5 & gt $curloc
  109. elseif dungeonMark = 3:
  110. '<center><img <<$set_imgh>> src="images/pre/shared/dunpre3.jpg"></center>'
  111. 'The room in which the middle stands a stone dais on which are various dusty bottles.'
  112. 'Scrawled on the wall of what is <a href="exec:dynamic $dundincif">signs</a>.'
  113. act 'Leave the room':minut += 5 & dungeonMark = 2 & gt $curloc
  114. elseif dungeonMark = 4:
  115. '<center><img <<$set_imgh>> src="images/pre/shared/dunpre4.jpg"></center>'
  116. 'Small room in which there are what that <a href="exec:dynamic $dundinboch">Drums</a>.'
  117. act 'Leave the room':minut += 5 & dungeonMark = 2 & gt $curloc
  118. if openstateDM2 = 1:
  119. 'In another barrel you see a device where you can enter numbers.'
  120. act 'Enter the numbers':
  121. cls
  122. numberOSDM2 = input("12, 1, 1, 1, 2, 1, 3, ?, ?, ?, ?")
  123. if numberOSDM2 = rikudootvet:
  124. openstateDM2 = 2
  125. msg("Outside that it rattled.")
  126. else
  127. msg("Silence, nothing has changed")
  128. end
  129. gt $curloc
  130. end
  131. end
  132. elseif dungeonMark = 5:
  133. '<center><img <<$set_imgh>> src="images/pre/shared/dunpre5.jpg"></center>'
  134. 'The room in which the middle, sitting on a stone throne cobwebbed skeleton.'
  135. if svitokRTS = 0:'In the hands of a skeleton lying <a href="exec:dynamic $dundinsvitok">scroll</a>.'
  136. act 'Leave the room':minut += 5 & dungeonMark = 2 & gt $curloc
  137. end
  138. --- dangeon ---------------------------------