Hi, I'm working on my own mod I have not revealed anything, but I've come to a problem that I could solcionar.
It is only the AI trains the basic unit are the main lines or normal lines, but I want to know how to make my AI, can train the other units.
The AI I get this.
;Training:Spearman line
(defrule
(unit-type-count-total spearman-line < 10)
(can-train spearman-line)
=>
(train spearman-line)
)
I wonder if there is a way to modify some file data somewhere, something to create a line that is called for example:
Spearman:
;Training:Spearman line
(defrule
(unit-type-count-total spearman-line < 10)
(can-train spearman-line)
=>
(train spearman-line)
)
Halberdier
;Training:Halberdier line
(defrule
(unit-type-count-total Halberdier-line < 10)
(can-train spearman-line)
=>
(train spearman-line)
)
Pikeman:
;Training:Pikeman line
(defrule
(unit-type-count-total Pikeman-line < 10)
(can-train spearman-line)
=>
(train spearman-line)
)
If you can help me go a long way in my project, it is very urgent to me to continue, thank you very much.
It is only the AI trains the basic unit are the main lines or normal lines, but I want to know how to make my AI, can train the other units.
The AI I get this.
;Training:Spearman line
(defrule
(unit-type-count-total spearman-line < 10)
(can-train spearman-line)
=>
(train spearman-line)
)
I wonder if there is a way to modify some file data somewhere, something to create a line that is called for example:
Spearman:
;Training:Spearman line
(defrule
(unit-type-count-total spearman-line < 10)
(can-train spearman-line)
=>
(train spearman-line)
)
Halberdier
;Training:Halberdier line
(defrule
(unit-type-count-total Halberdier-line < 10)
(can-train spearman-line)
=>
(train spearman-line)
)
Pikeman:
;Training:Pikeman line
(defrule
(unit-type-count-total Pikeman-line < 10)
(can-train spearman-line)
=>
(train spearman-line)
)
If you can help me go a long way in my project, it is very urgent to me to continue, thank you very much.