home *** CD-ROM | disk | FTP | other *** search
/ PC Gamer 5.7 / 2000-04_Disc_5.7.bin / Majesty / data1.cab / Program_and_Support_Files / data / Buildings.txt < prev    next >
Text File  |  1999-11-08  |  5KB  |  186 lines

  1. # Buildings.txt --> USES POSTFIX NOTATION
  2. #
  3. # This contains a list of the dependencies between buildings
  4. # based upon their CYIDs and the Boolean operators '&&', '||',
  5. # and 'NOT' 
  6. #
  7. # Example 1:    ABQ1 : ABJ2 ABJ3 ||
  8. #
  9. #       ABQ1    is the building's id (namely the Temple to Fervus), it is
  10. #               folowed by a colon seperating it from its dependencies
  11. #               (leave blank if none)
  12. #
  13. #       ABJ2    this means Palace level 2
  14. #       ABJ3    this means Palace level 3
  15. #
  16. #       ||      this is the OR symbol, meaning that if either of
  17. #               the previous two symbols is true, they are replaced
  18. #               with a TRUE
  19. #
  20. #       So, if either the palace level 2 or level 3 exists, then
  21. #       the Temple to Fervus is available to build.
  22. #
  23. #
  24. # Example 2:    ABc1 : ABJ2 ABJ3 || ABH1 ABH2 || ABH3 || ABF1 && &&
  25. #
  26. #       This is describes the dependencies for the Elven Bungalow (ABc1).
  27. #       As for the Temple to Fervus in example 1, the second and third
  28. #       level palace must exist. Next, the Marketplace 1st and 2nd levels
  29. #       are checked for (ABH1, ABH2), and the result of that ORed with
  30. #       the 3rd level of the marketplace (ABH3). Then, the Inn's (ABF1)
  31. #       existance is ANDed with the result of the marketplaces's ORs.
  32. #       Finally, this result is ANDed with the original OR between the
  33. #       palaces, for our intended result:
  34. #
  35. #       "Elven Bungalow requires lvl 2 palace or up and marketplace and inn"
  36. #       
  37. #
  38. # ------------------------- Building list follows -------------------------
  39. #
  40. # Ballista tower requires Dwarven settlement
  41. ABB1 : ABb1
  42. #
  43. # Blacksmith 1
  44. ABC1
  45. #
  46. # Blacksmith 2
  47. ABC2
  48. #
  49. # Blacksmith 3
  50. ABC3
  51. #
  52. # Fairgrounds requires lvl 3 palace
  53. ABD1 : ABJ3
  54. #
  55. # Guardhouse
  56. ABE1
  57. #
  58. # Inn
  59. ABF1
  60. #
  61. # Library requires wizard's guild
  62. ABG1 : ABY1 ABY2 || ABY3 ||
  63. #
  64. # Marketplace 1 : requires a palace
  65. ABH1 : ABJ1 ABJ2 NOT NOT ABJ3 NOT NOT || ||
  66. #
  67. # Marketplace 2 requires lvl 2 palace or up
  68. ABH2 : ABJ1 ABJ2 NOT NOT ABJ3 NOT NOT || ||
  69. #
  70. # Marketplace 3 requires lvl 3 palace or up
  71. ABH3 : ABJ1 ABJ2 NOT NOT ABJ3 NOT NOT || ||
  72. #
  73. # Palace 1
  74. ABJ1
  75. #
  76. # Palace 2
  77. ABJ2
  78. #
  79. # Palace 3
  80. ABJ3
  81. #
  82. # Trading Post requires Marketplace
  83. ABL1 : ABH1 ABH2 || ABH3 ||
  84. #
  85. # Wizards Tower requires Wizards Guild
  86. ABM1 : ABY1 ABY2 NOT NOT || ABY3 NOT NOT ||
  87. #
  88. # Sewers
  89. ABN1
  90. #
  91. # Temple to Agrela requires no fervus, no krypta, no krolm
  92. ABO1 : ABQ1 NOT ABQ2 NOT && ABQ3 NOT && ABT1 NOT ABT2 NOT && ABT3 NOT && && ABS1 NOT && ABJ2 ABJ3 NOT NOT || &&
  93. #
  94. # Temple to Agrela 2
  95. ABO2
  96. #
  97. # Temple to Agrela 3
  98. ABO3
  99. #
  100. # Temple to Dauros requires lvl 2 palace or up, no fervus, no krypta, no krolm
  101. # note: the ABJ3 NOT NOT means exists, ignoring if it is completed
  102. ABP1 : ABJ2 ABJ3 NOT NOT || ABQ1 NOT ABQ2 NOT && ABQ3 NOT && ABT1 NOT ABT2 NOT && ABT3 NOT && && ABS1 NOT && &&
  103. #
  104. # Temple to Dauros 2
  105. ABP2
  106. #
  107. # Temple to Dauros 3
  108. ABP3
  109. #
  110. # Temple to Fervus requires lvl 2 palace or up, no agrela, no dauros, no krolm
  111. ABQ1 : ABJ2 ABJ3 NOT NOT || ABO1 NOT ABO2 NOT && ABO3 NOT && && ABP1 NOT ABP2 NOT && ABP3 NOT && && ABS1 NOT &&
  112. #
  113. # Temple to Fervus 2
  114. ABQ2
  115. #
  116. # Temple to Fervus 3
  117. ABQ3
  118. #
  119. # Temple to Helia requires lvl 3 palace, no lunord, no Krolm
  120. ABR1 : ABJ3 ABU1 NOT ABU2 NOT && && ABS1 NOT &&
  121. #
  122. # Temple to Helia 2
  123. ABR2
  124. #
  125. # Temple to Krolm reuires no other temples to be present
  126. ABS1 : ABO1 NOT ABO2 NOT ABO3 NOT && && ABP1 NOT ABP2 NOT ABP3 NOT && && && ABQ1 NOT ABQ2 NOT ABQ3 NOT && && && ABR1 NOT ABR2 NOT && && ABT1 NOT ABT2 NOT ABT3 NOT && && && ABU1 NOT ABU2 NOT && && ABJ2 ABJ3 NOT NOT || &&
  127. #
  128. # Temple to Krypta can't be present with any agrela, any dauros or Krolm
  129. ABT1 : ABO1 NOT ABO2 NOT && ABO3 NOT && ABP1 NOT ABP2 NOT && ABP3 NOT && && ABS1 NOT && ABJ2 ABJ3 NOT NOT || && 
  130. #
  131. # Temple to Krypta 2
  132. ABT2
  133. #
  134. # Temple to Krypta 3
  135. ABT3
  136. #
  137. # Temple to Lunord requires lvl 3 palace, no Helia, no Krolm
  138. ABU1 : ABJ3 ABR1 NOT ABR2 NOT && && ABS1 NOT &&
  139. #
  140. # Temple to Lunord 2
  141. ABU2
  142. #
  143. # Warriors Guild
  144. ABV1
  145. #
  146. # Rangers Guild
  147. ABW1
  148. #
  149. # Rogues Guild
  150. ABX1
  151. #
  152. # Rogues Guild 2
  153. ABX2
  154. #
  155. # Wizards Guild // lvl 2 palace and up
  156. ABY1 : ABJ2 ABJ3 NOT NOT ||
  157. #
  158. # Wizards Guild 2
  159. ABY2
  160. #
  161. # Wizards Guild 3
  162. ABY3
  163. #
  164. # Brothel
  165. ABa1
  166. #
  167. # Dwarven Settlement requires Palace lvl 2 or up and lvl 3 blacksmith and no elves or gnomes
  168. ABb1 : ABJ2 ABJ3 NOT NOT || ABC3 && ABc1 NOT && ABf1 NOT &&
  169. #
  170. # Elven Bungalow requires lvl 2 palace or up and marketplace and inn, and no dwarves or gnomes
  171. ABc1 : ABJ2 ABJ3 NOT NOT || ABH1 ABH2 NOT NOT || ABH3 NOT NOT || ABF1 && && ABb1 NOT && ABf1 NOT &&
  172. #
  173. # Gambling Hall
  174. ABd1
  175. #
  176. # General Housing
  177. ABe1
  178. #
  179. # Gnome Hovel requires palace level 1, no elves, no dwarves, no Gnomes
  180. ABf1 : ABJ1 ABb1 NOT && ABc1 NOT && ABf1 NOT &&
  181.  
  182. # royal Gardens, requires lvl 3 palace
  183. ABh1 : ABJ3
  184.  
  185. # Statute, requires lvl 2 palace or better
  186. ABk1 : ABJ2 ABJ3 NOT NOT ||