Advertisement
SpoOkyMagician

SN's

Sep 11th, 2024 (edited)
27
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.70 KB | None | 0 0
  1. ; sn
  2.  
  3. (defconst sn-food-modifier-percentage 156)
  4. (defconst sn-gold-modifier-percentage 159)
  5. (defconst sn-special-attack-influence2 110)
  6. (defconst sn-special-attack-influence3 111)
  7. (defconst sn-stone-modifier-percentage 158)
  8. (defconst sn-wood-modifier-percentage 157)
  9.  
  10. (defrule
  11. (true)
  12. =>
  13. (chat-local-to-self "DEBUG: Setting Strategic Numbers")
  14. (disable-self)
  15. )
  16.  
  17. (defrule
  18. (true)
  19. =>
  20. (set-strategic-number sn-do-not-scale-for-difficulty-level 1) ; this is VERY IMPORTANT to do FIRST!
  21. (set-difficulty-parameter ability-to-dodge-missiles 0) ; meh...
  22. (set-difficulty-parameter ability-to-maintain-distance 0) ; meh...
  23. (disable-self)
  24. )
  25.  
  26. (defrule
  27. (true)
  28. =>
  29. (set-strategic-number sn-allow-adjacent-dropsites 1)
  30. (set-strategic-number sn-allow-capturing-gaia-units 1)
  31. (set-strategic-number sn-allow-civilian-defense 2)
  32. (set-strategic-number sn-allow-civilian-offense 2)
  33. (set-strategic-number sn-allow-gathering-sea-fish-with-villagers 1)
  34. (set-strategic-number sn-allow-serjeant-building 1)
  35. (set-strategic-number sn-attack-group-gather-spacing 1)
  36. (set-strategic-number sn-attack-group-size-randomness 0)
  37. (set-strategic-number sn-attack-intelligence 0)
  38. (set-strategic-number sn-attack-winning-player 0) ; important?
  39. (set-strategic-number sn-attack-winning-player-factor 0) ; is this out of 100% or the full value of 32767? assuming 100% for now...
  40. (set-strategic-number sn-blot-exploration-map 0)
  41. (set-strategic-number sn-blot-size 255)
  42. (set-strategic-number sn-boar-lure-destination 6)
  43. (set-strategic-number sn-building-targeting-mode 0)
  44. (set-strategic-number sn-camp-max-distance 255)
  45. (set-strategic-number sn-cap-civilian-builders 100)
  46. (set-strategic-number sn-cap-civilian-explorers 100)
  47. (set-strategic-number sn-cap-civilian-gatherers 100)
  48. (set-strategic-number sn-consecutive-idle-unit-limit 0)
  49. (set-strategic-number sn-coop-share-attacking 0)
  50. (set-strategic-number sn-coop-share-attacking-interval 120)
  51. (set-strategic-number sn-coop-share-information 1)
  52. (set-strategic-number sn-defer-dropsite-update 0)
  53. (set-strategic-number sn-disable-attack-groups 1)
  54. (set-strategic-number sn-disable-builder-assistance 1)
  55. (set-strategic-number sn-disable-defend-groups 15) ; i assume 15 disables everything?
  56. (set-strategic-number sn-disable-sighted-response-cap 1)
  57. (set-strategic-number sn-disable-tower-priority 1) ; lets try 1.
  58. (set-strategic-number sn-disable-trade-evasion 1)
  59. (disable-self)
  60. )
  61.  
  62. (defrule
  63. (true)
  64. =>
  65. (set-strategic-number sn-disable-villager-garrison 3)
  66. (set-strategic-number sn-do-not-transport-from-same-zone 1) ; I guess I will enable this?
  67. (set-strategic-number sn-dock-avoidance-factor 1000)
  68. (set-strategic-number sn-dock-placement-mode -1)
  69. (set-strategic-number sn-dock-proximity-factor 1000)
  70. (set-strategic-number sn-dock-training-filter 2)
  71. (set-strategic-number sn-dropsite-separation-distance 5)
  72. (set-strategic-number sn-easier-reaction-percentage 100)
  73. (set-strategic-number sn-easiest-reaction-percentage 100)
  74. (set-strategic-number sn-enable-boar-hunting 1)
  75. (set-strategic-number sn-enable-new-building-system 1)
  76. (set-strategic-number sn-enable-offensive-priority 0)
  77. (set-strategic-number sn-enable-patrol-attack 0)
  78. (set-strategic-number sn-enable-research-queue 0)
  79. (set-strategic-number sn-enable-training-queue 0)
  80. (set-strategic-number sn-enemy-sighted-response-distance 50)
  81. (set-strategic-number sn-filter-under-attack 0)
  82. (set-strategic-number sn-focus-player-number 0) ; might be used later...
  83. (set-strategic-number sn-food-dropsite-distance 5)
  84. (set-strategic-number sn-food-gatherer-percentage 45)
  85. (set-strategic-number sn-food-modifier-percentage 45)
  86. (set-strategic-number sn-free-siege-targeting 0)
  87. (set-strategic-number sn-garrison-rams 0)
  88. (set-strategic-number sn-gate-type-for-wall 0)
  89. (set-strategic-number sn-gather-defense-units 0) ; useful for center game modes
  90. (set-strategic-number sn-gather-idle-soldiers-at-center 0) ; useful for center game modes
  91. (set-strategic-number sn-gold-dropsite-distance 5)
  92. (set-strategic-number sn-gold-gatherer-percentage 20)
  93. (set-strategic-number sn-gold-modifier-percentage 20)
  94. (set-strategic-number sn-group-commander-selection-method 2)
  95. (disable-self)
  96. )
  97.  
  98. (defrule
  99. (true)
  100. =>
  101. (set-strategic-number sn-group-form-distance 30)
  102. (set-strategic-number sn-group-leader-defense-distance 255)
  103. (set-strategic-number sn-home-exploration-time 300)
  104. (set-strategic-number sn-ignore-attack-group-under-attack 1)
  105. (set-strategic-number sn-ignore-tower-elevation 0)
  106. (set-strategic-number sn-initial-attack-delay 0)
  107. (set-strategic-number sn-initial-attack-delay-type 0)
  108. (set-strategic-number sn-initial-exploration-required 0)
  109. (set-strategic-number sn-keystates 1) ; I will be using this.
  110. (set-strategic-number sn-livestock-to-town-center 0)
  111. (set-strategic-number sn-local-targeting-mode 0)
  112. (set-strategic-number sn-lumber-camp-max-distance 0)
  113. (set-strategic-number sn-max-retask-gather-amount 10)
  114. (set-strategic-number sn-maximum-attack-group-size 0)
  115. (set-strategic-number sn-maximum-boat-attack-group-size 0)
  116. (set-strategic-number sn-maximum-fish-boat-drop-distance -1)
  117. (set-strategic-number sn-maximum-food-drop-distance -1)
  118. (set-strategic-number sn-maximum-gaia-attack-response 1)
  119. (set-strategic-number sn-maximum-garrison-fill 20)
  120. (set-strategic-number sn-maximum-gold-drop-distance -1)
  121. (set-strategic-number sn-maximum-hunt-drop-distance -1)
  122. (set-strategic-number sn-maximum-patrol-distance -1)
  123. (set-strategic-number sn-maximum-stone-drop-distance -1)
  124. (set-strategic-number sn-maximum-town-size 5) ; important
  125. (set-strategic-number sn-maximum-wood-drop-distance -1)
  126. (set-strategic-number sn-mill-max-distance 255)
  127. (set-strategic-number sn-minimum-attack-group-size 0)
  128. (set-strategic-number sn-minimum-boar-hunt-group-size 8)
  129. (set-strategic-number sn-minimum-boar-lure-group-size 8)
  130. (set-strategic-number sn-minimum-boat-attack-group-size 0)
  131. (disable-self)
  132. )
  133.  
  134. (defrule
  135. (true)
  136. =>
  137. (set-strategic-number sn-minimum-civilian-explorers 1)
  138. (set-strategic-number sn-minimum-number-hunters 8)
  139. (set-strategic-number sn-minimum-town-size 0) ; important
  140. (set-strategic-number sn-minimum-water-body-size-for-dock 10) ; important
  141. (set-strategic-number sn-mining-camp-max-distance 0)
  142. (set-strategic-number sn-mule-cart-dropsite-placement lumber-camp) ; new
  143. (set-strategic-number sn-number-attack-groups 0)
  144. (set-strategic-number sn-number-boat-attack-groups 0)
  145. (set-strategic-number sn-number-boat-explore-groups 0)
  146. (set-strategic-number sn-number-civilian-militia 100)
  147. (set-strategic-number sn-number-explore-groups 0)
  148. (set-strategic-number sn-number-forward-builders 100)
  149. (set-strategic-number sn-number-garrison-units 40)
  150. (set-strategic-number sn-number-tasked-units 0)
  151. (set-strategic-number sn-object-repair-level 32767)
  152. (set-strategic-number sn-percent-attack-boats 0)
  153. (set-strategic-number sn-percent-attack-soldiers 0)
  154. (set-strategic-number sn-percent-building-cancellation 100)
  155. (set-strategic-number sn-percent-civilian-builders 100)
  156. (set-strategic-number sn-percent-civilian-explorers 100)
  157. (set-strategic-number sn-percent-civilian-gatherers 100)
  158. (set-strategic-number sn-percent-enemy-sighted-response 0)
  159. (set-strategic-number sn-percent-exploration-required 100)
  160. (set-strategic-number sn-percent-half-exploration 50)
  161. (set-strategic-number sn-placement-fail-delta 1)
  162. (set-strategic-number sn-placement-to-center 0) ; important
  163. (set-strategic-number sn-placement-zone-size 1)
  164. (set-strategic-number sn-preferred-mill-placement 0)
  165. (set-strategic-number sn-preferred-trade-distance 255)
  166. (set-strategic-number sn-random-placement-factor 0)
  167. (disable-self)
  168. )
  169.  
  170. (defrule
  171. (true)
  172. =>
  173. (set-strategic-number sn-retask-gather-amount 10)
  174. (set-strategic-number sn-safe-town-size 5) ; important
  175. (set-strategic-number sn-scale-maximum-attack-group-size 0)
  176. (set-strategic-number sn-scale-minimum-attack-group-size 0)
  177. (set-strategic-number sn-scaling-frequency 2)
  178. (set-strategic-number sn-sentry-distance 0)
  179. (set-strategic-number sn-sentry-distance-variation 0)
  180. (set-strategic-number sn-special-attack-influence1 0) ; important?
  181. (set-strategic-number sn-special-attack-influence2 0) ; define me: 110
  182. (set-strategic-number sn-special-attack-influence3 0) ; define me: 111
  183. (set-strategic-number sn-special-attack-type1 0) ; targets relics/monks/monasteries
  184. (set-strategic-number sn-special-attack-type2 -1) ; object id (king: 434, monument: 826, relic: 285, monk/relic: 286, monastery: 104, wonder: 276)
  185. (set-strategic-number sn-special-attack-type3 0) ; targets wonders
  186. (set-strategic-number sn-stone-dropsite-distance 5)
  187. (set-strategic-number sn-stone-gatherer-percentage 10)
  188. (set-strategic-number sn-stone-modifier-percentage 10)
  189. (set-strategic-number sn-target-player-number 0) ; important
  190. (set-strategic-number sn-target-point-adjustment 5)
  191. (set-strategic-number sn-task-ungrouped-soldiers 0) ; important?
  192. (set-strategic-number sn-total-number-explorers 0)
  193. (set-strategic-number sn-town-center-placement 0)
  194. (set-strategic-number sn-ttkfactor-scalar 50) ; lets try 50
  195. (set-strategic-number sn-unexplored-construction 0)
  196. (set-strategic-number sn-use-by-type-max-gathering 1)
  197. (set-strategic-number sn-villager-attack-reset 0)
  198. (set-strategic-number sn-wall-targeting-mode 1)
  199. (set-strategic-number sn-warship-targeting-mode 1)
  200. (set-strategic-number sn-wild-animal-exploration 1)
  201. (set-strategic-number sn-wood-dropsite-distance 5)
  202. (set-strategic-number sn-wood-gatherer-percentage 25)
  203. (disable-self)
  204. )
  205.  
  206. (defrule
  207. (true)
  208. =>
  209. (set-strategic-number sn-wood-modifier-percentage 25)
  210. (set-strategic-number sn-zero-priority-distance 127)
  211. (disable-self)
  212. )
  213.  
  214. (defrule
  215. (true)
  216. =>
  217. (up-assign-builders c: farm c: 1)
  218. (up-assign-builders c: house c: 1)
  219. (up-assign-builders c: town-center-foundation c: 1)
  220. (up-assign-builders c: mill c: 1)
  221. (up-assign-builders c: mining-camp c: 1)
  222. (up-assign-builders c: lumber-camp c: 1)
  223. (up-assign-builders c: dock c: 1)
  224. (up-assign-builders c: barracks c: 1)
  225. (up-assign-builders c: archery-range c: 1)
  226. (up-assign-builders c: stable c: 1)
  227. (up-assign-builders c: blacksmith c: 1)
  228. (up-assign-builders c: market c: 1)
  229. (up-assign-builders c: stone-wall-line c: 1)
  230. (up-assign-builders c: watch-tower c: 1)
  231. (up-assign-builders c: guard-tower c: 1)
  232. (up-assign-builders c: keep c: 1)
  233. (up-assign-builders c: donjon c: 1)
  234. (up-assign-builders c: gate c: 1)
  235. (up-assign-builders c: monastery c: 1)
  236. (up-assign-builders c: university c: 1)
  237. (up-assign-builders c: siege-workshop c: 1)
  238. (up-assign-builders c: castle c: 1)
  239. (up-assign-builders c: krepost c: 1)
  240. (up-assign-builders c: bombard-tower c: 1)
  241. (up-assign-builders c: feitoria c: 1)
  242. (up-assign-builders c: wonder c: 100)
  243. (disable-self)
  244. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement