Advertisement
L00K3

ri-multi.per

Oct 22nd, 2021
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.19 KB | None | 0 0
  1. ;Research/Upgrades
  2.  
  3. ;---Economic---
  4. ;Town Center
  5. (defrule
  6. (up-can-research 0 c: ri-loom)
  7. (game-time > 600)
  8. =>
  9. (up-research 0 c: ri-loom)
  10. )
  11. (defrule
  12. (up-can-research 0 c: ri-wheel-barrow)
  13. =>
  14. (up-research 0 c: ri-wheel-barrow)
  15. )
  16. (defrule
  17. (up-can-research 0 c: ri-hand-cart)
  18. =>
  19. (up-research 0 c: ri-hand-cart)
  20. )
  21. (defrule
  22. (up-can-research 0 c: ri-town-watch)
  23. =>
  24. (up-research 0 c: ri-town-watch)
  25. )
  26. (defrule
  27. (up-can-research 0 c: ri-town-patrol)
  28. =>
  29. (up-research 0 c: ri-town-patrol)
  30. )
  31.  
  32. ;Mill
  33. (defrule
  34. (up-can-research 0 c: ri-horse-collar)
  35. =>
  36. (up-research 0 c: ri-horse-collar)
  37. )
  38. (defrule
  39. (up-can-research 0 c: ri-heavy-plow)
  40. =>
  41. (up-research 0 c: ri-heavy-plow)
  42. )
  43. (defrule
  44. (up-can-research 0 c: ri-crop-rotation)
  45. =>
  46. (up-research 0 c: ri-crop-rotation)
  47. )
  48.  
  49. ;Lumber Camp
  50. (defrule
  51. (up-can-research 0 c: ri-double-bit-axe)
  52. =>
  53. (up-research 0 c: ri-double-bit-axe)
  54. )
  55. (defrule
  56. (up-can-research 0 c: ri-bow-saw)
  57. =>
  58. (up-research 0 c: ri-bow-saw)
  59. )
  60. (defrule
  61. (up-can-research 0 c: ri-two-man-saw)
  62. =>
  63. (up-research 0 c: ri-two-man-saw)
  64. )
  65.  
  66. ;Mining Camp
  67. (defrule
  68. (up-can-research 0 c: ri-gold-mining)
  69. =>
  70. (up-research 0 c: ri-gold-mining)
  71. )
  72. (defrule
  73. (up-can-research 0 c: ri-gold-shaft-mining)
  74. =>
  75. (up-research 0 c: ri-gold-shaft-mining)
  76. )
  77. (defrule
  78. (up-can-research 0 c: ri-stone-mining)
  79. =>
  80. (up-research 0 c: ri-stone-mining)
  81. )
  82. (defrule
  83. (up-can-research 0 c: ri-stone-shaft-mining)
  84. =>
  85. (up-research 0 c: ri-stone-shaft-mining)
  86. )
  87.  
  88. ;Market
  89. (defrule
  90. (up-can-research 0 c: ri-coinage)
  91. =>
  92. (up-research 0 c: ri-coinage)
  93. )
  94. (defrule
  95. (up-can-research 0 c: ri-banking)
  96. =>
  97. (up-research 0 c: ri-banking)
  98. )
  99.  
  100. ;---Monestry---
  101. (defrule
  102. (up-can-research 0 c: ri-faith)
  103. =>
  104. (up-research 0 c: ri-faith)
  105. )
  106. (defrule
  107. (up-can-research 0 c: ri-heresy)
  108. =>
  109. (up-research 0 c: ri-heresy)
  110. )
  111. (defrule
  112. (up-compare-const unit5 == monk)
  113. (up-can-research 0 c: ri-redemption)
  114. =>
  115. (up-research 0 c: ri-redemption)
  116. )
  117. (defrule
  118. (up-compare-const unit5 == monk)
  119. (up-can-research 0 c: ri-atonement)
  120. =>
  121. (up-research 0 c: ri-atonement)
  122. )
  123. (defrule
  124. (up-compare-const unit5 == monk)
  125. (up-can-research 0 c: ri-fervor)
  126. =>
  127. (up-research 0 c: ri-fervor)
  128. )
  129. (defrule
  130. (up-compare-const unit5 == monk)
  131. (up-can-research 0 c: ri-sanctity)
  132. =>
  133. (up-research 0 c: ri-sanctity)
  134. )
  135. (defrule
  136. (up-compare-const unit5 == monk)
  137. (up-can-research 0 c: ri-block-printing)
  138. =>
  139. (up-research 0 c: ri-block-printing)
  140. )
  141. (defrule
  142. (up-compare-const unit5 == monk)
  143. (up-can-research 0 c: ri-illumination)
  144. =>
  145. (up-research 0 c: ri-illumination)
  146. )
  147. (defrule
  148. (up-compare-const unit5 == monk)
  149. (up-can-research 0 c: ri-theocracy)
  150. =>
  151. (up-research 0 c: ri-theocracy)
  152. )
  153.  
  154. ;---University---
  155. (defrule
  156. (up-can-research 0 c: ri-ballistics)
  157. =>
  158. (up-research 0 c: ri-ballistics)
  159. )
  160. (defrule
  161. (up-can-research 0 c: ri-murder-holes)
  162. =>
  163. (up-research 0 c: ri-murder-holes)
  164. )
  165. (defrule
  166. (up-can-research 0 c: ri-masonry)
  167. =>
  168. (up-research 0 c: ri-masonry)
  169. )
  170. ;Uknown Identifier
  171. ;(defrule
  172. ; (up-can-research 0 c: ri-treadmill-crane)
  173. ;=>
  174. ; (up-research 0 c: ri-treadmill-crane)
  175. ; (disable-self)
  176. ;)
  177. (defrule
  178. (up-can-research 0 c: ri-architecture)
  179. =>
  180. (up-research 0 c: ri-architecture)
  181. )
  182. ;Uknown Identifier
  183. ;(defrule
  184. ; (civ-selected sicilians)
  185. ; (up-can-research 0 c: ri-arrow-slits)
  186. ;=>
  187. ; (up-research 0 c: ri-arrow-slits)
  188. ; (disable-self)
  189. ;)
  190. (defrule
  191. (up-compare-const research-siege == 1)
  192. (up-can-research 0 c: ri-siege-engineers)
  193. =>
  194. (up-research 0 c: ri-siege-engineers)
  195. )
  196. (defrule
  197. (or
  198. (or
  199. (civ-selected spanish)
  200. (up-compare-const unit4 == hand-cannoneer)
  201. )
  202. (up-compare-const siege3 == bombard-cannon)
  203. )
  204. (up-can-research 0 c: ri-chemistry)
  205. =>
  206. (up-research 0 c: ri-chemistry)
  207. )
  208.  
  209. ;---Blacksmith---
  210. ;Archer
  211. (defrule
  212. (up-compare-const research-archer == 1)
  213. (up-can-research 0 c: ri-padded-archer-armor)
  214. =>
  215. (up-research 0 c: ri-padded-archer-armor)
  216. )
  217. (defrule
  218. (up-compare-const research-archer == 1)
  219. (up-can-research 0 c: ri-padded-archer-armor)
  220. =>
  221. (up-research 0 c: ri-padded-archer-armor)
  222. )
  223. (defrule
  224. (up-compare-const research-archer == 1)
  225. (up-can-research 0 c: ri-padded-archer-armor)
  226. =>
  227. (up-research 0 c: ri-padded-archer-armor)
  228. )
  229. (defrule
  230. (up-compare-const research-archer == 1)
  231. (up-can-research 0 c: ri-leather-archer-armor)
  232. =>
  233. (up-research 0 c: ri-padded-archer-armor)
  234. )
  235. (defrule
  236. (up-compare-const research-archer == 1)
  237. (up-can-research 0 c: ri-ring-archer-armor)
  238. =>
  239. (up-research 0 c: ri-padded-archer-armor)
  240. )
  241. (defrule
  242. (up-compare-const research-archer == 1)
  243. (up-can-research 0 c: ri-fletching)
  244. =>
  245. (up-research 0 c: ri-fletching)
  246. )
  247. (defrule
  248. (up-compare-const research-archer == 1)
  249. (up-can-research 0 c: ri-bodkin-arrow)
  250. =>
  251. (up-research 0 c: ri-bodkin-arrow)
  252. )
  253. (defrule
  254. (up-compare-const research-archer == 1)
  255. (up-can-research 0 c: ri-bracer)
  256. =>
  257. (up-research 0 c: ri-bracer)
  258. )
  259.  
  260. ;Melee-Atk
  261. (defrule
  262. (up-can-research 0 c: ri-forging)
  263. (up-compare-const research-melee-atk == 1)
  264. =>
  265. (up-research 0 c: ri-forging)
  266. )
  267. (defrule
  268. (up-compare-const research-melee-atk == 1)
  269. (up-can-research 0 c: ri-iron-casting)
  270. =>
  271. (up-research 0 c: ri-iron-casting)
  272. )
  273. (defrule
  274. (up-compare-const research-melee-atk == 1)
  275. (up-can-research 0 c: ri-blast-furnace)
  276. =>
  277. (up-research 0 c: ri-blast-furnace)
  278. )
  279.  
  280. ;Melee-Def
  281. (defrule
  282. (up-compare-const research-melee-def == 1)
  283. (up-can-research 0 c: ri-scale-mail)
  284. =>
  285. (up-research 0 c: ri-scale-mail)
  286. )
  287. (defrule
  288. (up-compare-const research-melee-def == 1)
  289. (up-can-research 0 c: ri-chain-mail)
  290. =>
  291. (up-research 0 c: ri-chain-mail)
  292. )
  293. (defrule
  294. (up-compare-const research-melee-def == 1)
  295. (up-can-research 0 c: ri-plate-mail)
  296. =>
  297. (up-research 0 c: ri-plate-mail)
  298. )
  299.  
  300. ;Cavalry
  301. (defrule
  302. (up-compare-const research-cavalry == 1)
  303. (up-can-research 0 c: ri-scale-barding)
  304. =>
  305. (up-research 0 c: ri-scale-barding)
  306. )
  307. (defrule
  308. (up-compare-const research-cavalry == 1)
  309. (up-can-research 0 c: ri-chain-barding)
  310. =>
  311. (up-research 0 c: ri-chain-barding)
  312. )
  313. (defrule
  314. (up-compare-const research-cavalry == 1)
  315. (up-can-research 0 c: ri-plate-barding)
  316. =>
  317. (up-research 0 c: ri-plate-barding)
  318. )
  319.  
  320. ;Unique Unit
  321. (defrule
  322. (up-compare-const unit3 == my-unique-unit)
  323. (up-can-research 0 c: my-unique-unit-upgrade)
  324. =>
  325. (up-research 0 c: my-unique-unit-upgrade)
  326. )
  327.  
  328. ;Archer Unit
  329. (defrule
  330. (or
  331. (up-compare-const unit1 == archer-line)
  332. (up-compare-const unit2 == archer-line)
  333. )
  334. (up-can-research 0 c: ri-crossbow)
  335. =>
  336. (up-research 0 c: ri-crossbow)
  337. )
  338. (defrule
  339. (or
  340. (up-compare-const unit1 == archer-line)
  341. (up-compare-const unit2 == archer-line)
  342. )
  343. (up-can-research 0 c: ri-arbalest)
  344. =>
  345. (up-research 0 c: ri-arbalest)
  346. )
  347. (defrule
  348. (or
  349. (up-compare-const unit1 == skirmisher-line)
  350. (up-compare-const unit2 == skirmisher-line)
  351. )
  352. (up-can-research 0 c: ri-elite-skirmisher)
  353. =>
  354. (up-research 0 c: ri-elite-skirmisher)
  355. )
  356. (defrule
  357. (or
  358. (up-compare-const unit1 == skirmisher-line)
  359. (up-compare-const unit2 == skirmisher-line)
  360. )
  361. (up-can-research 0 c: ri-imperial-skirmisher)
  362. =>
  363. (up-research 0 c: ri-imperial-skirmisher)
  364. )
  365. (defrule
  366. (or
  367. (up-compare-const unit1 == cavalry-archer-line)
  368. (up-compare-const unit2 == cavalry-archer-line)
  369. )
  370. (up-can-research 0 c: ri-heavy-cavalry-archer)
  371. =>
  372. (up-research 0 c: ri-heavy-cavalry-archer)
  373. )
  374. (defrule
  375. (up-compare-const research-archer == 1)
  376. (up-can-research 0 c: ri-thumb-ring)
  377. =>
  378. (up-research 0 c: ri-thumb-ring)
  379. )
  380. (defrule
  381. (up-compare-const research-archer == 1)
  382. (up-can-research 0 c: ri-parthian-tactics)
  383. =>
  384. (up-research 0 c: ri-parthian-tactics)
  385. )
  386.  
  387. ;Barracks Unit
  388. (defrule
  389. (or
  390. (up-compare-const unit1 == militiaman-line)
  391. (up-compare-const unit2 == militiaman-line)
  392. )
  393. (up-can-research 0 c: ri-man-at-arms)
  394. =>
  395. (up-research 0 c: ri-man-at-arms)
  396. )
  397. (defrule
  398. (or
  399. (up-compare-const unit1 == militiaman-line)
  400. (up-compare-const unit2 == militiaman-line)
  401. )
  402. (up-can-research 0 c: ri-long-swordsman)
  403. =>
  404. (up-research 0 c: ri-long-swordsman)
  405. )
  406. (defrule
  407. (or
  408. (up-compare-const unit1 == militiaman-line)
  409. (up-compare-const unit2 == militiaman-line)
  410. )
  411. (up-can-research 0 c: ri-two-handed-swordsman)
  412. =>
  413. (up-research 0 c: ri-two-handed-swordsman)
  414. )
  415. (defrule
  416. (or
  417. (up-compare-const unit1 == militiaman-line)
  418. (up-compare-const unit2 == militiaman-line)
  419. )
  420. (up-can-research 0 c: ri-champion)
  421. =>
  422. (up-research 0 c: ri-champion)
  423. )
  424. (defrule
  425. (or
  426. (up-compare-const unit1 == spearman-line)
  427. (up-compare-const unit2 == spearman-line)
  428. )
  429. (up-can-research 0 c: ri-pikeman)
  430. =>
  431. (up-research 0 c: ri-pikeman)
  432. )
  433. (defrule
  434. (or
  435. (up-compare-const unit1 == spearman-line)
  436. (up-compare-const unit2 == spearman-line)
  437. )
  438. (up-can-research 0 c: ri-halberdier)
  439. =>
  440. (up-research 0 c: ri-halberdier)
  441. )
  442. (defrule
  443. (or
  444. (up-compare-const unit1 == eagle-warrior-line)
  445. (up-compare-const unit2 == eagle-warrior-line)
  446. )
  447. (up-can-research 0 c: ri-eagle-warrior)
  448. =>
  449. (up-research 0 c: ri-eagle-warrior)
  450. )
  451. (defrule
  452. (or
  453. (up-compare-const unit1 == eagle-warrior-line)
  454. (up-compare-const unit2 == eagle-warrior-line)
  455. )
  456. (up-can-research 0 c: ri-elite-eagle-warrior)
  457. =>
  458. (up-research 0 c: ri-elite-eagle-warrior)
  459. )
  460. (defrule
  461. (or
  462. (up-compare-const unit1 == militiaman-line)
  463. (up-compare-const unit2 == militiaman-line)
  464. )
  465. (up-can-research 0 c: ri-supplies)
  466. =>
  467. (up-research 0 c: ri-supplies)
  468. )
  469. (defrule
  470. (or
  471. (or
  472. (up-compare-const unit1 == militiaman-line)
  473. (up-compare-const unit2 == militiaman-line)
  474. )
  475. (or
  476. (up-compare-const unit1 == spearman-line)
  477. (up-compare-const unit2 == spearman-line)
  478. )
  479. )
  480. (up-can-research 0 c: ri-squires)
  481. =>
  482. (up-research 0 c: ri-squires)
  483. )
  484. (defrule
  485. (or
  486. (or
  487. (up-compare-const unit1 == militiaman-line)
  488. (up-compare-const unit2 == militiaman-line)
  489. )
  490. (or
  491. (up-compare-const unit1 == spearman-line)
  492. (up-compare-const unit2 == spearman-line)
  493. )
  494. )
  495. (up-can-research 0 c: ri-arson)
  496. =>
  497. (up-research 0 c: ri-arson)
  498. )
  499.  
  500. ;Stables Unit
  501. (defrule
  502. (or
  503. (up-compare-const unit1 == scout-cavalry-line)
  504. (up-compare-const unit2 == scout-cavalry-line)
  505. )
  506. (up-can-research 0 c: ri-light-cavalry)
  507. =>
  508. (up-research 0 c: ri-light-cavalry)
  509. )
  510. (defrule
  511. (or
  512. (up-compare-const unit1 == scout-cavalry-line)
  513. (up-compare-const unit2 == scout-cavalry-line)
  514. )
  515. (up-can-research 0 c: ri-hussar)
  516. =>
  517. (up-research 0 c: ri-hussar)
  518. )
  519. ;Uknown Identifier
  520. ;(defrule
  521. ; (or
  522. ; (up-compare-const unit1 == scout-cavalry-line)
  523. ; (up-compare-const unit2 == scout-cavalry-line)
  524. ; )
  525. ; (up-can-research 0 c: ri-winged-hussar)
  526. ;=>
  527. ; (up-research 0 c: ri-winged-hussar)
  528. ; (disable-self)
  529. ;)
  530. (defrule
  531. (or
  532. (up-compare-const unit1 == knight-line)
  533. (up-compare-const unit2 == knight-line)
  534. )
  535. (up-can-research 0 c: ri-cavalier)
  536. =>
  537. (up-research 0 c: ri-cavalier)
  538. )
  539. (defrule
  540. (or
  541. (up-compare-const unit1 == knight-line)
  542. (up-compare-const unit2 == knight-line)
  543. )
  544. (up-can-research 0 c: ri-paladin)
  545. =>
  546. (up-research 0 c: ri-paladin)
  547. )
  548. (defrule
  549. (or
  550. (up-compare-const unit1 == camel-line)
  551. (up-compare-const unit1 == camel-line)
  552. )
  553. (up-can-research 0 c: ri-heavy-camel)
  554. =>
  555. (up-research 0 c: ri-heavy-camel)
  556. )
  557. (defrule
  558. (or
  559. (up-compare-const unit1 == camel-line)
  560. (up-compare-const unit1 == camel-line)
  561. )
  562. (up-can-research 0 c: ri-imperial-camel)
  563. =>
  564. (up-research 0 c: ri-imperial-camel)
  565. )
  566. (defrule
  567. (or
  568. (up-compare-const unit1 == battle-elephant)
  569. (up-compare-const unit2 == battle-elephant)
  570. )
  571. (up-can-research 0 c: ri-elite-battle-elephant)
  572. =>
  573. (up-research 0 c: ri-elite-battle-elephant)
  574. )
  575. (defrule
  576. (up-compare-const research-cavalry == 1)
  577. (up-can-research 0 c: ri-bloodlines)
  578. =>
  579. (up-research 0 c: ri-bloodlines)
  580. )
  581. (defrule
  582. (up-compare-const research-cavalry == 1)
  583. (up-can-research 0 c: ri-husbandry)
  584. =>
  585. (up-research 0 c: ri-husbandry)
  586. )
  587.  
  588. ;Siege Unit
  589. (defrule
  590. (or
  591. (up-compare-const siege1 == battering-ram-line)
  592. (up-compare-const siege2 == battering-ram-line)
  593. )
  594. (up-can-research 0 c: ri-capped-ram)
  595. =>
  596. (up-research 0 c: ri-capped-ram)
  597. )
  598. (defrule
  599. (or
  600. (up-compare-const siege1 == battering-ram-line)
  601. (up-compare-const siege2 == battering-ram-line)
  602. )
  603. (up-can-research 0 c: ri-siege-ram)
  604. =>
  605. (up-research 0 c: ri-siege-ram)
  606. )
  607. (defrule
  608. (or
  609. (up-compare-const siege1 == mangonel-line)
  610. (up-compare-const siege2 == mangonel-line)
  611. )
  612. (up-can-research 0 c: ri-onager)
  613. =>
  614. (up-research 0 c: ri-onager)
  615. )
  616. (defrule
  617. (or
  618. (up-compare-const siege1 == mangonel-line)
  619. (up-compare-const siege2 == mangonel-line)
  620. )
  621. (up-can-research 0 c: ri-siege-onager)
  622. =>
  623. (up-research 0 c: ri-siege-onager)
  624. )
  625. (defrule
  626. (or
  627. (up-compare-const siege1 == scorpion-line)
  628. (up-compare-const siege2 == scorpion-line)
  629. )
  630. (up-can-research 0 c: ri-heavy-scorpion)
  631. =>
  632. (up-research 0 c: ri-heavy-scorpion)
  633. )
  634. ;Uknown Identifier
  635. ;(defrule
  636. ; (civ-selected bohemians)
  637. ; (up-can-research 0 c: ri-hounfnice)
  638. ;=>
  639. ; (up-research 0 c: ri-hounfnice)
  640. ; (disable-self)
  641. ;)
  642.  
  643. ;Castle Techs
  644. (defrule
  645. (up-can-research 0 c: ri-hoardings)
  646. =>
  647. (up-research 0 c: ri-hoardings)
  648. )
  649. (defrule
  650. (up-compare-const sn-max-barracks >= 5)
  651. (up-can-research 0 c: ri-conscription)
  652. =>
  653. (up-research 0 c: ri-conscription)
  654. )
  655.  
  656. ;Unique Techs
  657.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement