Problem with AI command, Help!
-
- Forumer
- Posts: 1
- Joined: Tue Apr 02, 2024 12:17 pm
Problem with AI command, Help!
Hello everyone, I've been doing an AI for a few days, but I got stuck in one part. I'm going to be specific, for example, I am training riders and I need to develop chain barding but to do so I need to stop the production of riders to collect resources and then resume production, could someone explain to me how to do this? I would really appreciate it! thanks
-
- Swami
- Posts: 114
- Joined: Fri May 20, 2016 4:01 am
- Location: Russia
Re: Problem with AI command, Help!
Hi, u need read cpsb file, tutorial how create functions
Developer of GamesGod AI
- FireBall37
- Swami
- Posts: 177
- Joined: Sat Aug 22, 2020 10:49 pm
Re: Problem with AI command, Help!
I think this should work:luks1990 wrote: ↑Tue Apr 02, 2024 12:32 pmHello everyone, I've been doing an AI for a few days, but I got stuck in one part. I'm going to be specific, for example, I am training riders and I need to develop chain barding but to do so I need to stop the production of riders to collect resources and then resume production, could someone explain to me how to do this? I would really appreciate it! thanks
(defrule
(can-train knight-line)
(or
(up-research-status c: ri-scale-barding < research-complete)
(up-research-status c: ri-chain-barding >= research-pending)
)
=>
(train knight-line)
)
that should stop training knights when chain barding is available and hasn't been researched yet