Age Of Kings Land Scenario Guide

Continued from Part 4: A.I.

For debugging purposes. How about houses?
(defrule
(housing-headroom <= 2)
(can-afford-building house)
=>
(build house)
)

This checks if houses are needed. Strategic Numbers come next. Example:
(set-strategic-number sn-percent-civilian-explorers 0)

For gatherers and builders set it to 90 and 10, repsectively. That way everyone will gather resources and if a building is needed a villager will break off and build it. For scouts ( explorers ) use this:

(set-strategic-number sn-maximum-explore-group-size 1)
(set-strategic-number sn-number-explore-groups 1)

To gather resources use:

Sn-food-gatherer-percentage
Etc.

These MUST add up too 100. To defend resources use:

Sn-food-defend-priority
Etc.

You can also defend relics with this. To control your military use these:

Sn-town-defend-prority
Sn-dock-defend-priority
Sn-target-evaluation-distance
Sn-target-evaluation-hitpoints
Sn-target-damage-capability
Sn-target-evaluation-kills
Sn-target-evaluation-randomness
Sn-attack-group-size-randomness
Sn-attack-intelligence
Sn-minimum-attack-group-size
Sn-maximum-attack-group-size
Sn-attack-groups
Sn-number-defense-groups
Sn-attack-group-spacing

Remember there is a 16 limit line for each rule. To attack use the attack-now command. Want to attack a certain building? Try this:
(set-strategic-number sn-special-attack-group-type1 barracks)
(set-strategic-number sn-special-attack-influence 1)

     previous                                          next page

Part 1: Placing Units and Terrain
Part 2: Scenarios
Part 3: Triggers
Part 4: A.I.
Part 5: Tricks