Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;Age Behaviour
- ;---Dark-Feudal---
- (defrule
- (and
- (food-amount > feudal-food)
- (and
- (unit-type-count villager > villager-feudal)
- (can-research-with-escrow feudal-age)
- ))
- =>
- (release-escrow food)(release-escrow gold)
- (set-escrow-percentage food 0)
- (set-escrow-percentage gold 0)
- (research feudal-age)
- (set-strategic-number sn-current-age df-transit)
- (disable-self)
- )
- (defrule
- (current-age == feudal-age)
- =>
- (set-strategic-number sn-max-drop-distance 15)
- (set-strategic-number sn-current-age feudal)
- (set-strategic-number min-headroom 8)
- (set-strategic-number min-farm-head 3)
- (set-strategic-number max-farms 12)
- (disable-self)
- )
- ;---Feudal-Castle---
- (defrule
- (and
- (food-amount > castle-food)
- (and
- (gold-amount > castle-gold)
- (and
- (unit-type-count villager > villager-castle)
- (can-research-with-escrow castle-age)
- )))
- =>
- (release-escrow food)(release-escrow gold)
- (set-escrow-percentage food 0)
- (set-escrow-percentage gold 0)
- (research castle-age)
- (set-strategic-number sn-current-age fc-transit)
- (disable-self)
- )
- (defrule
- (current-age == castle-age)
- =>
- (set-strategic-number sn-max-tc 6)
- (set-strategic-number sn-current-age castle)
- (set-strategic-number min-headroom 15)
- (set-strategic-number min-farm-head 3)
- (set-strategic-number max-farms 16)
- (set-strategic-number max-pending-house 4)
- (disable-self)
- )
- ;---Castle-Imperial---
- (defrule
- (and
- (food-amount > imperial-food)
- (and
- (gold-amount > imperial-gold)
- (can-research-with-escrow imperial-age)
- ))
- =>
- (release-escrow food)(release-escrow gold)
- (set-escrow-percentage food 0)
- (set-escrow-percentage gold 0)
- (research imperial-age)
- (set-strategic-number sn-current-age ci-transit)
- (disable-self)
- )
- (defrule
- (current-age == imperial)
- =>
- (set-strategic-number sn-current-age imperial)
- (set-strategic-number min-headroom 25)
- (set-strategic-number min-farm-head 6)
- (set-strategic-number max-farms 32)
- (disable-self)
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement